Changeset 17148 for trunk/ippTools/src/chiptool.c
- Timestamp:
- Mar 25, 2008, 4:43:13 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r16725 r17148 35 35 36 36 static bool queueMode(pxConfig *config); 37 static bool updaterunMode(pxConfig *config); 37 38 static bool pendingimfileMode(pxConfig *config); 38 39 static bool addprocessedimfileMode(pxConfig *config); … … 65 66 switch (config->mode) { 66 67 MODECASE(CHIPTOOL_MODE_QUEUE, queueMode); 68 MODECASE(CHIPTOOL_MODE_UPDATERUN, updaterunMode); 67 69 MODECASE(CHIPTOOL_MODE_PENDINGIMFILE, pendingimfileMode); 68 70 MODECASE(CHIPTOOL_MODE_ADDPROCESSEDIMFILE, addprocessedimfileMode); … … 247 249 } 248 250 251 252 static bool updaterunMode(pxConfig *config) 253 { 254 PS_ASSERT_PTR_NON_NULL(config, NULL); 255 256 PXOPT_LOOKUP_STR(chip_id, config->args, "-chip_id", true, false); 257 PXOPT_LOOKUP_STR(state, config->args, "-state", false, false); 258 PXOPT_LOOKUP_STR(label, config->args, "-label", false, false); 259 260 if ((!state) && (!label)) { 261 psError(PXTOOLS_ERR_DATA, false, "parameters are required"); 262 return false; 263 } 264 265 if (state) { 266 // set chipRun.state to state 267 if (!pxchipRunSetState(config, (psS64)atoll(chip_id), state)) { 268 return false; 269 } 270 } 271 272 if (label) { 273 // set chipRun.label to label 274 if (!pxchipRunSetLabel(config, (psS64)atoll(chip_id), label)) { 275 return false; 276 } 277 } 278 279 return true; 280 } 281 282 249 283 static bool pendingimfileMode(pxConfig *config) 250 284 {
Note:
See TracChangeset
for help on using the changeset viewer.
