summaryrefslogtreecommitdiffstats
path: root/src/H5Ffake.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-03-12 04:12:30 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-03-12 04:12:30 (GMT)
commit83de2a580b1b6a67e604ae8336eb078741b4d7db (patch)
treee5e3f3aebbc30c67aff5eb65818c39bf6030bc81 /src/H5Ffake.c
parent6b99b7b02edfbeba9c12f608839c91ba0a0d87b0 (diff)
downloadhdf5-83de2a580b1b6a67e604ae8336eb078741b4d7db.zip
hdf5-83de2a580b1b6a67e604ae8336eb078741b4d7db.tar.gz
hdf5-83de2a580b1b6a67e604ae8336eb078741b4d7db.tar.bz2
Re-factor coding for H5P/Sencode with libver bounds.
Diffstat (limited to 'src/H5Ffake.c')
-rw-r--r--src/H5Ffake.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/H5Ffake.c b/src/H5Ffake.c
index 6720dd2..d199cf0 100644
--- a/src/H5Ffake.c
+++ b/src/H5Ffake.c
@@ -18,6 +18,8 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
+#include "H5Iprivate.h" /* IDs */
+#include "H5Pprivate.h" /* Property lists */
/* PRIVATE PROTOTYPES */
@@ -65,8 +67,10 @@ H5F_fake_alloc(uint8_t sizeof_size, hid_t fapl_id)
if(NULL == (plist = (H5P_genplist_t *)H5I_object(fapl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not file access property list")
- f->shared->low_bound = H5F_LOW_BOUND(f);
- f->shared->high_bound = H5F_HIGH_BOUND(f);
+ if(H5P_get(plist, H5F_ACS_LIBVER_LOW_BOUND_NAME, &(f->shared->low_bound)) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get 'low' bound for library format versions")
+ if(H5P_get(plist, H5F_ACS_LIBVER_HIGH_BOUND_NAME, &(f->shared->high_bound)) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get 'high' bound for library format versions")
/* Set return value */
ret_value = f;