LIRC libraries
LinuxInfraredRemoteControl
drv_admin.h
Go to the documentation of this file.
1 
19 #include "driver.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
32 typedef struct driver* (*drv_guest_func)(struct driver*, void*);
33 
40 typedef struct driver*
41 (*plugin_guest_func)(const char*, drv_guest_func, void*);
42 
44 int hw_choose_driver(const char* name);
45 
46 /* Print name of all drivers on FILE. */
47 void hw_print_drivers(FILE*);
48 
49 /*
50  * Apply func to all existing drivers. Returns pointer to a driver
51  * if such a pointer is returned by func(), else NULL.
52  *
53  */
54 struct driver* for_each_driver(drv_guest_func func, void* arg);
55 
59 void for_each_plugin(plugin_guest_func plugin_guest, void* arg);
60 
61 
62 #define PLUGIN_FILE_EXTENSION "so"
63 
64 #ifdef __cplusplus
65 }
66 #endif
void hw_print_drivers(FILE *)
Prints all drivers known to the system to the file given as argument.
Definition: drv_admin.c:223
int hw_choose_driver(const char *name)
Definition: drv_admin.c:247
Interface to the userspace drivers.
struct driver *(* drv_guest_func)(struct driver *, void *)
Definition: drv_admin.h:32
struct driver *(* plugin_guest_func)(const char *, drv_guest_func, void *)
Definition: drv_admin.h:41
Definition: driver.h:81
const char * name
Definition: driver.h:170
void for_each_plugin(plugin_guest_func plugin_guest, void *arg)
Definition: drv_admin.c:213