IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28043 for trunk/psLib


Ignore:
Timestamp:
May 19, 2010, 5:13:52 PM (16 years ago)
Author:
watersc1
Message:

Merging czw_branch (maskstats and software versions) back into the trunk

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/psLib/src/sys/psConfigure.c

    r23793 r28043  
    6666}
    6767
     68psString psLibRevision(void)
     69{
     70    char *value = NULL;
     71    psStringAppend(&value, "%s", PSLIB_VERSION);
     72    return value;
     73}
     74
    6875psString psLibSource(void)
    6976{
  • trunk/psLib/src/sys/psConfigure.h

    r23148 r28043  
    3232 */
    3333psString psLibVersion(void);
     34
     35/** Get current psLib revision number
     36 *
     37 *  Returns the current psLib revision number as a string.
     38 *
     39 *  @return psString: String with revision number.
     40 */
     41psString psLibRevision(void);
    3442
    3543/** Get current psLib source
  • trunk/psLib/src/types/psMetadataHeader.c

    r23289 r28043  
    1717    psString version = psLibVersion();  // Software version
    1818    psString source = psLibSource();    // Software source
    19 
     19    psString revision = psLibRevision();
     20    psMetadataAddStr(header, PS_LIST_TAIL, "PSLIB_V", PS_META_REPLACE, NULL, revision);
     21   
    2022    psStringPrepend(&version, "psLib version: ");
    2123    psStringPrepend(&source, "psLib source: ");
     
    2628    psFree(version);
    2729    psFree(source);
    28 
     30    psFree(revision);
    2931    return true;
    3032}
Note: See TracChangeset for help on using the changeset viewer.