--- a/thermferm/thermferm.h Tue Jun 24 20:21:07 2014 +0200 +++ b/thermferm/thermferm.h Tue Jun 24 22:38:46 2014 +0200 @@ -28,13 +28,13 @@ #include <arpa/inet.h> #include <netdb.h> #include <poll.h> -#include <stdbool.h> #ifndef HAVE_WIRINGPI_H #include <pthread.h> #endif #include <libxml/xmlmemory.h> #include <libxml/parser.h> - +#include <libxml/encoding.h> +#include <libxml/xmlwriter.h> #ifdef HAVE_WIRINGPI_H /* wiringPi */ @@ -74,13 +74,13 @@ float beer_temp; /* Beer temperature */ char *io_address; /* DS2408 address */ unsigned char io_read; /* I/O ports read state */ - bool heater_available; /* Heater available */ + int heater_available; /* Heater available */ int heater_state; /* Heater status */ - bool cooler_available; /* Cooler available */ + int cooler_available; /* Cooler available */ int cooler_state; /* Cooler status */ - bool fan_available; /* Fan available */ + int fan_available; /* Fan available */ int fan_state; /* Fan status */ - bool light_available; /* Door sensor and int. light */ + int light_available; /* Door sensor and int. light */ int light_state; /* Door and light status */ int mode; /* Unit mode */ char *profile; /* Active profile */ @@ -137,7 +137,7 @@ void killconfig(void); int rdconfig(char *); -int wrconfig(char *); +int wrconfig(char *, char *); /* lock.c */