Changeset 6747 for trunk/ppImage/src/ppImageConfig.c
- Timestamp:
- Mar 31, 2006, 3:24:14 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageConfig.c
r6318 r6747 1 1 #include <stdio.h> 2 2 #include "pslib.h" 3 #include "pmConfig.h" 4 #include "ppConfig.h" 3 #include "psmodules.h" 5 4 #include "ppImage.h" 6 5 7 bool ppImageConfig(ppConfig *config,int argc, char **argv)6 pmConfig *ppImageConfig(int argc, char **argv) 8 7 { 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) { 13 10 psErrorStackPrint(stderr, "Can't find site configuration!\n"); 14 11 exit(EXIT_FAILURE); … … 17 14 // Parse other command-line arguments 18 15 config->arguments = psMetadataAlloc(); // The arguments, with default values 19 20 16 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-key", 0, "exposure ID", ""); 21 17 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-bias", 0, "Name of the bias image", ""); … … 43 39 #endif 44 40 45 return true;41 return config; 46 42 }
Note:
See TracChangeset
for help on using the changeset viewer.
