From 799a732650735b8ad05a0398781d2a26ec47b288 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Sat, 30 Mar 2019 18:29:07 -0700 Subject: Updated the VOL struct. The json_vol test fails, though, because the plugin can't be found. Will diagnose later. --- test/json_vol_connector.c | 26 +++++++++++++++----------- test/json_vol_connector.h | 1 + 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" -- cgit v0.12