diff -r a08a1fce439e -r 805f1d285acd thermferm/thermferm.h --- a/thermferm/thermferm.h Thu Jun 19 15:49:29 2014 +0200 +++ b/thermferm/thermferm.h Fri Jun 20 17:42:36 2014 +0200 @@ -64,20 +64,24 @@ int update; /* Value updated */ } w1_therm; +#ifdef HAVE_WIRINGPI_H typedef struct _rc_switch { struct _rc_switch *next; char *address; /* Address code */ char *alias; /* Friendly name */ } rc_switch; +#endif typedef struct _sys_config { char *name; /* Configuration name */ int my_port; /* my client/server port */ w1_therm *w1therms; /* 1-wire temp sensors */ +#ifdef HAVE_WIRINGPI_H int lcd_cols; /* LCD display columns */ int lcd_rows; /* LCD display rows */ int tx433; /* 433 MHz transmitter pin */ rc_switch *rcswitch; /* 433 MHz RC Power switches */ +#endif /* ControlSettings: */ unsigned char cs_mode; /* mode */ float cs_beerSet; /* beer temperature */ @@ -130,12 +134,14 @@ void mb_lcdPuts(const int, const char *); void mb_lcdClear(const int); +#endif /* logger.c */ void logger(char *, char *, char *); /* rc-switch.c */ +#ifdef HAVE_WIRINGPI_H int toggleSwitch(char *); int toggleTypeA(char *, char *, bool); int toggleTypeB(int, int, bool); @@ -158,20 +164,25 @@ void disableTransmit(void); char *dec2binWzerofill(unsigned long, unsigned int); - +#endif /* dht11.c */ void dht11Read(void); void dht11Init(int, int, int); - +#ifdef HAVE_WIRINGPI_H PI_THREAD (my_sensors_loop); +#else +int my_sensors_loop(void); +#endif /* server.c */ void defaultControlSettings(void); void defaultControlConstants(void); +#ifdef HAVE_WIRINGPI_H PI_THREAD (my_server_loop); - +#else +int my_server_loop(void); #endif