Changeset 24681 for trunk/ippTools/src
- Timestamp:
- Jul 6, 2009, 12:49:41 PM (17 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r24562 r24681 491 491 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 492 492 PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false); 493 494 PXOPT_LOOKUP_S64(magicked, config->args, "-magicked", false, false); 493 495 494 496 // generate restrictions … … 614 616 615 617 // since there is only one exp per 'new' set camRun.state = 'full' 616 if (!pxcamRunSetState(config, row->cam_id, "full" )) {618 if (!pxcamRunSetState(config, row->cam_id, "full", magicked)) { 617 619 psError(PS_ERR_UNKNOWN, false, "failed to change camRun.state for cam_id: %" PRId64, row->cam_id); 618 620 psFree(row); -
trunk/ippTools/src/camtoolConfig.c
r24562 r24681 167 167 psMetadataAddS16(addprocessedexpArgs, PS_LIST_TAIL, "-quality", 0, "set quality", 0); 168 168 psMetadataAddBool(addprocessedexpArgs, PS_LIST_TAIL, "-faulted", 0, "only return imfiles with a fault status set", false); 169 psMetadataAddS64(addprocessedexpArgs, PS_LIST_TAIL, "-magicked", 0, "set magicked", 0); 169 170 170 171 // -processedexp -
trunk/ippTools/src/pxcam.c
r23590 r24681 119 119 } 120 120 121 bool pxcamRunSetState(pxConfig *config, psS64 cam_id, const char *state )121 bool pxcamRunSetState(pxConfig *config, psS64 cam_id, const char *state, psS64 magicked) 122 122 { 123 123 PS_ASSERT_PTR_NON_NULL(config, false); … … 131 131 } 132 132 133 char *query = "UPDATE camRun SET state = '%s' WHERE cam_id = %" PRId64;134 if (!p_psDBRunQueryF(config->dbh, query, state, cam_id)) {133 char *query = "UPDATE camRun SET state = '%s', SET magicked = %" PRId64 " WHERE cam_id = %" PRId64; 134 if (!p_psDBRunQueryF(config->dbh, query, state, magicked, cam_id)) { 135 135 psError(PS_ERR_UNKNOWN, false, 136 136 "failed to change state for cam_id %" PRId64, cam_id); -
trunk/ippTools/src/pxcam.h
r19182 r24681 25 25 #include "pxtools.h" 26 26 27 bool pxcamRunSetState(pxConfig *config, psS64 cam_id, const char *state );27 bool pxcamRunSetState(pxConfig *config, psS64 cam_id, const char *state, psS64 magicked); 28 28 bool pxcamRunSetStateByQuery(pxConfig *config, psMetadata *where, const char *state); 29 29 bool pxcamRunSetLabel(pxConfig *config, psS64 cam_id, const char *label);
Note:
See TracChangeset
for help on using the changeset viewer.
