thermferm/thermferm.h

changeset 74
879bd09e2b96
parent 73
4a28de5b9b47
child 75
4b976601737d
equal deleted inserted replaced
73:4a28de5b9b47 74:879bd09e2b96
27 #include <sys/socket.h> 27 #include <sys/socket.h>
28 #include <arpa/inet.h> 28 #include <arpa/inet.h>
29 #include <netdb.h> 29 #include <netdb.h>
30 #include <poll.h> 30 #include <poll.h>
31 #include <stdbool.h> 31 #include <stdbool.h>
32 #ifndef HAVE_WIRINGPI_H
33 #include <pthread.h>
34 #endif
32 #include <libxml/xmlmemory.h> 35 #include <libxml/xmlmemory.h>
33 #include <libxml/parser.h> 36 #include <libxml/parser.h>
34 37
35
36 /* mosquitto */
37 // # include <mosquitto.h>
38 38
39 #ifdef HAVE_WIRINGPI_H 39 #ifdef HAVE_WIRINGPI_H
40 /* wiringPi */ 40 /* wiringPi */
41 #include <wiringPi.h> 41 #include <wiringPi.h>
42 #include <pcf8574.h> 42 #include <pcf8574.h>
178 void logger(char *, char *, char *); 178 void logger(char *, char *, char *);
179 179
180 #ifdef HAVE_WIRINGPI_H 180 #ifdef HAVE_WIRINGPI_H
181 PI_THREAD (my_sensors_loop); 181 PI_THREAD (my_sensors_loop);
182 #else 182 #else
183 int my_sensors_loop(void); 183 void *my_sensors_loop(void *);
184 #endif 184 #endif
185 185
186 /* server.c */ 186 /* server.c */
187 void defaultControlSettings(void); 187 void defaultControlSettings(void);
188 void defaultControlConstants(void); 188 void defaultControlConstants(void);
189 #ifdef HAVE_WIRINGPI_H 189 #ifdef HAVE_WIRINGPI_H
190 PI_THREAD (my_server_loop); 190 PI_THREAD (my_server_loop);
191 #else 191 #else
192 int my_server_loop(void); 192 void *my_server_loop(void *);
193 #endif 193 #endif
194 194
195 195
196 #endif 196 #endif
197 197

mercurial