summaryrefslogtreecommitdiffstats
path: root/src/H5Fint.c
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2018-12-31 17:27:21 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2018-12-31 21:02:16 (GMT)
commita8dc9793cb19a525dc1663281bc7bd575680d5a8 (patch)
treea13dfade360ff618e90c6c82dc579c45b7a26d5c /src/H5Fint.c
parent43bd13837d0c2e50651cbded2fae90d9189d1b73 (diff)
downloadhdf5-a8dc9793cb19a525dc1663281bc7bd575680d5a8.zip
hdf5-a8dc9793cb19a525dc1663281bc7bd575680d5a8.tar.gz
hdf5-a8dc9793cb19a525dc1663281bc7bd575680d5a8.tar.bz2
Incoporate minimized dataset headers code and tests.
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r--src/H5Fint.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index 031f37c..08f993a 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -482,6 +482,33 @@ done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_get_objects_cb() */
+#if 0 /* MINIMIZED DATASET HEADERS */
+#else
+
+/*-------------------------------------------------------------------------
+ * Function: H5F_set_min_dset_ohdr
+ *
+ * Purpose: Set the crt_dset_ohdr_flag field with a new value.
+ *
+ * Return: SUCCEED/FAIL
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5F_set_min_dset_ohdr(H5F_t *f, hbool_t minimize)
+{
+ /* Use FUNC_ENTER_NOAPI_NOINIT_NOERR here to avoid performance issues */
+ FUNC_ENTER_NOAPI_NOINIT_NOERR
+
+ /* Sanity check */
+ HDassert(f);
+ HDassert(f->shared);
+
+ f->shared->crt_dset_min_ohdr_flag = minimize;
+
+ FUNC_LEAVE_NOAPI(SUCCEED)
+} /* H5F_set_min_dset_ohdr() */
+#endif /* MINIMIZED DATASET HEADERS */
+
/*--------------------------------------------------------------------------
* Function: H5F__build_name