summaryrefslogtreecommitdiffstats
path: root/src/H5PLplugin_cache.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2021-03-15 13:16:41 (GMT)
committerGitHub <noreply@github.com>2021-03-15 13:16:41 (GMT)
commitc193d436f512e73be6569e56bf875bb2673ebdf8 (patch)
tree612757b041e867107053d03a2eb4ab1a9600bf51 /src/H5PLplugin_cache.c
parenta09e1ea2191ad0ea2a72f7bd519b2cc95f218328 (diff)
downloadhdf5-c193d436f512e73be6569e56bf875bb2673ebdf8.zip
hdf5-c193d436f512e73be6569e56bf875bb2673ebdf8.tar.gz
hdf5-c193d436f512e73be6569e56bf875bb2673ebdf8.tar.bz2
Merge H5Fopen VOL auto-detect feature and latest VOL fixes to 1.12 (#395)
* Enable H5Fopen to probe list of available VOL connectors when opening a file * Unwrap file VOL object when destroying file (#308) * Check for wrap context before unwrapping file VOL object in H5F__dest (#325)
Diffstat (limited to 'src/H5PLplugin_cache.c')
-rw-r--r--src/H5PLplugin_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5PLplugin_cache.c b/src/H5PLplugin_cache.c
index 970b511..2ec0845 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;