Changeset 9570 for trunk/psModules/src/concepts/pmConcepts.c
- Timestamp:
- Oct 13, 2006, 3:02:31 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConcepts.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConcepts.c
r9539 r9570 117 117 // Read all registered concepts for the specified level 118 118 static bool conceptsRead(psMetadata **specs, // One of the concepts specifications 119 pmFPA *fpa, // The FPA120 pmChip *chip, // The chip121 pmCell *cell,// The cell119 const pmFPA *fpa, // The FPA 120 const pmChip *chip, // The chip 121 const pmCell *cell, // The cell 122 122 unsigned int *read, // What's already been read 123 123 pmConceptSource source, // The source of the concepts to read … … 135 135 136 136 bool success = true; // Success in reading concepts? 137 if (source & PM_CONCEPT_SOURCE_C AMERA && !(*read & PM_CONCEPT_SOURCE_CAMERA)) {138 if (p mConceptsReadFromCamera(*specs, cell, target)) {139 *read |= PM_CONCEPT_SOURCE_C AMERA;137 if (source & PM_CONCEPT_SOURCE_CELLS && !(*read & PM_CONCEPT_SOURCE_CELLS)) { 138 if (p_pmConceptsReadFromCells(target, *specs, cell)) { 139 *read |= PM_CONCEPT_SOURCE_CELLS; 140 140 } else { 141 141 psError(PS_ERR_UNKNOWN, false, "Error reading concepts from camera configuration.\n"); … … 145 145 146 146 if (source & PM_CONCEPT_SOURCE_DEFAULTS && !(*read & PM_CONCEPT_SOURCE_DEFAULTS)) { 147 if (p mConceptsReadFromDefaults(*specs, fpa, chip, cell, target)) {147 if (p_pmConceptsReadFromDefaults(target, *specs, fpa, chip, cell)) { 148 148 *read |= PM_CONCEPT_SOURCE_DEFAULTS; 149 149 } else { … … 154 154 155 155 if (source & PM_CONCEPT_SOURCE_PHU && !(*read & PM_CONCEPT_SOURCE_PHU)) { 156 if (!p mConceptsReadFromHeader(*specs, fpa, chip, cell, target)) {156 if (!p_pmConceptsReadFromHeader(target, *specs, fpa, chip, cell)) { 157 157 psError(PS_ERR_UNKNOWN, false, "Error reading concepts from header.\n"); 158 158 success = false; … … 161 161 162 162 if (source & PM_CONCEPT_SOURCE_HEADER && !(*read & PM_CONCEPT_SOURCE_HEADER)) { 163 if (p mConceptsReadFromHeader(*specs, fpa, chip, cell, target)) {163 if (p_pmConceptsReadFromHeader(target, *specs, fpa, chip, cell)) { 164 164 *read |= PM_CONCEPT_SOURCE_HEADER; 165 165 } else { … … 171 171 #ifndef OMIT_PSDB 172 172 if (source & PM_CONCEPT_SOURCE_DATABASE && !(*read & PM_CONCEPT_SOURCE_DATABASE)) { 173 if (p mConceptsReadFromDatabase(*specs, fpa, chip, cell, db, target)) {173 if (p_pmConceptsReadFromDatabase(target, *specs, fpa, chip, cell, db)) { 174 174 *read |= PM_CONCEPT_SOURCE_DATABASE; 175 175 } else { … … 202 202 psTrace("psModules.concepts", 3, "Writing concepts (%p %p %p): %d\n", fpa, chip, cell, source); 203 203 204 if (source & PM_CONCEPT_SOURCE_C AMERA) {205 p mConceptsWriteToCamera(*specs, cell, concepts);204 if (source & PM_CONCEPT_SOURCE_CELLS) { 205 p_pmConceptsWriteToCells(*specs, cell, concepts); 206 206 } 207 207 if (source & PM_CONCEPT_SOURCE_DEFAULTS) { 208 p mConceptsWriteToDefaults(*specs, fpa, chip, cell, concepts);208 p_pmConceptsWriteToDefaults(*specs, fpa, chip, cell, concepts); 209 209 } 210 210 if (source & (PM_CONCEPT_SOURCE_PHU | PM_CONCEPT_SOURCE_HEADER)) { 211 p mConceptsWriteToHeader(*specs, fpa, chip, cell, concepts);211 p_pmConceptsWriteToHeader(*specs, fpa, chip, cell, concepts); 212 212 } 213 213 if (source & PM_CONCEPT_SOURCE_DATABASE) { 214 p mConceptsWriteToDatabase(*specs, fpa, chip, cell, db, concepts);214 p_pmConceptsWriteToDatabase(*specs, fpa, chip, cell, db, concepts); 215 215 } 216 216
Note:
See TracChangeset
for help on using the changeset viewer.
