summaryrefslogtreecommitdiffstats
path: root/src/H5X.c
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2014-03-20 13:07:25 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2014-03-20 13:07:25 (GMT)
commitdab27e11ec53c99f63ebdd07dab6fdcd162b1268 (patch)
tree83dd3e159e0cbcd9ecc12dd5648b222759e33e5e /src/H5X.c
parent1378cfcf3080260ae6d07e7095264c3df026dd46 (diff)
downloadhdf5-dab27e11ec53c99f63ebdd07dab6fdcd162b1268.zip
hdf5-dab27e11ec53c99f63ebdd07dab6fdcd162b1268.tar.gz
hdf5-dab27e11ec53c99f63ebdd07dab6fdcd162b1268.tar.bz2
[svn-r24844] More progress on post_update/query for H5Xdummy
Diffstat (limited to 'src/H5X.c')
-rw-r--r--src/H5X.c58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/H5X.c b/src/H5X.c
index a3e8d10..259e703 100644
--- a/src/H5X.c
+++ b/src/H5X.c
@@ -752,4 +752,62 @@ done:
FUNC_LEAVE_API(ret_value)
}
+/*-------------------------------------------------------------------------
+ * Function: H5Pget_xxpl_transaction
+ *
+ * Purpose: Retrieve the transaction ID from this transfer plist.
+ *
+ * Return: Non-negative on success/Negative on failure
+ *
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5Pget_xxpl_transaction(hid_t xxpl_id, hid_t *trans_id)
+{
+ H5P_genplist_t *plist = NULL; /* Property list pointer */
+ herr_t ret_value = SUCCEED; /* Return value */
+
+ FUNC_ENTER_API(FAIL)
+
+ if (NULL == (plist = H5P_object_verify(xxpl_id, H5P_INDEX_XFER)))
+ HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "not a xxpl");
+
+ /* Get the trans_id */
+ if (trans_id)
+ if (H5P_get(plist, H5VL_TRANS_ID, trans_id) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get property value");
+
+done:
+ FUNC_LEAVE_API(ret_value)
+}
+
+/*-------------------------------------------------------------------------
+ * Function: H5Pget_xxpl_read_context
+ *
+ * Purpose: Retrieve the read context ID from this transfer plist.
+ *
+ * Return: Non-negative on success/Negative on failure
+ *
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5Pget_xxpl_read_context(hid_t xxpl_id, hid_t *rc_id)
+{
+ H5P_genplist_t *plist = NULL; /* Property list pointer */
+ herr_t ret_value = SUCCEED; /* Return value */
+
+ FUNC_ENTER_API(FAIL)
+
+ if (NULL == (plist = H5P_object_verify(xxpl_id, H5P_INDEX_XFER)))
+ HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "not a xxpl");
+
+ /* Get the trans_id */
+ if (rc_id)
+ if (H5P_get(plist, H5VL_CONTEXT_ID, rc_id) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get property value");
+
+done:
+ FUNC_LEAVE_API(ret_value)
+}
+
#endif /* H5_HAVE_INDEXING */