brewco/brewco.h

changeset 459
1f88be70f253
parent 457
24a34b7a693d
child 463
a1da58215b65
--- a/brewco/brewco.h	Sat Dec 12 22:17:25 2015 +0100
+++ b/brewco/brewco.h	Tue Dec 15 23:11:42 2015 +0100
@@ -195,7 +195,7 @@
  * Recipes.
  */
 typedef struct _mash_step {
-    char		name[21];		/* Step name			*/
+    char		*name;			/* Step name			*/
     int			min;			/* Minimum temperature		*/
     int			max;			/* Maximum temperature		*/
     int			canskip;		/* 0/1 can we skip this step	*/
@@ -214,30 +214,31 @@
 // mash-out	75	80	noskip
 
 typedef struct _hop_stand {
-    char		name[21];		/* Hop stand name		*/
+    char		*name;			/* Hop stand name		*/
     int			min;			/* Minimum temperature		*/
     int			max;			/* Maximum temperature		*/
-    int			holdtemp;		/* Hold temperature at		*/
+    int			hold;			/* Hold temperature at		*/
     float		setpoint;		/* Hold temperature setpoint	*/
     int			skip;			/* Skip this one		*/
     int			duration;		/* Hold time			*/
 } hop_stand;
 
 typedef struct _hop_addition {
-    char		name[21];		/* Hop name			*/
-    int			boil_duration;		/* -1=fwh, 0..boiltime		*/
+    char		*name;			/* Hop name			*/
+    int			boiltime;		/* -1=fwh, 0..boiltime		*/
 } hop_addition;
 
 typedef struct _a_recipe {
-    char		uuid[37];		/* Recipe uuid			*/
-    char		code[21];		/* Recipe code			*/
-    char		name[21];		/* Recipe name			*/
+    struct _a_recipe	*next;
+    char		*uuid;			/* Recipe uuid			*/
+    char		*code;			/* Recipe code			*/
+    char		*name;			/* Recipe name			*/
+    int                 boiltime;               /* 1..240 minutes               */
+    time_t              starttime;		/* Start time                   */
+    time_t              endtime;                /* Ending time                  */
     mash_step		mash[8];		/* 8 mash steps			*/
     hop_addition	hops[10];		/* 10 hop additions		*/
-    int			boiltime;		/* 1..240 minutes		*/
     hop_stand		hopstand[3];		/* 3 hopstand slots		*/
-    time_t		started;		/* Start time			*/
-    time_t		endtime;		/* Ending time			*/
 } a_recipe;
 
 

mercurial