lib/mbselib.h

changeset 24
873786a20a61
parent 22
a3b058c67289
child 25
5e0695f6add5
--- a/lib/mbselib.h	Mon May 05 10:33:26 2014 +0200
+++ b/lib/mbselib.h	Mon May 05 13:49:53 2014 +0200
@@ -50,6 +50,12 @@
     int                 lastval;                /* Last valid value             */
 } w1_therm;
 
+typedef struct _rc_switch {
+    struct _rc_switch	*next;
+    char		*address;		/* Address code			*/
+    char		*alias;			/* Friendly name		*/
+} rc_switch;
+
 typedef struct _sys_config {
     char		*name;			/* Configuration name		*/
     char		*mosq_host;		/* mosquitto server hostname	*/
@@ -58,13 +64,16 @@
 #ifdef HAVE_WIRINGPI_H
     int			lcd_cols;		/* LCD display columns		*/
     int			lcd_rows;		/* LCD display rows		*/
+    int			rx433;			/* 433 MHz receiver pin		*/
+    int			tx433;			/* 433 MHz transmitter pin	*/
+    rc_switch		*rcswitch;		/* 433 MHz RC Power switches	*/
 #endif
 } sys_config;
 
 
 
 void killconfig(void);
-int  rdconfig(void);
+int  rdconfig(char *);
 
 
 /* xutil.c */

mercurial