diff options
author | cnlohr <lohr85@gmail.com> | 2017-03-08 00:53:28 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-03-08 00:53:28 -0500 |
commit | a087915c5dd8c356911453a019723ebaa9904a36 (patch) | |
tree | d1bdf78c0204ac0b7e995a8aae46d6c59bb2d435 /src/survive_driverman.h | |
parent | b960e4d04b49bee0f60a5b1d1199c256cfbc17d6 (diff) | |
download | libsurvive-a087915c5dd8c356911453a019723ebaa9904a36.tar.gz libsurvive-a087915c5dd8c356911453a019723ebaa9904a36.tar.bz2 |
Move most of the libsurvive stuff into a common area.
Diffstat (limited to 'src/survive_driverman.h')
-rw-r--r-- | src/survive_driverman.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/survive_driverman.h b/src/survive_driverman.h index 5e13caf..216333a 100644 --- a/src/survive_driverman.h +++ b/src/survive_driverman.h @@ -10,29 +10,13 @@ #ifndef SURVIVE_DRIVERMAN_H #define SURVIVE_DRIVERMAN_H -//Driver registration -#define MAX_DRIVERS 32 - -void RegisterDriver( const char * name, void * data ); -void * GetDriver( const char * name ); -const char * GetDriverNameMatching( const char * prefix, int place ); -void ListDrivers(); - -#define REGISTER_LINKTIME( func ) \ - void __attribute__((constructor)) Register##func() { RegisterDriver( #func, &func ); } - +#include "survive.h" -// -// Specific types of drivers. -// - -struct SurviveContext; +//Very little here. Mostly included in survive.h. -//Device drivers (prefix your drivers with "DriverReg") i.e. -// REGISTER_LINKTIME( DriverRegHTCVive ); -typedef int (*DeviceDriver)( struct SurviveContext * ctx ); +//Driver registration +#define MAX_DRIVERS 32 -//more driver types here? i.e. posefinders, etc. #endif |