IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 402


Ignore:
Timestamp:
Apr 8, 2004, 12:43:55 PM (22 years ago)
Author:
Paul Price
Message:

Changed psMetadataAppend to psMetadataAppendItem, and added a
psMetadataAppend which short-circuits the need to create an item
before appending it. So you can either:
psMetadataAppendItem(md, psMetadataItemAlloc(STUFF));
or:
psMetadataAppend(md, STUFF);

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psMetadata.h

    r401 r402  
    7272
    7373/** Destructor */
    74 void psMetadataFree(psMetadata *ms ///< destroy a set of metadata
     74void psMetadataFree(psMetadata *md ///< destroy a set of metadata
    7575    );
    7676
     
    7878
    7979/// Add entry to the end of the metadata
    80 psMetadataItem *psMetadataAppend(psMetadata *restrict md, ///< metadata to add to
    81                                  psMetadataItem *restrict item ///< Metatdata to add
     80psMetadataItem *psMetadataAppendItem(psMetadata *restrict md, ///< metadata to add to
     81                                     psMetadataItem *restrict item ///< Metatdata item to add
     82    );
     83
     84/// Add entry to the end of the metadata.  Combines psMetadataItemAlloc and psMetadataAppendItem
     85psMetadataItem *psMetadataAppend(psMetadata *restrict md, ///< Metadata to add to
     86                                 int typeFlags ///< type of this piece of metadata + flags
     87                                 const void *val, ///< value of new item N.b. a pointer even if the item
     88                                                  ///< is of type e.g. int
     89                                 const char *comment, ///< comment associated with item
     90                                 const char *name, ///< name of new item of metadata (may be in sprintf
     91                                                   ///< format)
     92                                 ...    ///< possible arguments for name format
    8293    );
    8394
     
    8899
    89100/// reset the iterator to the start of the list
    90 void psMetadataSetIterator(psMetadata *ms ///< metadata to set iterator for
     101void psMetadataSetIterator(psMetadata *md ///< metadata to set iterator for
    91102    );
    92103
Note: See TracChangeset for help on using the changeset viewer.