IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 3:02:31 PM (20 years ago)
Author:
Paul Price
Message:

Renaming functions in pmConceptsRead.h and pmConceptsWrite.h to be private ("p_").
Adding const where appropriate, and changing order of parameters to match usual
convention (outputs go first).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConcepts.c

    r9539 r9570  
    117117// Read all registered concepts for the specified level
    118118static bool conceptsRead(psMetadata **specs, // One of the concepts specifications
    119                          pmFPA *fpa,    // The FPA
    120                          pmChip *chip,  // The chip
    121                          pmCell *cell, // The cell
     119                         const pmFPA *fpa,    // The FPA
     120                         const pmChip *chip,  // The chip
     121                         const pmCell *cell, // The cell
    122122                         unsigned int *read,     // What's already been read
    123123                         pmConceptSource source, // The source of the concepts to read
     
    135135
    136136    bool success = true;                // Success in reading concepts?
    137     if (source & PM_CONCEPT_SOURCE_CAMERA && !(*read & PM_CONCEPT_SOURCE_CAMERA)) {
    138         if (pmConceptsReadFromCamera(*specs, cell, target)) {
    139             *read |= PM_CONCEPT_SOURCE_CAMERA;
     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;
    140140        } else {
    141141            psError(PS_ERR_UNKNOWN, false, "Error reading concepts from camera configuration.\n");
     
    145145
    146146    if (source & PM_CONCEPT_SOURCE_DEFAULTS && !(*read & PM_CONCEPT_SOURCE_DEFAULTS)) {
    147         if (pmConceptsReadFromDefaults(*specs, fpa, chip, cell, target)) {
     147        if (p_pmConceptsReadFromDefaults(target, *specs, fpa, chip, cell)) {
    148148            *read |= PM_CONCEPT_SOURCE_DEFAULTS;
    149149        } else {
     
    154154
    155155    if (source & PM_CONCEPT_SOURCE_PHU && !(*read & PM_CONCEPT_SOURCE_PHU)) {
    156         if (!pmConceptsReadFromHeader(*specs, fpa, chip, cell, target)) {
     156        if (!p_pmConceptsReadFromHeader(target, *specs, fpa, chip, cell)) {
    157157            psError(PS_ERR_UNKNOWN, false, "Error reading concepts from header.\n");
    158158            success = false;
     
    161161
    162162    if (source & PM_CONCEPT_SOURCE_HEADER && !(*read & PM_CONCEPT_SOURCE_HEADER)) {
    163         if (pmConceptsReadFromHeader(*specs, fpa, chip, cell, target)) {
     163        if (p_pmConceptsReadFromHeader(target, *specs, fpa, chip, cell)) {
    164164            *read |= PM_CONCEPT_SOURCE_HEADER;
    165165        } else {
     
    171171    #ifndef OMIT_PSDB
    172172    if (source & PM_CONCEPT_SOURCE_DATABASE && !(*read & PM_CONCEPT_SOURCE_DATABASE)) {
    173         if (pmConceptsReadFromDatabase(*specs, fpa, chip, cell, db, target)) {
     173        if (p_pmConceptsReadFromDatabase(target, *specs, fpa, chip, cell, db)) {
    174174            *read |= PM_CONCEPT_SOURCE_DATABASE;
    175175        } else {
     
    202202    psTrace("psModules.concepts", 3, "Writing concepts (%p %p %p): %d\n", fpa, chip, cell, source);
    203203
    204     if (source & PM_CONCEPT_SOURCE_CAMERA) {
    205         pmConceptsWriteToCamera(*specs, cell, concepts);
     204    if (source & PM_CONCEPT_SOURCE_CELLS) {
     205        p_pmConceptsWriteToCells(*specs, cell, concepts);
    206206    }
    207207    if (source & PM_CONCEPT_SOURCE_DEFAULTS) {
    208         pmConceptsWriteToDefaults(*specs, fpa, chip, cell, concepts);
     208        p_pmConceptsWriteToDefaults(*specs, fpa, chip, cell, concepts);
    209209    }
    210210    if (source & (PM_CONCEPT_SOURCE_PHU | PM_CONCEPT_SOURCE_HEADER)) {
    211         pmConceptsWriteToHeader(*specs, fpa, chip, cell, concepts);
     211        p_pmConceptsWriteToHeader(*specs, fpa, chip, cell, concepts);
    212212    }
    213213    if (source & PM_CONCEPT_SOURCE_DATABASE) {
    214         pmConceptsWriteToDatabase(*specs, fpa, chip, cell, db, concepts);
     214        p_pmConceptsWriteToDatabase(*specs, fpa, chip, cell, db, concepts);
    215215    }
    216216
Note: See TracChangeset for help on using the changeset viewer.