Changeset 6580 for branches/rel10_ifa/psModules/src/astrom/pmConcepts.c
- Timestamp:
- Mar 13, 2006, 6:40:37 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmConcepts.c
r6575 r6580 76 76 77 77 // Set all registered concepts to blank value for the specified level 78 static bool conceptsBlank(psMetadata * specs, // One of the concepts specifications78 static bool conceptsBlank(psMetadata **specs, // One of the concepts specifications 79 79 psMetadata *target // Place to install the concepts 80 80 ) … … 83 83 pmConceptsInit(); 84 84 } 85 psMetadataIterator *specsIter = psMetadataIteratorAlloc( specs, PS_LIST_HEAD, NULL); // Iterator on specs85 psMetadataIterator *specsIter = psMetadataIteratorAlloc(*specs, PS_LIST_HEAD, NULL); // Iterator on specs 86 86 psMetadataItem *specItem = NULL; // Item from the specs metadata 87 87 while ((specItem = psMetadataGetAndIncrement(specsIter))) { … … 99 99 100 100 // Read all registered concepts for the specified level 101 static bool conceptsRead(psMetadata * specs, // One of the concepts specifications101 static bool conceptsRead(psMetadata **specs, // One of the concepts specifications 102 102 pmFPA *fpa, // The FPA 103 103 pmChip *chip, // The chip … … 113 113 114 114 if (source & PM_CONCEPT_SOURCE_CAMERA || source == PM_CONCEPT_SOURCE_ALL) { 115 pmConceptsReadFromCamera( specs, cell, target);115 pmConceptsReadFromCamera(*specs, cell, target); 116 116 } 117 117 if (source & PM_CONCEPT_SOURCE_DEFAULTS || source == PM_CONCEPT_SOURCE_ALL) { 118 pmConceptsReadFromDefaults( specs, fpa, chip, cell, target);118 pmConceptsReadFromDefaults(*specs, fpa, chip, cell, target); 119 119 } 120 120 if (source & PM_CONCEPT_SOURCE_HEADER || source == PM_CONCEPT_SOURCE_ALL) { 121 pmConceptsReadFromHeader( specs, fpa, chip, cell, target);121 pmConceptsReadFromHeader(*specs, fpa, chip, cell, target); 122 122 } 123 123 if (source & PM_CONCEPT_SOURCE_DATABASE || source == PM_CONCEPT_SOURCE_ALL) { 124 pmConceptsReadFromDatabase( specs, fpa, chip, cell, db, target);124 pmConceptsReadFromDatabase(*specs, fpa, chip, cell, db, target); 125 125 } 126 126 … … 129 129 130 130 // Write all registered concepts for the specified level 131 static bool conceptsWrite(psMetadata * specs, // One of the concepts specifications131 static bool conceptsWrite(psMetadata **specs, // One of the concepts specifications 132 132 pmFPA *fpa, // The FPA 133 133 pmChip *chip, // The chip … … 143 143 144 144 if (source & PM_CONCEPT_SOURCE_CAMERA || source == PM_CONCEPT_SOURCE_ALL) { 145 pmConceptsWriteToCamera( specs, cell, concepts);145 pmConceptsWriteToCamera(*specs, cell, concepts); 146 146 } 147 147 if (source & PM_CONCEPT_SOURCE_DEFAULTS || source == PM_CONCEPT_SOURCE_ALL) { 148 pmConceptsWriteToDefaults( specs, fpa, chip, cell, concepts);148 pmConceptsWriteToDefaults(*specs, fpa, chip, cell, concepts); 149 149 } 150 150 if (source & PM_CONCEPT_SOURCE_HEADER || source == PM_CONCEPT_SOURCE_ALL) { 151 pmConceptsWriteToHeader( specs, fpa, chip, cell, concepts);151 pmConceptsWriteToHeader(*specs, fpa, chip, cell, concepts); 152 152 } 153 153 if (source & PM_CONCEPT_SOURCE_DATABASE || source == PM_CONCEPT_SOURCE_ALL) { 154 pmConceptsWriteToDatabase( specs, fpa, chip, cell, db, concepts);154 pmConceptsWriteToDatabase(*specs, fpa, chip, cell, db, concepts); 155 155 } 156 156 … … 164 164 { 165 165 psTrace("psModule.concepts", 5, "Blanking FPA concepts: %x %x\n", conceptsFPA, fpa->concepts); 166 return conceptsBlank( conceptsFPA, fpa->concepts);166 return conceptsBlank(&conceptsFPA, fpa->concepts); 167 167 } 168 168 … … 174 174 { 175 175 psTrace("psModule.concepts", 5, "Reading FPA concepts: %x %x\n", conceptsFPA, fpa->concepts); 176 return conceptsRead( conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts);176 return conceptsRead(&conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts); 177 177 } 178 178 … … 184 184 { 185 185 psTrace("psModule.concepts", 5, "Writing FPA concepts: %x %x\n", conceptsFPA, fpa->concepts); 186 return conceptsWrite( conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts);186 return conceptsWrite(&conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts); 187 187 } 188 188 … … 192 192 { 193 193 psTrace("psModule.concepts", 5, "Blanking chip concepts: %x %x\n", conceptsChip, chip->concepts); 194 return conceptsBlank( conceptsChip, chip->concepts);194 return conceptsBlank(&conceptsChip, chip->concepts); 195 195 } 196 196 … … 203 203 psTrace("psModule.concepts", 5, "Reading chip concepts: %x %x\n", conceptsChip, chip->concepts); 204 204 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 205 return conceptsRead( conceptsChip, fpa, chip, NULL, source, db, chip->concepts);205 return conceptsRead(&conceptsChip, fpa, chip, NULL, source, db, chip->concepts); 206 206 } 207 207 … … 214 214 psTrace("psModule.concepts", 5, "Writing chip concepts: %x %x\n", conceptsChip, chip->concepts); 215 215 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 216 return conceptsWrite( conceptsChip, fpa, chip, NULL, source, db, chip->concepts);216 return conceptsWrite(&conceptsChip, fpa, chip, NULL, source, db, chip->concepts); 217 217 } 218 218 … … 222 222 { 223 223 psTrace("psModule.concepts", 5, "Blanking cell concepts: %x %x\n", conceptsCell, cell->concepts); 224 return conceptsBlank( conceptsCell, cell->concepts);224 return conceptsBlank(&conceptsCell, cell->concepts); 225 225 } 226 226 … … 234 234 pmChip *chip = cell->parent; // Chip to which the cell belongs 235 235 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 236 return conceptsRead( conceptsCell, fpa, chip, cell, source, db, cell->concepts);236 return conceptsRead(&conceptsCell, fpa, chip, cell, source, db, cell->concepts); 237 237 } 238 238 … … 246 246 pmChip *chip = cell->parent; // Chip to which the cell belongs 247 247 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 248 return conceptsWrite( conceptsCell, fpa, chip, cell, source, db, cell->concepts);248 return conceptsWrite(&conceptsCell, fpa, chip, cell, source, db, cell->concepts); 249 249 } 250 250
Note:
See TracChangeset
for help on using the changeset viewer.
