Changeset 7027 for trunk/ippTools/src/pzgetimfilesConfig.c
- Timestamp:
- May 1, 2006, 3:05:04 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pzgetimfilesConfig.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pzgetimfilesConfig.c
r6978 r7027 9 9 pxConfig *pzgetimfilesConfig(pxConfig *config, int argc, char **argv) { 10 10 if (!config) { 11 config = pxConfigAlloc(); 11 config = pxConfigAlloc(); 12 12 } 13 13 14 if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) { 14 config->modules = pmConfigRead(&argc, argv); 15 16 if (! config->modules) { 15 17 psError(PS_ERR_UNKNOWN, false, "Can't find site configuration!\n"); 16 18 exit(EXIT_FAILURE); … … 19 21 psMetadata *args = psMetadataAlloc(); 20 22 psMetadataAddStr(args , PS_LIST_TAIL, "-uri", 0, 21 "DataStore FileSet URI", ""); 23 "DataStore FileSet URI", ""); 22 24 psMetadataAddStr(args , PS_LIST_TAIL, "-filesetid", 0, 23 "FileSet ID", ""); 25 "FileSet ID", ""); 24 26 25 27 bool status = false; … … 42 44 43 45 // define Database handle, if used 44 config->dbh = pmConfigDB(config-> site);46 config->dbh = pmConfigDB(config->modules); 45 47 if(!config->dbh) { 46 48 psError(PS_ERR_UNKNOWN, false, "Can't connect to db\n"); … … 50 52 51 53 return config; 52 } 54 }
Note:
See TracChangeset
for help on using the changeset viewer.
