37 #if GFX_USE_GDRIVER || defined(__DOXYGEN__)
43 #define GDRIVER_TYPE_DISPLAY 'g'
44 #define GDRIVER_TYPE_MOUSE 'm'
45 #define GDRIVER_TYPE_TOUCH 'm'
46 #define GDRIVER_TYPE_TOGGLE 't'
47 #define GDRIVER_TYPE_DIAL 'd'
48 #define GDRIVER_TYPE_KEYBOARD 'k'
49 #define GDRIVER_TYPE_BLOCK 'b'
50 #define GDRIVER_TYPE_STRING 's'
70 gBool (*init)(
GDriver *driver,
void *param,
unsigned driverinstance,
unsigned systeminstance);
74 void (*postinit)(
GDriver *driver);
75 void (*deinit)(
GDriver *driver);
struct GDriverVMT GDriverVMT
All driver VMT's start with this structure.
GDriver * gdriverRegister(const GDriverVMT *vmt, void *param)
Register a new driver instance.
GDriver * gdriverGetInstance(gU16 type, unsigned instance)
Get the driver for a particular instance of a type of device.
struct GDriver GDriver
All runtime driver structures start with this structure.
GDriver * gdriverGetNext(gU16 type, GDriver *driver)
Get the next driver for a type of device.
void gdriverUnRegister(GDriver *driver)
UnRegister a driver instance.
unsigned gdriverInstanceCount(gU16 type)
Get the count of instances of a type of device.
unsigned gdriverGetDriverInstanceNumber(GDriver *driver)
Get the instance number for a device.
All runtime driver structures start with this structure.
All driver VMT's start with this structure.