IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2009, 5:38:59 PM (17 years ago)
Author:
Paul Price
Message:

Add software version to header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroVersion.c

    r23162 r23169  
    6464    return true;
    6565}
     66
     67bool psastroVersionHeaderFull(psMetadata *header)
     68{
     69    PS_ASSERT_METADATA_NON_NULL(header, false);
     70
     71    psTime *time = psTimeGetNow(PS_TIME_TAI); // The time now
     72    psString timeString = psTimeToISO(time); // The time in an ISO string
     73    psFree(time);
     74    psString history = NULL;               // History string
     75    psStringAppend(&history, "psastro at %s", timeString);
     76    psFree(timeString);
     77    psMetadataAddStr(header, PS_LIST_TAIL, "HISTORY", PS_META_DUPLICATE_OK, NULL, history);
     78    psFree(history);
     79
     80    psLibVersionHeader(header);
     81    psModulesVersionHeader(header);
     82    psastroVersionHeader(header);
     83
     84    return true;
     85}
Note: See TracChangeset for help on using the changeset viewer.