mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-11 16:01:00 +08:00
Merge pull request #2054 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:vol_trivial to develop
* commit '9a93ecac522d9032efd9cdc39ff0550412e54565': Trivial parameter renaming in VOL API calls.
This commit is contained in:
commit
5f3414e4d9
@ -82,10 +82,10 @@ static void *H5VL__dataset_open(void *obj, const H5VL_loc_params_t *loc_params,
|
||||
const H5VL_class_t *cls, const char *name, hid_t dapl_id, hid_t dxpl_id,
|
||||
void **req);
|
||||
static herr_t H5VL__dataset_read(void *dset, const H5VL_class_t *cls,
|
||||
hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t plist_id,
|
||||
hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id,
|
||||
void *buf, void **req);
|
||||
static herr_t H5VL__dataset_write(void *obj, const H5VL_class_t *cls,
|
||||
hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t plist_id,
|
||||
hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id,
|
||||
const void *buf, void **req);
|
||||
static herr_t H5VL__dataset_get(void *obj, const H5VL_class_t *cls, H5VL_dataset_get_t get_type,
|
||||
hid_t dxpl_id, void **req, va_list arguments);
|
||||
@ -2013,7 +2013,7 @@ done:
|
||||
*/
|
||||
static herr_t
|
||||
H5VL__dataset_read(void *obj, const H5VL_class_t *cls, hid_t mem_type_id,
|
||||
hid_t mem_space_id, hid_t file_space_id, hid_t plist_id, void *buf,
|
||||
hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf,
|
||||
void **req)
|
||||
{
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
@ -2025,7 +2025,7 @@ H5VL__dataset_read(void *obj, const H5VL_class_t *cls, hid_t mem_type_id,
|
||||
HGOTO_ERROR(H5E_VOL, H5E_UNSUPPORTED, FAIL, "VOL connector has no 'dataset read' method")
|
||||
|
||||
/* Call the corresponding VOL callback */
|
||||
if((cls->dataset_cls.read)(obj, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req) < 0)
|
||||
if((cls->dataset_cls.read)(obj, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, req) < 0)
|
||||
HGOTO_ERROR(H5E_VOL, H5E_READERROR, FAIL, "dataset read failed")
|
||||
|
||||
done:
|
||||
@ -2045,7 +2045,7 @@ done:
|
||||
*/
|
||||
herr_t
|
||||
H5VL_dataset_read(const H5VL_object_t *vol_obj, hid_t mem_type_id,
|
||||
hid_t mem_space_id, hid_t file_space_id, hid_t plist_id, void *buf,
|
||||
hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf,
|
||||
void **req)
|
||||
{
|
||||
hbool_t vol_wrapper_set = FALSE; /* Whether the VOL object wrapping context was set up */
|
||||
@ -2059,7 +2059,7 @@ H5VL_dataset_read(const H5VL_object_t *vol_obj, hid_t mem_type_id,
|
||||
vol_wrapper_set = TRUE;
|
||||
|
||||
/* Call the corresponding internal VOL routine */
|
||||
if(H5VL__dataset_read(vol_obj->data, vol_obj->connector->cls, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req) < 0)
|
||||
if(H5VL__dataset_read(vol_obj->data, vol_obj->connector->cls, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, req) < 0)
|
||||
HGOTO_ERROR(H5E_VOL, H5E_READERROR, FAIL, "dataset read failed")
|
||||
|
||||
done:
|
||||
@ -2083,14 +2083,14 @@ done:
|
||||
*/
|
||||
herr_t
|
||||
H5VLdataset_read(void *obj, hid_t connector_id, hid_t mem_type_id, hid_t mem_space_id,
|
||||
hid_t file_space_id, hid_t plist_id, void *buf, void **req)
|
||||
hid_t file_space_id, hid_t dxpl_id, void *buf, void **req)
|
||||
{
|
||||
H5VL_class_t *cls; /* VOL connector's class struct */
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
|
||||
FUNC_ENTER_API_NOINIT
|
||||
H5TRACE8("e", "*xiiiii*x**x", obj, connector_id, mem_type_id, mem_space_id,
|
||||
file_space_id, plist_id, buf, req);
|
||||
file_space_id, dxpl_id, buf, req);
|
||||
|
||||
/* Check args and get class pointer */
|
||||
if(NULL == obj)
|
||||
@ -2099,7 +2099,7 @@ H5VLdataset_read(void *obj, hid_t connector_id, hid_t mem_type_id, hid_t mem_spa
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a VOL connector ID")
|
||||
|
||||
/* Call the corresponding internal VOL routine */
|
||||
if(H5VL__dataset_read(obj, cls, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req) < 0)
|
||||
if(H5VL__dataset_read(obj, cls, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, req) < 0)
|
||||
HGOTO_ERROR(H5E_VOL, H5E_CANTINIT, FAIL, "unable to read dataset")
|
||||
|
||||
done:
|
||||
@ -2119,7 +2119,7 @@ done:
|
||||
*/
|
||||
static herr_t
|
||||
H5VL__dataset_write(void *obj, const H5VL_class_t *cls, hid_t mem_type_id,
|
||||
hid_t mem_space_id, hid_t file_space_id, hid_t plist_id, const void *buf,
|
||||
hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf,
|
||||
void **req)
|
||||
{
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
@ -2131,7 +2131,7 @@ H5VL__dataset_write(void *obj, const H5VL_class_t *cls, hid_t mem_type_id,
|
||||
HGOTO_ERROR(H5E_VOL, H5E_UNSUPPORTED, FAIL, "VOL connector has no 'dataset write' method")
|
||||
|
||||
/* Call the corresponding VOL callback */
|
||||
if((cls->dataset_cls.write)(obj, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req) < 0)
|
||||
if((cls->dataset_cls.write)(obj, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, req) < 0)
|
||||
HGOTO_ERROR(H5E_VOL, H5E_WRITEERROR, FAIL, "dataset write failed")
|
||||
|
||||
done:
|
||||
@ -2151,7 +2151,7 @@ done:
|
||||
*/
|
||||
herr_t
|
||||
H5VL_dataset_write(const H5VL_object_t *vol_obj, hid_t mem_type_id,
|
||||
hid_t mem_space_id, hid_t file_space_id, hid_t plist_id, const void *buf,
|
||||
hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf,
|
||||
void **req)
|
||||
{
|
||||
hbool_t vol_wrapper_set = FALSE; /* Whether the VOL object wrapping context was set up */
|
||||
@ -2165,7 +2165,7 @@ H5VL_dataset_write(const H5VL_object_t *vol_obj, hid_t mem_type_id,
|
||||
vol_wrapper_set = TRUE;
|
||||
|
||||
/* Call the corresponding internal VOL routine */
|
||||
if(H5VL__dataset_write(vol_obj->data, vol_obj->connector->cls, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req) < 0)
|
||||
if(H5VL__dataset_write(vol_obj->data, vol_obj->connector->cls, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, req) < 0)
|
||||
HGOTO_ERROR(H5E_VOL, H5E_WRITEERROR, FAIL, "dataset write failed")
|
||||
|
||||
done:
|
||||
@ -2189,14 +2189,14 @@ done:
|
||||
*/
|
||||
herr_t
|
||||
H5VLdataset_write(void *obj, hid_t connector_id, hid_t mem_type_id, hid_t mem_space_id,
|
||||
hid_t file_space_id, hid_t plist_id, const void *buf, void **req)
|
||||
hid_t file_space_id, hid_t dxpl_id, const void *buf, void **req)
|
||||
{
|
||||
H5VL_class_t *cls; /* VOL connector's class struct */
|
||||
herr_t ret_value = SUCCEED; /* Return value */
|
||||
|
||||
FUNC_ENTER_API_NOINIT
|
||||
H5TRACE8("e", "*xiiiii*x**x", obj, connector_id, mem_type_id, mem_space_id,
|
||||
file_space_id, plist_id, buf, req);
|
||||
file_space_id, dxpl_id, buf, req);
|
||||
|
||||
/* Check args and get class pointer */
|
||||
if(NULL == obj)
|
||||
@ -2205,7 +2205,7 @@ H5VLdataset_write(void *obj, hid_t connector_id, hid_t mem_type_id, hid_t mem_sp
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a VOL connector ID")
|
||||
|
||||
/* Call the corresponding internal VOL routine */
|
||||
if(H5VL__dataset_write(obj, cls, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req) < 0)
|
||||
if(H5VL__dataset_write(obj, cls, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, req) < 0)
|
||||
HGOTO_ERROR(H5E_VOL, H5E_CANTINIT, FAIL, "unable to write dataset")
|
||||
|
||||
done:
|
||||
|
@ -286,9 +286,9 @@ typedef struct H5VL_dataset_class_t {
|
||||
void *(*open)(void *obj, const H5VL_loc_params_t *loc_params, const char *name,
|
||||
hid_t dapl_id, hid_t dxpl_id, void **req);
|
||||
herr_t (*read)(void *dset, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id,
|
||||
hid_t xfer_plist_id, void * buf, void **req);
|
||||
hid_t dxpl_id, void * buf, void **req);
|
||||
herr_t (*write)(void *dset, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id,
|
||||
hid_t xfer_plist_id, const void * buf, void **req);
|
||||
hid_t dxpl_id, const void * buf, void **req);
|
||||
herr_t (*get)(void *obj, H5VL_dataset_get_t get_type, hid_t dxpl_id, void **req, va_list arguments);
|
||||
herr_t (*specific)(void *obj, H5VL_dataset_specific_t specific_type,
|
||||
hid_t dxpl_id, void **req, va_list arguments);
|
||||
@ -340,10 +340,10 @@ typedef struct H5VL_link_class_t {
|
||||
hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req, va_list arguments);
|
||||
herr_t (*copy)(void *src_obj, const H5VL_loc_params_t *loc_params1,
|
||||
void *dst_obj, const H5VL_loc_params_t *loc_params2,
|
||||
hid_t lcpl, hid_t lapl, hid_t dxpl_id, void **req);
|
||||
hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req);
|
||||
herr_t (*move)(void *src_obj, const H5VL_loc_params_t *loc_params1,
|
||||
void *dst_obj, const H5VL_loc_params_t *loc_params2,
|
||||
hid_t lcpl, hid_t lapl, hid_t dxpl_id, void **req);
|
||||
hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req);
|
||||
herr_t (*get)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_link_get_t get_type,
|
||||
hid_t dxpl_id, void **req, va_list arguments);
|
||||
herr_t (*specific)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_link_specific_t specific_type,
|
||||
|
@ -2580,7 +2580,7 @@ H5VL_pass_through_request_notify(void *obj, H5VL_request_notify_t cb, void *ctx)
|
||||
herr_t ret_value;
|
||||
|
||||
#ifdef ENABLE_PASSTHRU_LOGGING
|
||||
printf("------- PASS THROUGH VOL REQUEST Wait\n");
|
||||
printf("------- PASS THROUGH VOL REQUEST Notify\n");
|
||||
#endif
|
||||
|
||||
ret_value = H5VLrequest_notify(o->under_object, o->under_vol_id, cb, ctx);
|
||||
|
@ -140,8 +140,8 @@ H5_DLL herr_t H5VL_attr_close(const H5VL_object_t *vol_obj, hid_t dxpl_id, void
|
||||
/* Dataset functions */
|
||||
H5_DLL void *H5VL_dataset_create(const H5VL_object_t *vol_obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void **req);
|
||||
H5_DLL void *H5VL_dataset_open(const H5VL_object_t *vol_obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t dapl_id, hid_t dxpl_id, void **req);
|
||||
H5_DLL herr_t H5VL_dataset_read(const H5VL_object_t *vol_obj, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t plist_id, void *buf, void **req);
|
||||
H5_DLL herr_t H5VL_dataset_write(const H5VL_object_t *vol_obj, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t plist_id, const void *buf, void **req);
|
||||
H5_DLL herr_t H5VL_dataset_read(const H5VL_object_t *vol_obj, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, void **req);
|
||||
H5_DLL herr_t H5VL_dataset_write(const H5VL_object_t *vol_obj, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, void **req);
|
||||
H5_DLL herr_t H5VL_dataset_get(const H5VL_object_t *vol_obj, H5VL_dataset_get_t get_type, hid_t dxpl_id, void **req, ...);
|
||||
H5_DLL herr_t H5VL_dataset_specific(const H5VL_object_t *cls, H5VL_dataset_specific_t specific_type, hid_t dxpl_id, void **req, ...);
|
||||
H5_DLL herr_t H5VL_dataset_optional(const H5VL_object_t *vol_obj, hid_t dxpl_id, void **req, ...);
|
||||
|
Loading…
Reference in New Issue
Block a user