summaryrefslogtreecommitdiffstats
path: root/src/H5VLint.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-08-26 21:12:11 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-08-26 21:12:11 (GMT)
commitc5ad11290b81c86856d6297cc1ad824af327c5a3 (patch)
tree74bef22a808cbc3551f4e7cc09c54afbb5355a32 /src/H5VLint.c
parent78d8f8d7d12e779f640cf037bc52fd7e8a07061c (diff)
downloadhdf5-c5ad11290b81c86856d6297cc1ad824af327c5a3.zip
hdf5-c5ad11290b81c86856d6297cc1ad824af327c5a3.tar.gz
hdf5-c5ad11290b81c86856d6297cc1ad824af327c5a3.tar.bz2
[svn-r24076] Allow H5VLobject_register to create an hid_t for files and attributes.
Diffstat (limited to 'src/H5VLint.c')
-rw-r--r--src/H5VLint.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/H5VLint.c b/src/H5VLint.c
index 684daeb..f5d7e24 100644
--- a/src/H5VLint.c
+++ b/src/H5VLint.c
@@ -376,9 +376,19 @@ H5VL_object_register(void *obj, H5I_type_t obj_type, H5VL_t *vol_plugin, hbool_t
/* Get an atom for the object and attach VOL information and free function to the ID */
switch(obj_type) {
+ case H5I_FILE:
+ if((ret_value = H5I_register2(obj_type, obj, vol_plugin, app_ref)) < 0)
+ HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to atomize file handle")
+ break;
+
+ case H5I_ATTR:
+ if((ret_value = H5I_register2(obj_type, obj, vol_plugin, app_ref)) < 0)
+ HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to atomize attribute handle")
+ break;
+
case H5I_GROUP:
if((ret_value = H5I_register2(obj_type, obj, vol_plugin, app_ref)) < 0)
- HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to atomize dataset handle")
+ HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to atomize group handle")
break;
case H5I_DATASET:
@@ -393,9 +403,7 @@ H5VL_object_register(void *obj, H5I_type_t obj_type, H5VL_t *vol_plugin, hbool_t
case H5I_UNINIT:
case H5I_BADID:
- case H5I_FILE:
case H5I_DATASPACE:
- case H5I_ATTR:
case H5I_REFERENCE:
case H5I_VFL:
case H5I_VOL: