[f41b88]: daemons / lircd.h  Maximize  Restore  History

Download this file

55 lines (45 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* $Id: lircd.h,v 1.1 1999/04/29 21:17:03 columbus Exp $ */
/****************************************************************************
** lircd.h *****************************************************************
****************************************************************************
*
*/
#ifndef _LIRCD_H
#define _LIRCD_H
#include "ir_remote.h"
#define PACKET_SIZE (256)
#define WHITE_SPACE " \t"
void sigterm(int sig);
void sighup(int sig);
void config(void);
void nolinger(int sock);
void remove_client(int fd);
void add_client(void);
void start_server(void);
void logprintf(char *format_str, ...);
void logperror(const char *s);
void daemonize(void);
void sigalrm(int sig);
int parse_rc(int fd,char *message,char *arguments,struct ir_remote **remote,
struct ir_ncode **code,int n);
int send_success(int fd,char *message);
int send_error(int fd,char *message,char *format_str, ...);
int send_remote_list(int fd,char *message);
int send_remote(int fd,char *message,struct ir_remote *remote);
int send_name(int fd,char *message,struct ir_ncode *code);
int list(int fd,char *message,char *arguments);
int send_once(int fd,char *message,char *arguments);
int send_start(int fd,char *message,char *arguments);
int send_stop(int fd,char *message,char *arguments);
int version(int fd,char *message,char *arguments);
int get_pid(int fd,char *message,char *arguments);
int get_command(int fd);
unsigned long readdata();
void loop(void);
struct protocol_directive
{
char *name;
int (*function)(int fd,char *message,char *arguments);
};
extern int lirc;
#endif _LIRCD_H

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks