Changeset 8045
- Timestamp:
- Aug 1, 2006, 3:51:26 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 3 edited
-
chiptool.c (modified) (2 diffs)
-
p2pendingToDone.c (modified) (1 diff)
-
pxtools.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r8038 r8045 156 156 static bool doneMode(pxConfig *config) 157 157 { 158 // get exp_id/class/class_id/uri from the CLI // add the completed imfile to 159 // the p2DoneImfile tables // remove corresponding entries from the 160 // p2PendingImfile table // check to see if any p2PendingExps have no 161 // associated p2PendingImfiles // if so move the p2PendingExp(s) to 162 // p2DoneExp 158 // get exp_id/class/class_id/uri from the CLI 159 // add the completed imfile to 160 // the p2DoneImfile tables 161 // remove corresponding entries from the 162 // p2PendingImfile table 163 // check to see if any p2PendingExps have no 164 // associated p2PendingImfiles 165 // if so move the p2PendingExp(s) to p2DoneExp 163 166 164 167 // find pending … … 239 242 return true; 240 243 } 244 245 // XXX the filename layout is defined by this code 246 psArray *p2pendingToDoneImfile(psArray *pendingImfiles) 247 { 248 PS_ASSERT_PTR_NON_NULL(pendingImfiles, NULL); 249 250 psArray *doneImfiles = psArrayAlloc(pendingImfiles->n); 251 doneImfiles->n = 0; 252 253 for (int i = 0; i < pendingImfiles->n; i++) { 254 p2PendingImfileRow *pendingImfile = pendingImfiles->data[i]; 255 256 p2DoneImfileRow *doneImfile = p2DoneImfileRowAlloc( 257 pendingImfile->exp_id, 258 pendingImfile->class_id, 259 pendingImfile->uri, 260 "my recipe", // recipe 261 "my stats", // stats 262 pendingImfile->p1_version, 263 pendingImfile->p2_version 264 ); 265 266 psArrayAdd(doneImfiles, 100, doneImfile); 267 } 268 269 return doneImfiles; 270 } -
trunk/ippTools/src/p2pendingToDone.c
r6978 r8045 64 64 } 65 65 66 // XXX the filename layout is defined by this code67 psArray *p2pendingToDoneImfile(psArray *pendingImfiles)68 {69 PS_ASSERT_PTR_NON_NULL(pendingImfiles, NULL);70 71 psArray *doneImfiles = psArrayAlloc(pendingImfiles->n);72 doneImfiles->n = 0;73 74 for (int i = 0; i < pendingImfiles->n; i++) {75 p2PendingImfileRow *pendingImfile = pendingImfiles->data[i];76 77 p2DoneImfileRow *doneImfile = p2DoneImfileRowAlloc(78 pendingImfile->exp_id,79 pendingImfile->class_id,80 pendingImfile->uri,81 "my recipe", // recipe82 "my stats", // stats83 pendingImfile->p1_version,84 pendingImfile->p2_version85 );86 87 psArrayAdd(doneImfiles, 100, doneImfile);88 }89 90 return doneImfiles;91 }92 93 66 p2DoneExpRow *p2pendingToDoneExp(p2PendingExpRow *pendingExp) 94 67 { -
trunk/ippTools/src/pxtools.h
r7650 r8045 124 124 psArray *p2searchDoneFrames(pxConfig *config); 125 125 psArray *p2searchPendingImfiles(pxConfig *config); 126 psArray *p2pendingToDoneImfile(psArray *pendingImfiles);127 126 psArray *p2searchPendingExp(pxConfig *config); 128 127 p2DoneExpRow *p2pendingToDoneExp(p2PendingExpRow *pendingExp);
Note:
See TracChangeset
for help on using the changeset viewer.
