File diff r12924:e6c5c07d4a27 → r12925:90ba6b12158c
src/driver.h
Show inline comments
 
@@ -27,24 +27,26 @@ public:
 

	
 
	virtual void Stop() = 0;
 

	
 
	virtual ~Driver() { }
 

	
 
	enum Type {
 
		DT_BEGIN = 0,
 
		DT_SOUND = 0,
 
		DT_MUSIC,
 
		DT_VIDEO,
 
		DT_END,
 
	};
 

	
 
	virtual const char *GetName() const = 0;
 
};
 

	
 
DECLARE_POSTFIX_INCREMENT(Driver::Type);
 

	
 

	
 
class DriverFactoryBase {
 
private:
 
	Driver::Type type;
 
	const char *name;
 
	int priority;
 

	
 
	typedef std::map<const char *, DriverFactoryBase *, StringCompare> Drivers;