diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-31 00:50:41 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-01-31 00:50:41 (GMT) |
commit | 0147d2493eed235ba31077a6da38608ce2fe152a (patch) | |
tree | c2bf4154aa88d4cf42801bbadd26dafde9815da9 /src/H5VLprivate.h | |
parent | 0e56affc7e484ef1a8c306aeec7be8049af13f80 (diff) | |
parent | 10301154215fb6a22590e80f7b5ed0005f3e1786 (diff) | |
download | hdf5-0147d2493eed235ba31077a6da38608ce2fe152a.zip hdf5-0147d2493eed235ba31077a6da38608ce2fe152a.tar.gz hdf5-0147d2493eed235ba31077a6da38608ce2fe152a.tar.bz2 |
Merge pull request #2329 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:H5MM_const to develop
* commit '10301154215fb6a22590e80f7b5ed0005f3e1786':
Minor refactoring to the VFD info free call.
Updated the 'const memory free' changes based on PR feedback.
Added a free wrapper that lets us free constant pointers without generating warnings.
Diffstat (limited to 'src/H5VLprivate.h')
-rw-r--r-- | src/H5VLprivate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5VLprivate.h b/src/H5VLprivate.h index 24ae1f3..3235357 100644 --- a/src/H5VLprivate.h +++ b/src/H5VLprivate.h @@ -44,7 +44,7 @@ typedef struct H5VL_object_t { /* Internal structure to hold the connector ID & info for FAPLs */ typedef struct H5VL_connector_prop_t { hid_t connector_id; /* VOL connector's ID */ - void *connector_info; /* VOL connector info, for open callbacks */ + const void *connector_info; /* VOL connector info, for open callbacks */ } H5VL_connector_prop_t; /* Which kind of VOL connector field to use for searching */ @@ -128,7 +128,7 @@ H5_DLL int H5VL_copy_connector_info(const H5VL_class_t *connector, void **dst_in const void *src_info); H5_DLL herr_t H5VL_cmp_connector_info(const H5VL_class_t *connector, int *cmp_value, const void *info1, const void *info2); -H5_DLL herr_t H5VL_free_connector_info(hid_t connector_id, void *info); +H5_DLL herr_t H5VL_free_connector_info(hid_t connector_id, const void *info); /* Attribute functions */ H5_DLL void *H5VL_attr_create(const H5VL_object_t *vol_obj, const H5VL_loc_params_t *loc_params, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req); |