IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 17, 2008, 12:16:38 PM (18 years ago)
Author:
Paul Price
Message:

Changing use of psDB* to pmConfig* so that the database handle only has to be set up when required.

File:
1 edited

Legend:

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

    r17911 r18163  
    99#include <pslib.h>
    1010
     11#include "pmConfig.h"
    1112#include "pmHDU.h"
    1213#include "pmFPA.h"
     
    427428// XXX Warning: This code has not been tested at all
    428429bool p_pmConceptsWriteToDatabase(const psMetadata *specs, const pmFPA *fpa, const pmChip *chip,
    429                                  const pmCell *cell, psDB *db, const psMetadata *concepts)
     430                                 const pmCell *cell, pmConfig *config, const psMetadata *concepts)
    430431{
    431432    PS_ASSERT_PTR_NON_NULL(specs, false);
    432433    PS_ASSERT_PTR_NON_NULL(concepts, false);
    433 
    434     if (!db) {
    435         return false;
    436     }
     434    PS_ASSERT_PTR_NON_NULL(config, false);
    437435
    438436    #ifndef HAVE_PSDB
     
    456454        psString name = specItem->name; // The concept name
    457455
    458         psMetadataItem *dbItem = p_pmConceptsReadSingleFromDatabase(name, database, db, fpa, chip, cell);
     456        psMetadataItem *dbItem = p_pmConceptsReadSingleFromDatabase(name, database, config, fpa, chip, cell);
    459457        if (!dbItem) {
    460458            continue;
Note: See TracChangeset for help on using the changeset viewer.