src/driver.cpp
changeset 6248 e4a2ed7e5613
parent 6125 a6fff965707c
child 7045 5d5306f074db
equal deleted inserted replaced
6247:7d81e3a5d803 6248:e4a2ed7e5613
    28 #include "video/null_v.h"
    28 #include "video/null_v.h"
    29 #include "video/sdl_v.h"
    29 #include "video/sdl_v.h"
    30 #include "video/cocoa_v.h"
    30 #include "video/cocoa_v.h"
    31 #include "video/win32_v.h"
    31 #include "video/win32_v.h"
    32 
    32 
    33 typedef struct DriverDesc {
    33 struct DriverDesc {
    34 	const char* name;
    34 	const char* name;
    35 	const char* longname;
    35 	const char* longname;
    36 	const HalCommonDriver* drv;
    36 	const HalCommonDriver* drv;
    37 } DriverDesc;
    37 };
    38 
    38 
    39 typedef struct DriverClass {
    39 struct DriverClass {
    40 	const DriverDesc *descs;
    40 	const DriverDesc *descs;
    41 	const char *name;
    41 	const char *name;
    42 	const HalCommonDriver** drv;
    42 	const HalCommonDriver** drv;
    43 } DriverClass;
    43 };
    44 
    44 
    45 
    45 
    46 #define M(x, y, z) { x, y, (const HalCommonDriver *)(void *)z }
    46 #define M(x, y, z) { x, y, (const HalCommonDriver *)(void *)z }
    47 static const DriverDesc _music_driver_descs[] = {
    47 static const DriverDesc _music_driver_descs[] = {
    48 #ifdef __BEOS__
    48 #ifdef __BEOS__