27 |
27 |
28 extern int debug; |
28 extern int debug; |
29 extern char *etcpath; |
29 extern char *etcpath; |
30 |
30 |
31 |
31 |
32 const char BREWSTEP[14][10] = { "NA", "INIT", "WAITSTART", "PREMASH", "MASHING", "IODINE", "REMOVE", "PREBOIL", "BOIL", "BOILDONE", "COOLING", "WHIRLPOOL", "CLEANUP", "DONE" }; |
32 const char BREWSTEP[22][11] = { "NA", "INIT", "WATEROK", "PRIME", "WAITSTART", |
|
33 "PREMASH", "MASHING", "IODINE", "REMOVE", "PREBOIL", |
|
34 "BOIL", "BOILDONE", "WHIRLPOOL1", "HOPSTAND1", "COOLING1", |
|
35 "HOPSTAND2", "COOLING2", "HOPSTAND3", "COOLING", "WHIRLPOOL", |
|
36 "CLEANUP", "DONE" }; |
33 const char MASHSTEP[5][8] = { "NA", "PROMPT", "HEATING", "REST", "DONE" }; |
37 const char MASHSTEP[5][8] = { "NA", "PROMPT", "HEATING", "REST", "DONE" }; |
34 |
38 |
35 #define MY_ENCODING "utf-8" |
39 #define MY_ENCODING "utf-8" |
36 |
40 |
37 |
41 |
230 if ((!xmlStrcmp(cur->name, (const xmlChar *)"UUID_UNIT"))) { |
234 if ((!xmlStrcmp(cur->name, (const xmlChar *)"UUID_UNIT"))) { |
231 brew->uuid_unit = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
235 brew->uuid_unit = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
232 } |
236 } |
233 if ((!xmlStrcmp(cur->name, (const xmlChar *)"BREWSTEP"))) { |
237 if ((!xmlStrcmp(cur->name, (const xmlChar *)"BREWSTEP"))) { |
234 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
238 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
235 for (i = 0; i < 14; i++) { |
239 for (i = 0; i < 22; i++) { |
236 if (! xmlStrcmp(key, (const xmlChar *)BREWSTEP[i])) { |
240 if (! xmlStrcmp(key, (const xmlChar *)BREWSTEP[i])) { |
237 brew->brewstep = i; |
241 brew->brewstep = i; |
238 break; |
242 break; |
239 } |
243 } |
240 } |
244 } |