summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2011-07-20 02:25:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2011-07-20 02:25:35 (GMT)
commitcc3bdaa6d905f21d3c9387e811270ce9f03dced0 (patch)
tree1668b4b5dd73d318a36d8ca689b3d0749819186e /src/H5F.c
parentc021348b268169d25efb5f5f975e65da79c15a8d (diff)
downloadhdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.zip
hdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.tar.gz
hdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.tar.bz2
[svn-r21130] Description:
Bring r21126 from trunk to 1.8 branch: Clean up some compiler warnings, but mainly an interim checkin on the path of reducing code coupling in the library by removing most of the places which were accessing H5F package definitions. Tested on: Mac OS X/32 10.6.8 (amazon) w/debug FreeBSD/32 8.2 (loyalty) w/debug FreeBSD/64 8.2 (freedom) w/debug Linux/32 2.6 (jam) w/debug Linux/64 2.6 (koala) w/debug Linux/64 2.6 (heiwa) w/debug
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 84d5536..9821678 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2929,3 +2929,33 @@ done:
FUNC_LEAVE_API(ret_value)
} /* end H5Fclear_elink_file_cache() */
+
+/*-------------------------------------------------------------------------
+ * Function: H5F_set_grp_btree_shared
+ *
+ * Purpose: Set the grp_btree_shared field with a valid ref-count pointer.
+ *
+ * Return: Success: SUCCEED
+ * Failure: FAIL
+ *
+ * Programmer: Quincey Koziol
+ * 7/19/11
+ *
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5F_set_grp_btree_shared(H5F_t *f, H5RC_t *rc)
+{
+ /* Use FUNC_ENTER_NOAPI_NOINIT_NOFUNC here to avoid performance issues */
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5F_set_grp_btree_shared)
+
+ /* Sanity check */
+ HDassert(f);
+ HDassert(f->shared);
+ HDassert(rc);
+
+ f->shared->grp_btree_shared = rc;
+
+ FUNC_LEAVE_NOAPI(SUCCEED)
+} /* H5F_set_grp_btree_shared() */
+