diff -r 28ee293654fd -r 901ca9858a7a thermferm/thermferm.h --- a/thermferm/thermferm.h Wed Jul 02 22:41:31 2014 +0200 +++ b/thermferm/thermferm.h Thu Jul 03 23:11:44 2014 +0200 @@ -51,12 +51,6 @@ #define MBSE_SS(x) (x)?(x):"(null)" -/* rdconfig.c */ -//typedef struct _key_list { -// char *key; -// int (*prc)(char **); -// char **dest; -//} key_list; /* * Fermenter units. These units are connected via the 1-wire bus. @@ -108,6 +102,29 @@ #define UNITIO2_FAN 0x01 /* Fan bit */ #define UNITIO2_DOOR 0x02 /* Door status */ + + +/* + * Fermenting steps + */ +typedef struct _prof_step { + struct _prof_step *next; + int version; /* Version 1 */ + int duration; /* Duration in hours */ + float target; /* Target temperature */ +} prof_step; + +/* + * Fermenting profiles + */ +typedef struct _prof_list { + struct _prof_list *next; + int version; /* Version 1 */ + char *uuid; /* Profile uuid */ + char *name; /* Profile name */ + prof_step *steps; /* Profile steps */ +} profiles_list; + #define PROFILE_OFF 0 /* Profile not active */ #define PROFILE_PAUSE 1 /* Profile pause */ #define PROFILE_RUN 2 /* Profile is running */ @@ -136,6 +153,7 @@ int lcd_address; /* LCD display i2c address */ #endif units_list *units; /* Fermenter units */ + profiles_list *profiles; /* Ferment profiles */ /* ControlSettings: */ unsigned char cs_mode; /* mode */ float cs_beerSet; /* beer temperature */