Changeset 9057 for trunk/ippTools/src/p2searchPendingFrames.c
- Timestamp:
- Sep 28, 2006, 5:25:54 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/p2searchPendingFrames.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/p2searchPendingFrames.c
r8121 r9057 25 25 p2PendingExpRow *exposure = exposures->data[i]; 26 26 27 psMetadataAddStr(where, PS_LIST_TAIL, "exp_ id", PS_META_REPLACE, "==", exposure->exp_id);27 psMetadataAddStr(where, PS_LIST_TAIL, "exp_tag", PS_META_REPLACE, "==", exposure->exp_tag); 28 28 psMetadataAddS32(where, PS_LIST_TAIL, "p2_version", PS_META_REPLACE, "==", exposure->p2_version); 29 29 … … 61 61 PS_ASSERT_PTR_NON_NULL(config, NULL); 62 62 63 // exp_ idis optional63 // exp_tag is optional 64 64 bool status = false; 65 psString exp_ id = psMetadataLookupStr(&status, config->args, "-exp_id");65 psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag"); 66 66 if (!status) { 67 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_ id");67 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag"); 68 68 return false; 69 69 } 70 70 71 // search only based on exp_ id-- either they specified it or not71 // search only based on exp_tag -- either they specified it or not 72 72 psMetadata *where = NULL; 73 if (exp_ id) {73 if (exp_tag) { 74 74 where = psMetadataAlloc(); 75 if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_ id", 0, "==", exp_id)) {76 psError(PS_ERR_UNKNOWN, false, "failed to add item exp_ id");75 if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_tag", 0, "==", exp_tag)) { 76 psError(PS_ERR_UNKNOWN, false, "failed to add item exp_tag"); 77 77 psFree(where); 78 78 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
