summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-07-27 13:38:54 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-07-27 13:38:54 (GMT)
commitbbaf4fb19b452e093bde1616df351dfa34f30840 (patch)
tree3af9b6f9998cb1fd62fbf84afd35421acb32a322
parentd36da471a9921489100e8e717bdaa58df3b5be03 (diff)
downloadhdf5-bbaf4fb19b452e093bde1616df351dfa34f30840.zip
hdf5-bbaf4fb19b452e093bde1616df351dfa34f30840.tar.gz
hdf5-bbaf4fb19b452e093bde1616df351dfa34f30840.tar.bz2
[svn-r22612] add enum value for the VL class
-rw-r--r--src/H5VLdummy.c1
-rw-r--r--src/H5VLnative.c1
-rw-r--r--src/H5VLpublic.h7
3 files changed, 9 insertions, 0 deletions
diff --git a/src/H5VLdummy.c b/src/H5VLdummy.c
index eea2263..bec0aa3 100644
--- a/src/H5VLdummy.c
+++ b/src/H5VLdummy.c
@@ -60,6 +60,7 @@ static herr_t H5VL_dummy_file_close(hid_t fid, hid_t req);
static hid_t H5VL_dummy_file_create(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id, hid_t req);
H5VL_class_t H5VL_dummy_g = {
+ DUMMY,
"dummy", /* name */
NULL,
H5VL_dummy_term, /*terminate */
diff --git a/src/H5VLnative.c b/src/H5VLnative.c
index c9560c8..2903fc4 100644
--- a/src/H5VLnative.c
+++ b/src/H5VLnative.c
@@ -129,6 +129,7 @@ static herr_t H5VL_native_object_optional(void *obj, H5VL_loc_params_t loc_param
static herr_t H5VL_native_object_close(void *obj, H5VL_loc_params_t loc_params, hid_t req);
static H5VL_class_t H5VL_native_g = {
+ NATIVE,
"native", /* name */
NULL, /* initialize */
NULL, /* terminate */
diff --git a/src/H5VLpublic.h b/src/H5VLpublic.h
index 75a014b..670a5b7 100644
--- a/src/H5VLpublic.h
+++ b/src/H5VLpublic.h
@@ -283,8 +283,15 @@ typedef struct H5VL_object_class_t {
herr_t (*close) (void *obj, H5VL_loc_params_t loc_params, hid_t req);
} H5VL_object_class_t;
+/* enum value to identify the class of a VOL plugin (mostly for comparison purposes */
+typedef enum H5VL_class_value_t {
+ NATIVE = 0,
+ DUMMY = 1
+} H5VL_class_value_t;
+
/* Class information for each VOL driver */
typedef struct H5VL_class_t {
+ H5VL_class_value_t value;
const char *name;
herr_t (*initialize)(void);
herr_t (*terminate)(void);