summaryrefslogtreecommitdiff
path: root/src/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver.h')
-rw-r--r--src/driver.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/driver.h b/src/driver.h
index a466d67d0..12ca4474d 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -59,6 +59,10 @@ DECLARE_POSTFIX_INCREMENT(Driver::Type)
/** Base for all driver factories. */
class DriverFactoryBase {
private:
+ friend class MusicDriver;
+ friend class SoundDriver;
+ friend class VideoDriver;
+
Driver::Type type; ///< The type of driver.
int priority; ///< The priority of this factory.
const char *name; ///< The name of the drivers of this factory.
@@ -97,6 +101,8 @@ private:
return driver_type_name[type];
}
+ static bool SelectDriverImpl(const char *name, Driver::Type type);
+
protected:
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description);
@@ -114,7 +120,7 @@ public:
}
}
- static Driver *SelectDriver(const char *name, Driver::Type type);
+ static void SelectDriver(const char *name, Driver::Type type);
static char *GetDriversInfo(char *p, const char *last);
/**