IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2006, 3:05:04 PM (20 years ago)
Author:
Paul Price
Message:

Updating to use psModules head --- pmConfigRead changed, and pmConfigDB

File:
1 edited

Legend:

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

    r6978 r7027  
    99pxConfig *pzgetimfilesConfig(pxConfig *config, int argc, char **argv) {
    1010    if (!config) {
    11         config = pxConfigAlloc();           
     11        config = pxConfigAlloc();
    1212    }
    1313
    14     if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) {
     14    config->modules = pmConfigRead(&argc, argv);
     15
     16    if (! config->modules) {
    1517        psError(PS_ERR_UNKNOWN, false, "Can't find site configuration!\n");
    1618        exit(EXIT_FAILURE);
     
    1921    psMetadata *args = psMetadataAlloc();
    2022    psMetadataAddStr(args , PS_LIST_TAIL, "-uri", 0,
    21         "DataStore FileSet URI", ""); 
     23        "DataStore FileSet URI", "");
    2224    psMetadataAddStr(args , PS_LIST_TAIL, "-filesetid", 0,
    23         "FileSet ID", ""); 
     25        "FileSet ID", "");
    2426
    2527    bool status = false;
     
    4244
    4345    // define Database handle, if used
    44     config->dbh = pmConfigDB(config->site);
     46    config->dbh = pmConfigDB(config->modules);
    4547    if(!config->dbh) {
    4648        psError(PS_ERR_UNKNOWN, false, "Can't connect to db\n");
     
    5052
    5153    return config;
    52 } 
     54}
Note: See TracChangeset for help on using the changeset viewer.