LIRC libraries
LinuxInfraredRemoteControl
 All Classes Files Functions Variables Typedefs Enumerations Macros Modules Pages
Internal API

Internal API for lirc applications. More...

Files

file  ciniparser.h
 Parser for ini files.
 
file  dictionary.h
 Implements a dictionary for string variables.This module implements a simple dictionary object, i.e. a list of string/string associations. This object is useful to store e.g. information retrieved from a configuration file (ini files).
 
file  driver.h
 Interface to the userspace drivers.
 
file  drv_admin.h
 Routines for dynamic drivers.
 
file  dump_config.h
 Dumps data structures into file.
 
file  input_map.h
 Button namespace derived from Linux input layer.
 
file  ir_remote.h
 Describes and decodes the signals from IR remotes.
 
file  ir_remote_types.h
 Describes and decodes the signals from IR remotes.
 
file  ir_remote_types.h
 Describes and decodes the signals from IR remotes.
 
file  lirc-utils.h
 Utilities.
 
file  lirc_config.h
 Local configuration constants not managed by autotools.
 
file  lirc_log.h
 Logging functionality.
 
file  lirc_options.h
 Options management: options file, parse and retrieve.
 
file  release.h
 Automatic release event generation.
 

Functions

struct ir_remoteread_config (FILE *f, const char *name)
 Parse a lircd.conf config file. More...
 
void free_config (struct ir_remote *remotes)
 Free() an ir_remote instance obtained using read_config(). More...
 
const char * drop_sudo_root (int(*set_some_uid)(uid_t))
 Try to drop possible root privileges, returning new user or "" on error. More...
 
void drop_root_cli (int(*set_some_uid)(uid_t))
 Default view part of drop_sudo_root. More...
 

Detailed Description

Internal API for lirc applications.

Function Documentation

void drop_root_cli ( int(*)(uid_t)  set_some_uid)

Default view part of drop_sudo_root.

Invokes drop_sudo_root() and prints status messagea on stdout.

Parameters
set_some_uidTypically seteuid() or setuid()

Definition at line 81 of file lirc-utils.c.

const char* drop_sudo_root ( int(*)(uid_t)  set_some_uid)

Try to drop possible root privileges, returning new user or "" on error.

Parameters
set_some_uidTypically seteuid() or setuid()
Note
Uses environment SUDO_USER to determine user to switch to (if any).

Definition at line 28 of file lirc-utils.c.

void free_config ( struct ir_remote remotes)

Free() an ir_remote instance obtained using read_config().

Definition at line 1409 of file config_file.c.

struct ir_remote* read_config ( FILE *  f,
const char *  name 
)

Parse a lircd.conf config file.

Parameters
fOpen FILE* connection to file.
nameNormally the path for the open file f.
Returns
Pointer to dynamically allocated ir_remote or NULL on errors,

Definition at line 838 of file config_file.c.