IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 21, 2006, 9:18:12 PM (20 years ago)
Author:
jhoblitt
Message:

partial -done implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptool.c

    r6150 r6163  
    160160  //    if so move the p2PendingExp(s) to p2DoneExp
    161161
    162     psArray *pendingFrames = p2searchPendingFrames(config);
    163     if (!pendingFrames) {
    164         psError(PS_ERR_UNKNOWN, false, "no p2PendingFrames found");
     162    // find pending
     163    psArray *pendingImfiles = p2searchPendingImfiles(config);
     164    if (!pendingImfiles) {
     165        psError(PS_ERR_UNKNOWN, false, "no p2PendingImfiles found");
    165166        return false;
    166167    }
     168    // insert into done
     169    psArray *doneImfiles = p2pendingToDoneImfile(pendingImfiles);
     170    for (int i = 0; i < doneImfiles->n; i++) {
     171        if (!p2DoneImfileInsertObject(config->database, doneImfiles->data[i])) {
     172            psError(PS_ERR_UNKNOWN, false, "database access failed");
     173            return false;
     174        }
     175    }
     176    // delete from pending
     177    if (p2PendingImfileDeleteRowObjects(config->database, pendingImfiles, MAX_ROWS) < 0) {
     178        // there must be atleast 1 Imfile to get this far
     179        psError(PS_ERR_UNKNOWN, false, "database access failed");
     180        return false;
     181    }
     182
     183
     184    /*
    167185    psArray *doneFrames = p2pendingToDone(config, pendingFrames);
    168186    if (!doneFrames) {
     
    175193        return false;
    176194    }
     195    */
    177196
    178197    return true;
Note: See TracChangeset for help on using the changeset viewer.