LIRC libraries
LinuxInfraredRemoteControl
|
Implements drv_admin.h. More...
#include <stdio.h>
#include <dirent.h>
#include <dlfcn.h>
#include "lirc/driver.h"
#include "lirc/drv_admin.h"
#include "lirc/lirc_options.h"
#include "lirc_log.h"
#include "driver.h"
Go to the source code of this file.
Macros | |
#define | MAX_PLUGINS 256 |
Functions | |
struct driver * | for_each_driver (drv_guest_func func, void *arg) |
void | for_each_plugin (plugin_guest_func plugin_guest, void *arg) |
void | hw_print_drivers (FILE *file) |
Prints all drivers known to the system to the file given as argument. More... | |
int | hw_choose_driver (const char *name) |
Variables | |
struct driver | drv |
const struct driver | drv_null |
#define MAX_PLUGINS 256 |
Max number if plugins handled. No point to malloc() this.
Definition at line 29 of file drv_admin.c.
struct driver* for_each_driver | ( | drv_guest_func | func, |
void * | arg | ||
) |
Apply func to all existing drivers. Returns pointer to a driver if such a pointer is returned by func(), else NULL.
Definition at line 213 of file drv_admin.c.
void for_each_plugin | ( | plugin_guest_func | plugin_guest, |
void * | arg | ||
) |
Apply func to all plugins (i. e., .so-files) in current plugin path.
Definition at line 219 of file drv_admin.c.
int hw_choose_driver | ( | const char * | name | ) |
Search for driver with given name, update global drv with driver data if found.
Definition at line 247 of file drv_admin.c.
void hw_print_drivers | ( | FILE * | file | ) |
Prints all drivers known to the system to the file given as argument.
file | File to print to. |
Definition at line 229 of file drv_admin.c.
struct driver drv |
Access to otherwise private drv.
The global driver data that drivers etc are accessing. Set by hw_choose_driver().
const struct driver drv_null |
Default driver, a placeholder.
Definition at line 43 of file drv_admin.c.