IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2006, 3:24:14 PM (20 years ago)
Author:
Paul Price
Message:

ppImage now working again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageConfig.c

    r6318 r6747  
    11#include <stdio.h>
    22#include "pslib.h"
    3 #include "pmConfig.h"
    4 #include "ppConfig.h"
     3#include "psmodules.h"
    54#include "ppImage.h"
    65
    7 bool ppImageConfig(ppConfig *config, int argc, char **argv)
     6pmConfig *ppImageConfig(int argc, char **argv)
    87{
    9     // XXX - this should be split into a function to parse argc,argv
    10     //       and a second to read the config files.
    11     //       all argc,argv should be interpretted before work is done.
    12     if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) {
     8    pmConfig *config = pmConfigRead(&argc, argv);
     9    if (! config) {
    1310        psErrorStackPrint(stderr, "Can't find site configuration!\n");
    1411        exit(EXIT_FAILURE);
     
    1714    // Parse other command-line arguments
    1815    config->arguments = psMetadataAlloc(); // The arguments, with default values
    19 
    2016    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-key", 0, "exposure ID", "");
    2117    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-bias", 0, "Name of the bias image", "");
     
    4339#endif
    4440
    45     return true;
     41    return config;
    4642}
Note: See TracChangeset for help on using the changeset viewer.