diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2020-12-16 05:39:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 05:39:19 (GMT) |
commit | affbead81a20712920bfe350eb90b0a4bb754ebf (patch) | |
tree | 633747a9663f2252380267c3dc1028326ac8d094 /src/H5PLplugin_cache.c | |
parent | 865b10b7a707005f08b13e92dec90e402de1f21d (diff) | |
download | hdf5-affbead81a20712920bfe350eb90b0a4bb754ebf.zip hdf5-affbead81a20712920bfe350eb90b0a4bb754ebf.tar.gz hdf5-affbead81a20712920bfe350eb90b0a4bb754ebf.tar.bz2 |
Enable H5Fopen to probe list of available VOL connectors when opening a (#182)
file
Diffstat (limited to 'src/H5PLplugin_cache.c')
-rw-r--r-- | src/H5PLplugin_cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5PLplugin_cache.c b/src/H5PLplugin_cache.c index 9c25933..c5e5ca4 100644 --- a/src/H5PLplugin_cache.c +++ b/src/H5PLplugin_cache.c @@ -264,12 +264,12 @@ H5PL__find_plugin_in_cache(const H5PL_search_params_t *search_params, hbool_t *f /* Loop over all the plugins, looking for one that matches */ for (u = 0; u < H5PL_num_plugins_g; u++) { - /* If the plugin type (filter, etc.) and ID match, query the plugin for its info */ + /* If the plugin type (filter, VOL connector, etc.) and ID match, query the plugin for its info */ if ((search_params->type == (H5PL_cache_g[u]).type) && (search_params->key->id == (H5PL_cache_g[u]).key.id)) { H5PL_get_plugin_info_t get_plugin_info_function; - const H5Z_class2_t * filter_info; + const void * info; /* Get the "get plugin info" function from the plugin. */ if (NULL == (get_plugin_info_function = (H5PL_get_plugin_info_t)H5PL_GET_LIB_FUNC( @@ -277,12 +277,12 @@ H5PL__find_plugin_in_cache(const H5PL_search_params_t *search_params, hbool_t *f HGOTO_ERROR(H5E_PLUGIN, H5E_CANTGET, FAIL, "can't get function for H5PLget_plugin_info") /* Call the "get plugin info" function */ - if (NULL == (filter_info = (const H5Z_class2_t *)(*get_plugin_info_function)())) + if (NULL == (info = (*get_plugin_info_function)())) HGOTO_ERROR(H5E_PLUGIN, H5E_CANTGET, FAIL, "can't get plugin info") /* Set output parameters */ *found = TRUE; - *plugin_info = filter_info; + *plugin_info = info; /* No need to continue processing */ break; |