brewco/brewco.h

changeset 459
1f88be70f253
parent 457
24a34b7a693d
child 463
a1da58215b65
equal deleted inserted replaced
458:43a8ecb53637 459:1f88be70f253
193 193
194 /* 194 /*
195 * Recipes. 195 * Recipes.
196 */ 196 */
197 typedef struct _mash_step { 197 typedef struct _mash_step {
198 char name[21]; /* Step name */ 198 char *name; /* Step name */
199 int min; /* Minimum temperature */ 199 int min; /* Minimum temperature */
200 int max; /* Maximum temperature */ 200 int max; /* Maximum temperature */
201 int canskip; /* 0/1 can we skip this step */ 201 int canskip; /* 0/1 can we skip this step */
202 float setpoint; /* Temperature setpoint */ 202 float setpoint; /* Temperature setpoint */
203 int skip; /* Skip this step */ 203 int skip; /* Skip this step */
212 // A-amilasi 1 60 76 canskip 212 // A-amilasi 1 60 76 canskip
213 // A-amilasi 2 60 76 noskip 213 // A-amilasi 2 60 76 noskip
214 // mash-out 75 80 noskip 214 // mash-out 75 80 noskip
215 215
216 typedef struct _hop_stand { 216 typedef struct _hop_stand {
217 char name[21]; /* Hop stand name */ 217 char *name; /* Hop stand name */
218 int min; /* Minimum temperature */ 218 int min; /* Minimum temperature */
219 int max; /* Maximum temperature */ 219 int max; /* Maximum temperature */
220 int holdtemp; /* Hold temperature at */ 220 int hold; /* Hold temperature at */
221 float setpoint; /* Hold temperature setpoint */ 221 float setpoint; /* Hold temperature setpoint */
222 int skip; /* Skip this one */ 222 int skip; /* Skip this one */
223 int duration; /* Hold time */ 223 int duration; /* Hold time */
224 } hop_stand; 224 } hop_stand;
225 225
226 typedef struct _hop_addition { 226 typedef struct _hop_addition {
227 char name[21]; /* Hop name */ 227 char *name; /* Hop name */
228 int boil_duration; /* -1=fwh, 0..boiltime */ 228 int boiltime; /* -1=fwh, 0..boiltime */
229 } hop_addition; 229 } hop_addition;
230 230
231 typedef struct _a_recipe { 231 typedef struct _a_recipe {
232 char uuid[37]; /* Recipe uuid */ 232 struct _a_recipe *next;
233 char code[21]; /* Recipe code */ 233 char *uuid; /* Recipe uuid */
234 char name[21]; /* Recipe name */ 234 char *code; /* Recipe code */
235 char *name; /* Recipe name */
236 int boiltime; /* 1..240 minutes */
237 time_t starttime; /* Start time */
238 time_t endtime; /* Ending time */
235 mash_step mash[8]; /* 8 mash steps */ 239 mash_step mash[8]; /* 8 mash steps */
236 hop_addition hops[10]; /* 10 hop additions */ 240 hop_addition hops[10]; /* 10 hop additions */
237 int boiltime; /* 1..240 minutes */
238 hop_stand hopstand[3]; /* 3 hopstand slots */ 241 hop_stand hopstand[3]; /* 3 hopstand slots */
239 time_t started; /* Start time */
240 time_t endtime; /* Ending time */
241 } a_recipe; 242 } a_recipe;
242 243
243 244
244 245
245 246

mercurial