lib/mbselib.h

changeset 34
38e3e3a49320
parent 32
3bac8fd4173d
child 40
dafbbd5e9922
equal deleted inserted replaced
33:2357e8636a60 34:38e3e3a49320
16 #include <syslog.h> 16 #include <syslog.h>
17 #include <unistd.h> 17 #include <unistd.h>
18 #include <errno.h> 18 #include <errno.h>
19 #include <signal.h> 19 #include <signal.h>
20 #include <getopt.h> 20 #include <getopt.h>
21 #include <limits.h>
22
21 23
22 /* mosquitto */ 24 /* mosquitto */
23 #include <mosquitto.h> 25 #include <mosquitto.h>
24 26
25 #ifdef HAVE_WIRINGPI_H 27 #ifdef HAVE_WIRINGPI_H
72 rc_switch *rcswitch; /* 433 MHz RC Power switches */ 74 rc_switch *rcswitch; /* 433 MHz RC Power switches */
73 #endif 75 #endif
74 } sys_config; 76 } sys_config;
75 77
76 78
77
78 void killconfig(void); 79 void killconfig(void);
79 int rdconfig(char *); 80 int rdconfig(char *);
81
82
83 /* lock.c */
84 int lockprog(char *);
85 void ulockprog(char *);
80 86
81 87
82 /* xutil.c */ 88 /* xutil.c */
83 char *xmalloc(size_t); 89 char *xmalloc(size_t);
84 char *xstrcpy(char *); 90 char *xstrcpy(char *);
107 /* logger.c */ 113 /* logger.c */
108 void logger(char *, char *, char *); 114 void logger(char *, char *, char *);
109 115
110 116
111 /* rc-switch.c */ 117 /* rc-switch.c */
112
113 int toggleSwitch(char *); 118 int toggleSwitch(char *);
114 int toggleTypeA(char *, char *, bool); 119 int toggleTypeA(char *, char *, bool);
115 int toggleTypeB(int, int, bool); 120 int toggleTypeB(int, int, bool);
116 int toggleTypeC(char, int, int, bool); 121 int toggleTypeC(char, int, int, bool);
117 int toggleTypeE(char, int, bool); 122 int toggleTypeE(char, int, bool);

mercurial