summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/json_vol_connector.c26
-rw-r--r--test/json_vol_connector.h1
2 files changed, 16 insertions, 11 deletions
diff --git a/test/json_vol_connector.c b/test/json_vol_connector.c
index a378d72..1cdad9c 100644
--- a/test/json_vol_connector.c
+++ b/test/json_vol_connector.c
@@ -45,22 +45,26 @@ static herr_t jvc_file_close(void *file, hid_t dxpl_id, void **req);
/* The VOL class struct */
static const H5VL_class_t json_vol_g = {
- 0, /* version */
+ JSON_VOL_CONNECTOR_VERSION, /* version */
JSON_VOL_CONNECTOR_VALUE, /* value */
JSON_VOL_CONNECTOR_NAME, /* name */
0, /* capability flags */
NULL, /* initialize */
NULL, /* terminate */
- (size_t)0, /* info size */
- NULL, /* info copy */
- NULL, /* info compare */
- NULL, /* info free */
- NULL, /* info to str */
- NULL, /* str to info */
- NULL, /* get_object */
- NULL, /* get_wrap_ctx */
- NULL, /* wrap_object */
- NULL, /* free_wrap_ctx */
+ { /* info_cls */
+ (size_t)0, /* info size */
+ NULL, /* info copy */
+ NULL, /* info compare */
+ NULL, /* info free */
+ NULL, /* info to str */
+ NULL /* str to info */
+ },
+ { /* wrap_cls */
+ NULL, /* get_object */
+ NULL, /* get_wrap_ctx */
+ NULL, /* wrap_object */
+ NULL /* free_wrap_ctx */
+ },
{ /* attribute_cls */
NULL, /* create */
NULL, /* open */
diff --git a/test/json_vol_connector.h b/test/json_vol_connector.h
index 07179fc..d3fb896 100644
--- a/test/json_vol_connector.h
+++ b/test/json_vol_connector.h
@@ -17,6 +17,7 @@
#ifndef _json_vol_connector_H
#define _json_vol_connector_H
+#define JSON_VOL_CONNECTOR_VERSION 1
#define JSON_VOL_CONNECTOR_VALUE ((H5VL_class_value_t)104)
#define JSON_VOL_CONNECTOR_NAME "json_vol_connector"