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/pzgetexpConfig.c

    r6978 r7027  
    99pxConfig *pzgetexpConfig(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);
     
    4648
    4749    // define Database handle, if used
    48     config->dbh = pmConfigDB(config->site);
     50    config->dbh = pmConfigDB(config->modules);
    4951    if(!config->dbh) {
    5052        psError(PS_ERR_UNKNOWN, false, "Can't connect to db\n");
     
    5456
    5557    return config;
    56 } 
     58}
Note: See TracChangeset for help on using the changeset viewer.