IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 24, 2006, 5:35:03 PM (20 years ago)
Author:
jhoblitt
Message:

cleanups:

all cli utils have thier own .h
make *Config() funcs consistent

File:
1 edited

Legend:

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

    r6369 r6978  
     1#ifdef HAVE_CONFIG_H
     2#include <config.h>
     3#endif
     4
    15#include <pmConfig.h>
    26#include "pxtools.h"
    37
    4 bool pxAdminConfig(pxConfig *config, int argc, char **argv)
     8pxConfig *pxAdminConfig(pxConfig *config, int argc, char **argv)
    59{
    6     PS_ASSERT_PTR_NON_NULL(config, false);
     10    if (!config) {
     11        config = pxConfigAlloc();
     12    }
    713
    814    if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) {
     
    7076    // define Database handle, if used
    7177    config->dbh = pmConfigDB(config->site);
    72     return true;
     78    return config;
    7379}
    7480
Note: See TracChangeset for help on using the changeset viewer.