IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 8, 2004, 4:22:56 PM (22 years ago)
Author:
desonia
Message:

changed psListAdd to match new parameter order in SDRS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psMetadata.c

    r1653 r1746  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-08-28 01:18:28 $
     14*  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-09-09 02:22:56 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    278278
    279279            // Add leaf node to existing folder node
    280             if(!psListAdd(existingEntry->items, metadataItem, PS_LIST_TAIL)) {
     280            if(!psListAdd(existingEntry->items, PS_LIST_TAIL, metadataItem)) {
    281281                psError( __func__, "Couldn't add metadata item to items list. Name: %s",
    282282                         metadataItem->name );
     
    288288            newFolderEntry = psMetadataItemAlloc(key, PS_META_ITEM_SET, NULL, NULL);
    289289
    290             if(!psListAdd(newFolderEntry->items, existingEntry, PS_LIST_TAIL)) {
     290            if(!psListAdd(newFolderEntry->items, PS_LIST_TAIL, existingEntry)) {
    291291                psError( __func__, "Couldn't add metadata item to items list. Name: %s", key);
    292292                psFree(newFolderEntry);
     
    294294            }
    295295
    296             if(!psListAdd(newFolderEntry->items, metadataItem, PS_LIST_TAIL)) {
     296            if(!psListAdd(newFolderEntry->items, PS_LIST_TAIL, metadataItem)) {
    297297                psError( __func__, "Couldn't add metadata item to items list. Name: %s", key);
    298298                psFree(newFolderEntry);
     
    317317
    318318            // Folder node replaces leaf or folder node - Put old node into new folder and remove from table
    319             if(!psListAdd(metadataItem->items, existingEntry, PS_LIST_TAIL)) {
     319            if(!psListAdd(metadataItem->items, PS_LIST_TAIL, existingEntry)) {
    320320                psError( __func__, "Couldn't add metadata item to items list. Name: %s", key);
    321321                return false;
     
    342342
    343343    // Add all items to metadata collection's list, even if they have the same metadata item names
    344     if(!psListAdd( mdList, metadataItem, where )) {
     344    if(!psListAdd( mdList, where, metadataItem )) {
    345345        psError( __func__, "Couldn't add metadata item to metadata collection list. Name: %s",
    346346                 metadataItem->name );
     
    418418            entryChild = psListGetCurrent(entry->items);
    419419            while (entryChild != NULL) {
    420                 if (!psListRemove(mdList, entryChild, PS_LIST_UNKNOWN)) {
     420                if (!psListRemove(mdList, PS_LIST_UNKNOWN, entryChild)) {
    421421                    psError(__func__, "Couldn't remove metadata item from list. Name: %s", key);
    422422                    return false;
     
    427427
    428428            // Table entry has no children. Remove entry from metadata collection's list
    429             if (!psListRemove(mdList, entry, PS_LIST_UNKNOWN)) {
     429            if (!psListRemove(mdList, PS_LIST_UNKNOWN, entry)) {
    430430                psError(__func__, "Couldn't remove metadata item from list. Name: %s", key);
    431431                return false;
Note: See TracChangeset for help on using the changeset viewer.