Changeset 18905 for trunk/psModules/src/config/pmConfig.c
- Timestamp:
- Aug 4, 2008, 4:16:06 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r18830 r18905 68 68 psFree(config->arguments); 69 69 psFree(config->database); 70 psFree(config->program); 70 71 71 72 // Close log and trace files … … 150 151 config->database = NULL; 151 152 config->defaultRecipe = NULL; 153 config->program = NULL; 152 154 153 155 config->traceFD = DEFAULT_TRACE; … … 442 444 443 445 pmConfig *config = pmConfigAlloc(); // The configuration, containing site, camera and recipes 446 config->program = psStringCopy(argv[0]); 444 447 config->defaultRecipe = defaultRecipe; 445 448 … … 1745 1748 } 1746 1749 1747 1748 #if 01749 bool pmConfigDump(const pmConfig *config, const pmFPA *source, const char *outroot)1750 {1751 PS_ASSERT_PTR_NON_NULL(config, false);1752 PS_ASSERT_STRING_NON_EMPTY(outroot, false);1753 1754 pmFPAview *view = source ? pmFPAviewTop(source) : pmFPAviewAlloc(0);// View to top level1755 if (!view) {1756 psError(PS_ERR_UNKNOWN, false, "Unable to determine top view for FPA.");1757 return false;1758 }1759 1760 psMetadata *dumpRules = psMetadataLookupMetadata(NULL, config->system, "CONFIG.RULES"); // Name rules1761 if (!dumpRules) {1762 psError(PS_ERR_UNKNOWN, false, "Unable to find CONFIG.RULES in system configuration");1763 psFree(view);1764 return false;1765 }1766 1767 const char *name =1768 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
