summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5Pdapl.c19
-rw-r--r--src/H5Ppublic.h2
2 files changed, 12 insertions, 9 deletions
diff --git a/src/H5Pdapl.c b/src/H5Pdapl.c
index 256a46e..b439009 100644
--- a/src/H5Pdapl.c
+++ b/src/H5Pdapl.c
@@ -365,22 +365,25 @@ done:
*
*-------------------------------------------------------------------------
*/
-H5D_vds_view_t
-H5Pget_virtual_view(hid_t plist_id)
+herr_t
+H5Pget_virtual_view(hid_t plist_id, H5D_vds_view_t *view)
{
H5P_genplist_t *plist; /* Property list pointer */
- H5D_vds_view_t ret_value; /* Return value */
+ herr_t ret_value = SUCCEED; /* Return value */
- FUNC_ENTER_API(H5D_VDS_ERROR)
- H5TRACE1("Dv", "i", plist_id);
+ FUNC_ENTER_API(FAIL)
+ H5TRACE2("e", "i*Dv", plist_id, view);
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id, H5P_DATASET_ACCESS)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, H5D_VDS_ERROR, "can't find object for ID")
/* Get value from property list */
- if(H5P_get(plist, H5D_ACS_VDS_VIEW_NAME, &ret_value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, H5D_VDS_ERROR, "unable to get value")
+ if(view) {
+ HDassert(0 && "Checking code coverage..."); //VDSINC
+ if(H5P_get(plist, H5D_ACS_VDS_VIEW_NAME, view) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, H5D_VDS_ERROR, "unable to get value")
+ } //VDSINC
done:
FUNC_LEAVE_API(ret_value)
@@ -514,7 +517,7 @@ H5Pget_virtual_printf_gap(hid_t plist_id, hsize_t *gap_size)
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value = SUCCEED; /* Return value */
- FUNC_ENTER_API(H5D_VDS_ERROR)
+ FUNC_ENTER_API(FAIL)
H5TRACE2("e", "i*h", plist_id, gap_size);
/* Get the plist structure */
diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h
index f1db483..4929621 100644
--- a/src/H5Ppublic.h
+++ b/src/H5Ppublic.h
@@ -394,7 +394,7 @@ H5_DLL herr_t H5Pget_chunk_cache(hid_t dapl_id,
size_t *rdcc_nbytes/*out*/,
double *rdcc_w0/*out*/);
H5_DLL herr_t H5Pset_virtual_view(hid_t plist_id, H5D_vds_view_t view);
-H5_DLL H5D_vds_view_t H5Pget_virtual_view(hid_t plist_id);
+H5_DLL herr_t H5Pget_virtual_view(hid_t plist_id, H5D_vds_view_t *view);
H5_DLL herr_t H5Pset_virtual_printf_gap(hid_t plist_id, hsize_t gap_size);
H5_DLL herr_t H5Pget_virtual_printf_gap(hid_t plist_id, hsize_t *gap_size);