109 #ifndef LIRC_CLIENT_H 
  110 #define LIRC_CLIENT_H 
  122 #include "lirc/paths.h" 
  123 #include "lirc/lirc_config.h" 
  124 #include "lirc/curl_poll.h" 
  131 #define LIRC_RET_SUCCESS  (0) 
  132 #define LIRC_RET_ERROR   (-1) 
  134 #define LIRC_ALL ((char*)(-1)) 
  137 enum lirc_flags { none = 0x00,
 
  143                   toggle_reset = 0x20, };
 
  168         unsigned int                    rep_delay;
 
  169         unsigned int                    ign_first_events;
 
  204 int lirc_init(
const char* prog, 
int verbose);
 
  228                     int (check) (
char* s));
 
  279                          int (check) (
char* s));
 
  364 int lirc_send_one(
int fd, 
const char* remote, 
const char* keysym);
 
void lirc_command_reply_to_stdout(lirc_cmd_ctx *ctx)
Set command_ctx write_to_stdout flag. 
 
int lirc_init(const char *prog, int verbose)
Initial setup: connect to lircd socket. 
 
const char * lirc_setmode(struct lirc_config *config, const char *mode)
Set mode defined in lircrc. 
 
int lirc_get_local_socket(const char *path, int quiet)
Return an opened and connected file descriptor to local lirc socket. 
 
int lirc_command_run(lirc_cmd_ctx *ctx, int fd)
Run a command in non-blocking mode. 
 
char * lircrc_class
The lircrc instance used, if any. 
 
const char * lirc_getmode(struct lirc_config *config)
Get mode defined in lircrc. 
 
#define PACKET_SIZE
IR transmission packet size. 
 
int lirc_simulate(int fd, const char *remote, const char *keysym, int scancode, int repeat)
Send a simulated lirc event.This call might block for some time since it involves communication with ...
 
size_t lirc_getsocketname(const char *id, char *buf, size_t size)
Retrieve default lircrcd socket path. 
 
int lirc_command_init(lirc_cmd_ctx *ctx, const char *fmt,...)
Initiate a lirc_cmd_ctx to run a command. 
 
int head
First free buffer index. 
 
int lirc_nextcode(char **code)
Get next available code from the lircd daemon. 
 
int lirc_get_remote_socket(const char *address, int port, int quiet)
Return an opened and connected file descriptor to remote lirc socket. 
 
int lirc_code2char(struct lirc_config *config, char *code, char **string)
Translate a code string to an application string using .lircrc. 
 
The data needed to run a command on remote server. 
 
int lirc_readconfig_only(const char *file, struct lirc_config **config, int(check)(char *s))
Parse a lircrc configuration file without connecting to lircrcd. 
 
int lirc_readconfig(const char *path, struct lirc_config **config, int(check)(char *s))
Parse a lircrc configuration file. 
 
char * next
Next newline-separated word in buffer. 
 
int lirc_send_one(int fd, const char *remote, const char *keysym)
Send keysym using given remote. 
 
int reply_to_stdout
If true, write reply on stdout. 
 
void lirc_freeconfig(struct lirc_config *config)
Deallocate an object retrieved using lirc_readconfig(). 
 
int lirc_deinit(void)
Release resources allocated by lirc_init(), basically disconnect from socket. 
 
char * lirc_ir2char(struct lirc_config *config, char *code)