IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 11:22:09 AM (20 years ago)
Author:
Paul Price
Message:

Fixing psLib APIs following clean-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r9435 r9539  
    33 *  @author PAP, IfA
    44 *
    5  *  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-10-10 01:03:13 $
     5 *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-10-13 21:15:45 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    277277            // filename
    278278            bool mdok = true;           // Status of MD lookup
    279             psMetadata *cameras = psMetadataLookupMD(&mdok, config->site, "CAMERAS");
     279            psMetadata *cameras = psMetadataLookupMetadata(&mdok, config->site, "CAMERAS");
    280280            if (mdok && cameras) {
    281281                char *newFile = psMetadataLookupStr(NULL, cameras, cameraFile); // The filename
     
    377377    // XXX: This is not spec'ed in the SDRS.
    378378    //
    379     psMetadata *trace = psMetadataLookupMD(&mdok, config->site, "TRACE");
     379    psMetadata *trace = psMetadataLookupMetadata(&mdok, config->site, "TRACE");
    380380    if (mdok && trace) {
    381381        psMetadataIterator *traceIter = psMetadataIteratorAlloc(trace, PS_LIST_HEAD, NULL); // Iterator
     
    446446    // Read the rule for that camera format
    447447    bool mdStatus = true;
    448     psMetadata *rule = psMetadataLookupMD(&mdStatus, cameraFormat, "RULE");
     448    psMetadata *rule = psMetadataLookupMetadata(&mdStatus, cameraFormat, "RULE");
    449449    if (! mdStatus || ! rule) {
    450450        psLogMsg(__func__, PS_LOG_WARN, "Unable to read rule for camera.\n");
     
    493493    // Read the list of formats
    494494    bool mdok = true;                   // Status of MD lookup
    495     psMetadata *formats = psMetadataLookupMD(&mdok, camera, "FORMATS"); // List of formats
     495    psMetadata *formats = psMetadataLookupMetadata(&mdok, camera, "FORMATS"); // List of formats
    496496    if (!mdok || !formats) {
    497497        psLogMsg(__func__, PS_LOG_WARN, "Unable to find list of FORMATS in camera %s --- ignored\n",
     
    550550    // If we don't know what sort of camera we have, we try all that we know
    551551    if (! config->camera) {
    552         psMetadata *cameras = psMetadataLookupMD(&mdok, config->site, "CAMERAS");
     552        psMetadata *cameras = psMetadataLookupMetadata(&mdok, config->site, "CAMERAS");
    553553        if (! mdok) {
    554554            psError(PS_ERR_IO, true, "Unable to find CAMERAS in the configuration.");
     
    615615    PS_ASSERT_PTR_NON_NULL(config, NULL);
    616616
    617     psMetadata *cameras = psMetadataLookupMD(NULL, config->site, "CAMERAS");
     617    psMetadata *cameras = psMetadataLookupMetadata(NULL, config->site, "CAMERAS");
    618618    if (!cameras) {
    619619        psError(PS_ERR_IO, true, "Unable to find CAMERAS in the configuration.");
     
    659659
    660660    bool mdok = true;                   // Status of MD lookup
    661     psMetadata *recipes = psMetadataLookupMD(&mdok, source, "RECIPES"); // The list of recipes
     661    psMetadata *recipes = psMetadataLookupMetadata(&mdok, source, "RECIPES"); // The list of recipes
    662662    if (!mdok || !recipes) {
    663663        psLogMsg(__func__, PS_LOG_WARN, "RECIPES in the %s is not of type METADATA --- ignored\n",
     
    720720            if (sourceItem->data.S32 == P_PM_RECIPE_SOURCE_SYMBOLIC) {
    721721                const char *linkName = sourceItem->comment; // The name of the link
    722                 psMetadata *linkSource = psMetadataLookupMD(&mdok, config->recipes, linkName); // The source
     722                psMetadata *linkSource = psMetadataLookupMetadata(&mdok, config->recipes, linkName); // The source
    723723                if (!mdok || !linkSource) {
    724724                    // Can't yet resolve it
     
    794794
    795795            // Is the source a symbolic reference?
    796             psMetadata *extant = psMetadataLookupMD(&mdok, config->recipes, recipeSource); // Does it exist?
     796            psMetadata *extant = psMetadataLookupMetadata(&mdok, config->recipes, recipeSource); // Does it exist?
    797797            if (mdok && extant) {
    798798                psString comment = psStringCopy("Recipe added from command line as symbolic link to ");
     
    889889
    890890    bool mdok = true;                   // Status of MD lookup
    891     psMetadata *rules = psMetadataLookupMD(&mdok, format, "RULE"); // How to identify this format
     891    psMetadata *rules = psMetadataLookupMetadata(&mdok, format, "RULE"); // How to identify this format
    892892    if (!mdok || !rules) {
    893893        psError(PS_ERR_IO, true, "Unable to find RULE in camera format.\n");
Note: See TracChangeset for help on using the changeset viewer.