summaryrefslogtreecommitdiffstats
path: root/src/H5VLconnector.h
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2019-12-05 23:25:22 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2019-12-05 23:25:22 (GMT)
commit107bcbd3dfff51895c99ea3ff71afa0ce693a956 (patch)
tree0f267b01ff7617ee44c904fc6ad7cbd4d13303f9 /src/H5VLconnector.h
parent5efd80f6ec558845e7438a7407888de56da63588 (diff)
parent7b03a1c03633d695b487642e54f897c715f8622e (diff)
downloadhdf5-107bcbd3dfff51895c99ea3ff71afa0ce693a956.zip
hdf5-107bcbd3dfff51895c99ea3ff71afa0ce693a956.tar.gz
hdf5-107bcbd3dfff51895c99ea3ff71afa0ce693a956.tar.bz2
Merge pull request #2076 in HDFFV/hdf5 from ~JSOUMAGNE/hdf5:type_fixes to develop
* commit '7b03a1c03633d695b487642e54f897c715f8622e': Fix H5VL_token_t type and fix H5VL_loc_by_token to use H5VL_token_t * Change hdset_reg_ref_t and H5R_ref_t from arrays of unsigned char to structs containing those arrays. Encapsulating the arrays in this way makes it easier to write and think about pointers to these types, casts to/from these types, etc.
Diffstat (limited to 'src/H5VLconnector.h')
-rw-r--r--src/H5VLconnector.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5VLconnector.h b/src/H5VLconnector.h
index f0925bf..373eb44 100644
--- a/src/H5VLconnector.h
+++ b/src/H5VLconnector.h
@@ -52,7 +52,9 @@
/* type for tokens. Token are unique and permanent identifiers that are
* used to reference HDF5 objects. */
-typedef unsigned char H5VL_token_t[H5VL_MAX_TOKEN_SIZE];
+typedef struct {
+ char __data[H5VL_MAX_TOKEN_SIZE];
+} H5VL_token_t;
/* types for attribute GET callback */
typedef enum H5VL_attr_get_t {
@@ -213,7 +215,7 @@ typedef struct H5VL_loc_by_idx {
} H5VL_loc_by_idx_t;
typedef struct H5VL_loc_by_token {
- void *token;
+ H5VL_token_t *token;
} H5VL_loc_by_token_t;
/* Structure to hold parameters for object locations.