IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 15, 2011, 9:06:58 AM (15 years ago)
Author:
bills
Message:

for chiptool, difftool, camtool, and stacktool have -updateprocessedXXX to take -set_quality.
This is useful for giving up on processing that is stuck.

File:
1 edited

Legend:

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

    r13580 r30907  
    2626#include "pxtools.h"
    2727
    28 bool pxSetFaultCode(psDB *dbh, const char *tableName, psMetadata *where, psS16 code)
     28bool pxSetFaultCode(psDB *dbh, const char *tableName, psMetadata *where, psS16 code, psS16 quality)
    2929{
    3030    PS_ASSERT_PTR_NON_NULL(dbh, false);
     
    4848        return false;
    4949    }
     50    if (quality) {
     51        if (!psMetadataAddS16(values, PS_LIST_HEAD, "quality", 0, NULL, quality)) {
     52            psError(PS_ERR_UNKNOWN, false, "failed to add metadata item quality");
     53            psFree(values);
     54            return false;
     55        }
     56    }
    5057
    5158    long rowsAffected = psDBUpdateRows(dbh, tableName, where, values);
Note: See TracChangeset for help on using the changeset viewer.