LIRC libraries
LinuxInfraredRemoteControl
 All Classes Files Functions Variables Typedefs Enumerations Macros Modules Pages
driver.c File Reference

(3e822c0 2017-04-05 14:46:28 +0200)

Implements driver.h. More...

#include <stdio.h>
#include "driver.h"
#include "config.h"
#include "lirc_log.h"

Go to the source code of this file.

Functions

int get_server_version (void)
 Return numeric server version, m.v.r => 10000 * m + 100 * v + r. More...
 
int default_open (const char *path)
 Stores path in drv.device if non-null. More...
 
int default_close (void)
 For now, a placeholder. More...
 
int default_drvctl (unsigned int fd, void *arg)
 Return DRV_ERR_NOTIMPLEMENTED. More...
 
int drv_handle_options (const char *options)
 Parse an option string "key:value;key:value..." and invoke drvctl DRV_SET_OPTION as appropriate.
 

Variables

struct driver drv
 The global driver data that drivers etc are accessing. More...
 
const char *const OPTION_FMT = "%32s%64s"
 sscanf format to parse option_t. More...
 
const struct driver *const curr_driver = &drv
 Read-only access to drv for client code. More...
 

Detailed Description

Implements driver.h.

Author
Alec Leamas
License:
GPL2 or later
Date
August 2014

Access and support for driver.h, the global driver.

Definition in file driver.c.

Variable Documentation

const struct driver* const curr_driver = &drv

Read-only access to drv for client code.

Read-only access to drv for application.

Definition at line 34 of file driver.c.

struct driver drv

The global driver data that drivers etc are accessing.

Access to otherwise private drv.

Set by hw_choose_driver().

Definition at line 28 of file driver.c.

const char* const OPTION_FMT = "%32s%64s"

sscanf format to parse option_t.

Definition at line 31 of file driver.c.