mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[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
This commit is contained in:
parent
c27904bc5f
commit
5eae97bca6
@ -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 */
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user