MythTV  master
Classes | Macros | Enumerations | Functions
lirc_client.h File Reference
#include <cstddef>
Include dependency graph for lirc_client.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lirc_state
 
struct  lirc_list
 
struct  lirc_code
 
struct  lirc_config
 
struct  lirc_config_entry
 

Macros

#define LIRC_RET_SUCCESS   (0)
 
#define LIRC_RET_ERROR   (-1)
 
#define LIRC_ALL   ((char *) (-1))
 

Enumerations

enum  lirc_flags {
  none =0x00, once =0x01, quit =0x02, modex =0x04,
  ecno =0x08, startup_mode =0x10, toggle_reset =0x20
}
 

Functions

struct lirc_statelirc_init (const char *lircrc_root_file, const char *lircrc_user_file, const char *prog, const char *lircd, int verbose)
 
int lirc_deinit (struct lirc_state *)
 
int lirc_readconfig (const struct lirc_state *state, const char *file, struct lirc_config **config, int(check)(char *s))
 
void lirc_freeconfig (struct lirc_config *config)
 
int lirc_nextcode (struct lirc_state *state, char **code)
 
int lirc_code2char (const struct lirc_state *state, struct lirc_config *config, char *code, char **string)
 
int lirc_readconfig_only (const struct lirc_state *state, const char *file, struct lirc_config **config, int(check)(char *s))
 
int lirc_code2charprog (struct lirc_state *state, struct lirc_config *config, char *code, char **string, char **prog)
 
size_t lirc_getsocketname (const char *filename, char *buf, size_t size)
 
const char * lirc_getmode (const struct lirc_state *state, struct lirc_config *config)
 
const char * lirc_setmode (const struct lirc_state *state, struct lirc_config *config, const char *mode)
 

Macro Definition Documentation

◆ LIRC_RET_SUCCESS

#define LIRC_RET_SUCCESS   (0)

Definition at line 27 of file lirc_client.h.

◆ LIRC_RET_ERROR

#define LIRC_RET_ERROR   (-1)

Definition at line 28 of file lirc_client.h.

◆ LIRC_ALL

#define LIRC_ALL   ((char *) (-1))

Definition at line 30 of file lirc_client.h.

Enumeration Type Documentation

◆ lirc_flags

enum lirc_flags
Enumerator
none 
once 
quit 
modex 
ecno 
startup_mode 
toggle_reset 

Definition at line 32 of file lirc_client.h.

Function Documentation

◆ lirc_init()

struct lirc_state* lirc_init ( const char *  lircrc_root_file,
const char *  lircrc_user_file,
const char *  prog,
const char *  lircd,
int  verbose 
)

Definition at line 134 of file lirc_client.c.

Referenced by LIRC::Init().

◆ lirc_deinit()

int lirc_deinit ( struct lirc_state )

Definition at line 208 of file lirc_client.c.

Referenced by LIRC::Init(), lirc_init(), LIRC::run(), and LIRCPriv::~LIRCPriv().

◆ lirc_readconfig()

int lirc_readconfig ( const struct lirc_state state,
const char *  file,
struct lirc_config **  config,
int(check)(char *s)   
)

Definition at line 858 of file lirc_client.c.

Referenced by LIRC::Init().

◆ lirc_freeconfig()

void lirc_freeconfig ( struct lirc_config config)

Definition at line 1434 of file lirc_client.c.

Referenced by lirc_readconfig(), and LIRCPriv::~LIRCPriv().

◆ lirc_nextcode()

int lirc_nextcode ( struct lirc_state state,
char **  code 
)

Definition at line 1822 of file lirc_client.c.

◆ lirc_code2char()

int lirc_code2char ( const struct lirc_state state,
struct lirc_config config,
char *  code,
char **  string 
)

Definition at line 1674 of file lirc_client.c.

Referenced by LIRC::Process().

◆ lirc_readconfig_only()

int lirc_readconfig_only ( const struct lirc_state state,
const char *  file,
struct lirc_config **  config,
int(check)(char *s)   
)

Definition at line 966 of file lirc_client.c.

◆ lirc_code2charprog()

int lirc_code2charprog ( struct lirc_state state,
struct lirc_config config,
char *  code,
char **  string,
char **  prog 
)

Definition at line 1709 of file lirc_client.c.

◆ lirc_getsocketname()

size_t lirc_getsocketname ( const char *  filename,
char *  buf,
size_t  size 
)

Definition at line 1886 of file lirc_client.c.

Referenced by lirc_readconfig().

◆ lirc_getmode()

const char* lirc_getmode ( const struct lirc_state state,
struct lirc_config config 
)

Definition at line 1896 of file lirc_client.c.

◆ lirc_setmode()

const char* lirc_setmode ( const struct lirc_state state,
struct lirc_config config,
const char *  mode 
)

Definition at line 1920 of file lirc_client.c.