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