1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 void
 saf_getInfo_hdfversion(
    const SAF_PathInfo info,/* [IN] database info object obtained from a saf_readInfo_path() call. */
    int *major,          /* [OUT] major version number. Ignored if NULL. */
    int *minor,          /* [OUT] minor version number. Ignored if NULL. */
    int *patch,          /* [OUT] patch (aka "release") version number. Ignored if NULL. */
    char *annot          /* [OUT] annotation string of at most 8 chars including null. Caller allocates. Ignored if NULL. */
 )
 {
    SAF_ENTER(saf_getInfo_hdfversion,/*void*/);
    SAF_REQUIRE(info,SAF_LOW_CHK_COST,/*void*/,_saf_errmsg("INFO must be non-NULL"));
    if (info->allOk)
       _saf_getInfo_version(info, "hdf5", major, minor, patch, annot);
    SAF_LEAVE(/*void*/);
 }