diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2015-06-05 22:38:13 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2015-06-05 22:38:13 (GMT) |
commit | 5eae97bca64d144ae43d420dda106e6de99c32a5 (patch) | |
tree | 58b306df59b84355fbf3b449514a4095b8f4c2dc /src/H5Pdapl.c | |
parent | c27904bc5fec9b7c65f6a943bcf9816622df4662 (diff) | |
download | hdf5-5eae97bca64d144ae43d420dda106e6de99c32a5.zip hdf5-5eae97bca64d144ae43d420dda106e6de99c32a5.tar.gz hdf5-5eae97bca64d144ae43d420dda106e6de99c32a5.tar.bz2 |
[svn-r27155] Change H5Pget_virtual_view to return herr_t and take a pointer to the view as a
parameter. Also fix bug in H5Pget_virtual_printf_gap.
Tested: jam
Diffstat (limited to 'src/H5Pdapl.c')
-rw-r--r-- | src/H5Pdapl.c | 19 |
1 files changed, 11 insertions, 8 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 */ |