30 static char buff[128];
36 strncpy(buff, path,
sizeof(buff) - 1);
39 logprintf(LIRC_INFO,
"Initial device: %s",
drv.
device);
63 s = alloca(strlen(options) + 1);
65 for (token = strtok(s,
"|"); token != NULL; token = strtok(NULL,
"|")) {
66 colon = strstr(token,
":");
70 found = sscanf(token,
OPTION_FMT, option.key, option.value);
#define DRV_ERR_NOT_IMPLEMENTED
Interface to the userspace drivers.
const char *const OPTION_FMT
#define DRV_ERR_BAD_OPTION
int(*const drvctl_func)(unsigned int cmd, void *arg)
int default_drvctl(unsigned int fd, void *arg)
int drv_handle_options(const char *options)
int default_open(const char *path)
#define DRVCTL_SET_OPTION
const struct driver const * curr_driver