From bbaf4fb19b452e093bde1616df351dfa34f30840 Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Fri, 27 Jul 2012 08:38:54 -0500 Subject: [svn-r22612] add enum value for the VL class --- src/H5VLdummy.c | 1 + src/H5VLnative.c | 1 + src/H5VLpublic.h | 7 +++++++ 3 files changed, 9 insertions(+) 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); -- cgit v0.12