summaryrefslogtreecommitdiffstats
path: root/src/H5VLpublic.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2020-12-10 22:30:07 (GMT)
committerGitHub <noreply@github.com>2020-12-10 22:30:07 (GMT)
commitebe9a3966fcbd3e154d43dd31ba9b219c575e781 (patch)
tree6611d5c941849e6bb9087967a63736ae9eff183c /src/H5VLpublic.h
parentff04956a6cbdda015cb6c5239d7d6007976fd2a4 (diff)
downloadhdf5-ebe9a3966fcbd3e154d43dd31ba9b219c575e781.zip
hdf5-ebe9a3966fcbd3e154d43dd31ba9b219c575e781.tar.gz
hdf5-ebe9a3966fcbd3e154d43dd31ba9b219c575e781.tar.bz2
Merge VOL framework versioning to 1.12 (#154)
* Enforce VOL framework version compatibility when registering connectors. Also add a version for the connector itself, some refactoring on the register calls, and move the logic for matching / rejecting a VOL connector class from the plugin module to the VOL module. (#151) * Revise VOL framework version compatibility for the 1.12 release branch
Diffstat (limited to 'src/H5VLpublic.h')
-rw-r--r--src/H5VLpublic.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/H5VLpublic.h b/src/H5VLpublic.h
index 9c9d60a..a492291 100644
--- a/src/H5VLpublic.h
+++ b/src/H5VLpublic.h
@@ -25,6 +25,17 @@
/* Public Macros */
/*****************/
+/**
+ * \ingroup H5VLDEF
+ * \brief Version # of VOL class struct & callbacks
+ *
+ * \details Each VOL connector must set the 'version' field in the H5VL_class_t
+ * struct to the version of the H5VL_class_t struct that the connector
+ * implements. The HDF5 library will reject connectors with
+ * incompatible structs.
+ */
+#define H5VL_VERSION 0
+
/* VOL connector identifier values
* These are H5VL_class_value_t values, NOT hid_t values!
*/