src/H5VLcallback.c
/*-------------------------------------------------------------------------
 * Function:    H5VL_request_free
 *
 * Purpose:     Frees an asynchronous request through the VOL
 *
 * Return:      Success:    Non-negative
 *              Failure:    Negative
 *
 *-------------------------------------------------------------------------
 */
H5VL_request_free
Purpose:     Frees an asynchronous request through the VOL

Non-negative
Failure:    Negative
H5VL_request_free Purpose : Frees an asynchronous request through the VOL Non - negative Failure : Negative
herr_t
H5VL_request_free(const H5VL_object_t *vol_obj)
{
    hbool_t vol_wrapper_set = FALSE;   
    herr_t  ret_value       = SUCCEED; 
    FUNC_ENTER_NOAPI(FAIL)
    HDassert(vol_obj);
    if (H5VL_set_vol_wrapper(vol_obj) < 0)
        HGOTO_ERROR(H5E_VOL, H5E_CANTSET, FAIL, "can't set VOL wrapper info")
    vol_wrapper_set = TRUE;
    if (H5VL__request_free(vol_obj->data, vol_obj->connector->cls) < 0)
        HGOTO_ERROR(H5E_VOL, H5E_CANTRELEASE, FAIL, "request free failed")
done:
    if (vol_wrapper_set && H5VL_reset_vol_wrapper() < 0)
        HDONE_ERROR(H5E_VOL, H5E_CANTRESET, FAIL, "can't reset VOL wrapper info")
    FUNC_LEAVE_NOAPI(ret_value)
}
herr_t H5VL_request_free ( const H5VL_object_t * vol_obj ) { hbool_t vol_wrapper_set = FALSE ; herr_t ret_value = SUCCEED ; FUNC_ENTER_NOAPI ( FAIL ) HDassert ( vol_obj ) ; if ( H5VL_set_vol_wrapper ( vol_obj ) < 0 ) HGOTO_ERROR ( H5E_VOL , H5E_CANTSET , FAIL , " " ) vol_wrapper_set = TRUE ; if ( H5VL__request_free ( vol_obj -> data , vol_obj -> connector -> cls ) < 0 ) HGOTO_ERROR ( H5E_VOL , H5E_CANTRELEASE , FAIL , " " ) done : if ( vol_wrapper_set && H5VL_reset_vol_wrapper ( ) < 0 ) HDONE_ERROR ( H5E_VOL , H5E_CANTRESET , FAIL , " " ) FUNC_LEAVE_NOAPI ( ret_value ) }
Function:    H5VL_request_free
 Purpose:     Frees an asynchronous request through the VOL
Function : H5VL_request_free Purpose : Frees an asynchronous request through the VOL
/* Whether the VOL object wrapping context was set up */ /* Return value */ /* Sanity check */ /* Set wrapper info in API context */ /* Call the corresponding VOL callback */ /* Reset object wrapping info in API context */