--- a/lib/mbselib.h Wed Apr 23 17:19:00 2014 +0200 +++ b/lib/mbselib.h Wed Apr 23 21:17:44 2014 +0200 @@ -29,14 +29,25 @@ char **dest; } key_list; +typedef struct _w1_therm { + struct _w1_therm *next; + char *master; /* Master for this device */ + int bus; /* Reserved for ds2482-800 */ + char *name; /* Name of this device */ + char *alias; /* Friendly name */ + int present; /* 1=present, 0=absent */ + int lastval; /* Last valid value */ +} w1_therm; typedef struct _sys_config { - char *name; /* Configuration name */ - char *mosq_host; /* mosquitto server hostname */ - int mosq_port; /* mosquitto server port */ + char *name; /* Configuration name */ + char *mosq_host; /* mosquitto server hostname */ + int mosq_port; /* mosquitto server port */ + w1_therm *w1therms; /* 1-wire temp sensors */ } sys_config; + void killconfig(void); int rdconfig(void);