IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2006, 5:30:00 PM (20 years ago)
Author:
jhoblitt
Message:

partial implimentation of pzgetexp
change pzgetexpConfig() to allocate a pxConfig if passed NULL for config

File:
1 edited

Legend:

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

    r6836 r6837  
    33#include "pxtools.h"
    44
    5 bool pzgetexpConfig(pxConfig *config, int argc, char **argv) {
    6     PS_ASSERT_PTR_NON_NULL(config, false);
     5pxConfig *pzgetexpConfig(pxConfig *config, int argc, char **argv) {
     6    if (!config) {
     7        config = pxConfigAlloc();           
     8    }
    79
    810    if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) {
     
    3840    config->dbh = pmConfigDB(config->site);
    3941
    40     return true;
     42    return config;
    4143}
Note: See TracChangeset for help on using the changeset viewer.