Changeset 9160
- Timestamp:
- Oct 3, 2006, 2:07:34 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r9146 r9160 64 64 static psArray *searchRawImfiles(pxConfig *config, psMetadata *where); 65 65 static psS32 incrementIteration(pxConfig *config, const char *det_id); 66 static bool setDetRunState(pxConfig *config, const char *det_id, const char *state); 66 67 67 68 # define MODECASE(caseName, func) \ … … 273 274 // the first iteration is always 0 274 275 // XXX the camera name is set from the first inputExp 275 detRunInsert(config->dbh, 0, det_type );276 detRunInsert(config->dbh, 0, det_type, "run"); 276 277 long det_id = psDBLastInsertID(config->dbh); 277 278 … … 478 479 // the first iteration is always 0 479 480 // XXX the camera name is set from the first inputExp 480 detRunInsert(config->dbh, 0, det_type );481 detRunInsert(config->dbh, 0, det_type, "run"); 481 482 long det_id = psDBLastInsertID(config->dbh); 482 483 … … 4389 4390 } 4390 4391 4391 // XXX stop deson't actually do anything at this point4392 4392 if (stop) { 4393 return true; 4393 // set detRun.state to stop 4394 return setDetRunState(config, det_id, "stop"); 4394 4395 } 4395 4396 … … 4846 4847 } 4847 4848 4849 static bool setDetRunState(pxConfig *config, const char *det_id, const char *state) 4850 { 4851 PS_ASSERT_PTR_NON_NULL(det_id, false); 4852 PS_ASSERT_PTR_NON_NULL(state, false); 4853 4854 char *query = "UPDATE detRun SET state = '%s' WHERE position = '%s'"; 4855 if (!p_psDBRunQuery(config->dbh, query, state, det_id)) { 4856 psError(PS_ERR_UNKNOWN, false, 4857 "failed to change state for det_id %s", det_id); 4858 return false; 4859 } 4860 4861 return true; 4862 }
Note:
See TracChangeset
for help on using the changeset viewer.
