LIRC libraries
LinuxInfraredRemoteControl
 All Classes Files Functions Variables Typedefs Enumerations Macros Modules 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 
61 struct driver* for_each_driver(drv_guest_func func,
62  void* arg,
63  const char* pluginpath);
64 
70 void for_each_plugin(plugin_guest_func plugin_guest,
71  void* arg,
72  const char* pluginpath);
73 
74 
75 #ifdef __cplusplus
76 }
77 #endif
void hw_print_drivers(FILE *)
Prints all drivers known to the system to the file given as argument.
Definition: drv_admin.c:270
int hw_choose_driver(const char *name)
Search for driver with given name, update global drv with driver data if found.
Definition: drv_admin.c:297
Interface to the userspace drivers.
struct driver *(* drv_guest_func)(struct driver *, void *)
Argument to for_each_driver().
Definition: drv_admin.h:32
struct driver *(* plugin_guest_func)(const char *, drv_guest_func, void *)
Argument to for_each_plugin.
Definition: drv_admin.h:41
void for_each_plugin(plugin_guest_func plugin_guest, void *arg, const char *pluginpath)
Apply func to all plugins (i.
Definition: drv_admin.c:235
The data the driver exports i.
Definition: driver.h:136
const char * name
Driver name, as listed by -H help and used as argument to i –driver.
Definition: driver.h:228
struct driver * for_each_driver(drv_guest_func func, void *arg, const char *pluginpath)
Apply func to all existing drivers.
Definition: drv_admin.c:227