diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-07-16 18:46:57 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-07-16 18:46:57 (GMT) |
commit | b27392e36a73889448500eced4f37e59c06b2a02 (patch) | |
tree | e686b711b51107b73ea090106e72b4857bbd84f6 /src/H5VLpublic.h | |
parent | f772c1110e4cc158be91bdc1a5ef13e5ed596d15 (diff) | |
download | hdf5-b27392e36a73889448500eced4f37e59c06b2a02.zip hdf5-b27392e36a73889448500eced4f37e59c06b2a02.tar.gz hdf5-b27392e36a73889448500eced4f37e59c06b2a02.tar.bz2 |
[svn-r23907] - add a new routine:
herr_t H5VLget_object(hid_t obj_id, void **obj, H5VL_t **vol_plugin)
to retrieve object pointer from given ID. This also optionally returns a pointer to a vol_plugin if it is not NULL.
- remove the previously added routine to retrieve the VOL datatype object since the new one does that.
- add a MAX_LIB_VOL_VALUE that reserves 128 value for internal VOL plugins, not that we need that many.
Diffstat (limited to 'src/H5VLpublic.h')
-rw-r--r-- | src/H5VLpublic.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/H5VLpublic.h b/src/H5VLpublic.h index 2428dd3..fa23ce9 100644 --- a/src/H5VLpublic.h +++ b/src/H5VLpublic.h @@ -308,10 +308,10 @@ typedef struct H5VL_async_class_t { herr_t (*wait) (void **, H5_status_t *); } H5VL_async_class_t; -/* enum value to identify the class of a VOL plugin (mostly for comparison purposes */ +/* enum value to identify the class of a VOL plugin (mostly for comparison purposes) */ typedef enum H5VL_class_value_t { - NATIVE = 0, - DUMMY = 1 + NATIVE = 0, /* This should be first */ + MAX_VOL_LIB_VALUE = 128 /* This should be last */ } H5VL_class_value_t; /* Class information for each VOL driver */ @@ -423,6 +423,7 @@ H5_DLL herr_t H5VLunregister(hid_t plugin_id); H5_DLL htri_t H5VLis_registered(hid_t id); H5_DLL ssize_t H5VLget_plugin_name(hid_t id, char *name/*out*/, size_t size); H5_DLL hid_t H5VLobject_register(void *obj, H5I_type_t obj_type, const H5VL_class_t *cls); +H5_DLL herr_t H5VLget_object(hid_t obj_id, void **obj, H5VL_t **vol_plugin); #ifdef __cplusplus } |