LIRC libraries
Linux Infrared Remote Control
|
Implements config_file.h. More...
#include <dirent.h>
#include <errno.h>
#include <glob.h>
#include <limits.h>
#include <unistd.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <ctype.h>
#include "media/lirc.h"
#include "lirc/lirc_log.h"
#include "lirc/lirc_options.h"
#include "lirc/ir_remote.h"
#include "lirc/config_file.h"
#include "lirc/transmit.h"
#include "lirc/config_flags.h"
Go to the source code of this file.
Macros | |
#define | LINE_LEN 1024 |
#define | MAX_INCLUDES 10 |
Typedefs | |
typedef void *(* | array_guest_func) (void *item, void *arg) |
foreach_void_array argument. | |
Enumerations | |
enum | directive { ID_none , ID_remote , ID_codes , ID_raw_codes , ID_raw_name } |
Functions | |
void ** | init_void_array (struct void_array *ar, size_t chunk_size, size_t item_size) |
int | add_void_array (struct void_array *ar, void *dataptr) |
Add *dataptr to end of ar, re-allocating as necessary. | |
void * | get_void_array (struct void_array *ar) |
Return the array dataptr, an array[nr_items] of item_size elements. | |
void * | s_malloc (size_t size) |
char * | s_strdup (char *string) |
ir_code | s_strtocode (const char *val) |
uint32_t | s_strtou32 (char *val) |
int | s_strtoi (char *val) |
unsigned int | s_strtoui (char *val) |
lirc_t | s_strtolirc_t (char *val) |
int | checkMode (int is_mode, int c_mode, char *error) |
int | addSignal (struct void_array *signals, char *val) |
struct ir_ncode * | defineCode (char *key, char *val, struct ir_ncode *code) |
struct ir_code_node * | defineNode (struct ir_ncode *code, const char *val) |
int | parseFlags (char *val) |
int | defineRemote (char *key, char *val, char *val2, struct ir_remote *rem) |
struct ir_remote * | read_config (FILE *f, const char *name) |
Parse a lircd.conf config file. | |
void | free_config (struct ir_remote *remotes) |
Free() an ir_remote instance obtained using read_config(). | |
Variables | |
const char * | whitespace = " \t" |
const struct flaglist | all_flags [] |
All flags i config file: Their name and mask. | |
Implements config_file.h.
Definition in file config_file.c.
#define LINE_LEN 1024 |
Definition at line 74 of file config_file.c.
#define MAX_INCLUDES 10 |
Definition at line 75 of file config_file.c.
typedef void *(* array_guest_func) (void *item, void *arg) |
foreach_void_array argument.
Definition at line 71 of file config_file.c.
enum directive |
Definition at line 54 of file config_file.c.
int add_void_array | ( | struct void_array * | ar, |
void * | dataptr ) |
Add *dataptr to end of ar, re-allocating as necessary.
Definition at line 124 of file config_file.c.
int addSignal | ( | struct void_array * | signals, |
char * | val ) |
Definition at line 351 of file config_file.c.
int checkMode | ( | int | is_mode, |
int | c_mode, | ||
char * | error ) |
Definition at line 340 of file config_file.c.
Definition at line 364 of file config_file.c.
struct ir_code_node * defineNode | ( | struct ir_ncode * | code, |
const char * | val ) |
Definition at line 373 of file config_file.c.
int defineRemote | ( | char * | key, |
char * | val, | ||
char * | val2, | ||
struct ir_remote * | rem ) |
Definition at line 442 of file config_file.c.
void * get_void_array | ( | struct void_array * | ar | ) |
Return the array dataptr, an array[nr_items] of item_size elements.
Definition at line 149 of file config_file.c.
void ** init_void_array | ( | struct void_array * | ar, |
size_t | chunk_size, | ||
size_t | item_size ) |
Definition at line 85 of file config_file.c.
int parseFlags | ( | char * | val | ) |
Definition at line 396 of file config_file.c.
void * s_malloc | ( | size_t | size | ) |
Definition at line 227 of file config_file.c.
char * s_strdup | ( | char * | string | ) |
Definition at line 241 of file config_file.c.
ir_code s_strtocode | ( | const char * | val | ) |
Definition at line 254 of file config_file.c.
int s_strtoi | ( | char * | val | ) |
Definition at line 285 of file config_file.c.
lirc_t s_strtolirc_t | ( | char * | val | ) |
Definition at line 319 of file config_file.c.
uint32_t s_strtou32 | ( | char * | val | ) |
Definition at line 270 of file config_file.c.
unsigned int s_strtoui | ( | char * | val | ) |
Definition at line 302 of file config_file.c.
const struct flaglist all_flags[] |
All flags i config file: Their name and mask.
Definition at line 99 of file config_file.c.
const char* whitespace = " \t" |
Definition at line 77 of file config_file.c.