Changeset 18944 for trunk/psModules/src/config/pmConfigCamera.c
- Timestamp:
- Aug 6, 2008, 11:57:29 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfigCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfigCamera.c
r18939 r18944 95 95 96 96 return root; 97 } 98 99 // Generate the skycell version of a named camera configuration 100 bool pmConfigCameraSkycellVersion(psMetadata *system, // The system configuration 101 const char *name // Name of the un-mosaicked camera 102 ) 103 { 104 PS_ASSERT_METADATA_NON_NULL(system, false); 105 PS_ASSERT_STRING_NON_EMPTY(name, false); 106 107 bool mdok; // Status of MD lookup 108 psMetadata *cameras = psMetadataLookupMetadata(&mdok, system, "CAMERAS"); // List of cameras 109 if (!mdok || !cameras) { 110 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find CAMERAS in the system configuration.\n"); 111 return false; 112 } 113 if (!pmConfigGenerateSkycellVersion(cameras, cameras, name, system)) { 114 psError(PS_ERR_UNKNOWN, true, "Failed to build skycell camera description for %s\n", name); 115 return false; 116 } 117 return true; 97 118 } 98 119
Note:
See TracChangeset
for help on using the changeset viewer.
