summaryrefslogtreecommitdiffstats
path: root/src/H5PLpkg.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2018-12-27 22:00:32 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2018-12-27 22:00:32 (GMT)
commit9cc406633c29d4167031dc85b950858f90163cbc (patch)
treead11ed7fb31e7078af6d180ae3e7207569ad8070 /src/H5PLpkg.h
parent1cc890e333a2563195eeea6154fd921221c3c439 (diff)
downloadhdf5-9cc406633c29d4167031dc85b950858f90163cbc.zip
hdf5-9cc406633c29d4167031dc85b950858f90163cbc.tar.gz
hdf5-9cc406633c29d4167031dc85b950858f90163cbc.tar.bz2
Fixed plugin loading so it actually checks the plugin type.
Diffstat (limited to 'src/H5PLpkg.h')
-rw-r--r--src/H5PLpkg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5PLpkg.h b/src/H5PLpkg.h
index c3ad8f5..8c2367f 100644
--- a/src/H5PLpkg.h
+++ b/src/H5PLpkg.h
@@ -79,6 +79,7 @@
/* maximum size for expanding env vars */
# define H5PL_EXPAND_BUFFER_SIZE 32767
+ typedef H5PL_type_t(__cdecl *H5PL_get_plugin_type_t)(void);
typedef const void *(__cdecl *H5PL_get_plugin_info_t)(void);
#else /* H5_HAVE_WIN32_API */
@@ -105,6 +106,7 @@
/* Clear error */
# define H5PL_CLR_ERROR HERROR(H5E_PLUGIN, H5E_CANTGET, "can't dlopen:%s", dlerror())
+ typedef H5PL_type_t(*H5PL_get_plugin_type_t)(void);
typedef const void *(*H5PL_get_plugin_info_t)(void);
#endif /* H5_HAVE_WIN32_API */