LIRC libraries
LinuxInfraredRemoteControl
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
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 
48 int hw_choose_driver(const char* name);
49 
50 /* Print name of all drivers on FILE. */
51 void hw_print_drivers(FILE*);
52 
59 struct driver* for_each_driver(drv_guest_func func, void* arg);
60 
64 void for_each_plugin(plugin_guest_func plugin_guest, void* arg);
65 
66 
67 #ifdef __cplusplus
68 }
69 #endif
void hw_print_drivers(FILE *)
Prints all drivers known to the system to the file given as argument.
Definition: drv_admin.c:229
int hw_choose_driver(const char *name)
Definition: drv_admin.c:247
Interface to the userspace drivers.
struct driver * for_each_driver(drv_guest_func func, void *arg)
Definition: drv_admin.c:213
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:83
const char * name
Definition: driver.h:175
void for_each_plugin(plugin_guest_func plugin_guest, void *arg)
Definition: drv_admin.c:219