summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2015-06-29 22:17:24 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2015-06-29 22:17:24 (GMT)
commit1a5c36ce7ec09d48c4be4337c12e480809ec0700 (patch)
treeff4b11f8a6d751d2847f56d604573e2f2394b76a /src/H5C.c
parentad37464819604c9a7fab98ceff91a21e053eda27 (diff)
downloadhdf5-1a5c36ce7ec09d48c4be4337c12e480809ec0700.zip
hdf5-1a5c36ce7ec09d48c4be4337c12e480809ec0700.tar.gz
hdf5-1a5c36ce7ec09d48c4be4337c12e480809ec0700.tar.bz2
[svn-r27298] Description:
Separate H5AC layer from using package-scoped pieces of the H5C layer, moving from including H5Cpkg.h to H5Cprivate.h. Tested on: MacOSX/64 10.10.3 (amazon) w/serial, parallel & production Linux/32 2.6.x (jam) w/serial & parallel
Diffstat (limited to 'src/H5C.c')
-rw-r--r--src/H5C.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/H5C.c b/src/H5C.c
index a60e519..c478173 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -1924,6 +1924,34 @@ done:
/*-------------------------------------------------------------------------
+ * Function: H5C_get_aux_ptr
+ *
+ * Purpose: Get the aux_ptr field from the cache.
+ *
+ * This field will either be NULL (when accessing a file serially)
+ * or contains a pointer to the auxiliary info for parallel I/O.
+ *
+ * Return: NULL/non-NULL (can't fail)
+ *
+ * Programmer: Quincey Koziol
+ * 6/29/15
+ *
+ *-------------------------------------------------------------------------
+ */
+void *
+H5C_get_aux_ptr(const H5C_t *cache_ptr)
+{
+ FUNC_ENTER_NOAPI_NOERR
+
+ /* Check arguments */
+ HDassert(cache_ptr);
+ HDassert(cache_ptr->magic == H5C__H5C_T_MAGIC);
+
+ FUNC_LEAVE_NOAPI(cache_ptr->aux_ptr)
+} /* H5C_get_aux_ptr() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5C_get_trace_file_ptr
*
* Purpose: Get the trace_file_ptr field from the cache.