summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-04-17 21:54:02 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-04-17 21:54:02 (GMT)
commit33f70a817aba7a4dd020fb29a187c53ba05e157c (patch)
tree4ff9ee2addb8a67212bc01170a102a2399d4c005 /src/H5G.c
parent2afee27ba9b7f22aef111b282106e5deafb61e7b (diff)
downloadhdf5-33f70a817aba7a4dd020fb29a187c53ba05e157c.zip
hdf5-33f70a817aba7a4dd020fb29a187c53ba05e157c.tar.gz
hdf5-33f70a817aba7a4dd020fb29a187c53ba05e157c.tar.bz2
[svn-r22292] remove unnecessary lookup for object locations into VOL
add a public API routine to set a user defined VOL driver some fixes to allow vol plugins to be created and used outside the library
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 52ad222..2f3cea6 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -470,8 +470,6 @@ herr_t
H5Gget_info(hid_t loc_id, H5G_info_t *grp_info)
{
H5I_type_t id_type; /* Type of ID */
- void *location = NULL; /* a pointer to VOL specific token that indicates
- the location of the object */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(FAIL)
@@ -484,19 +482,11 @@ H5Gget_info(hid_t loc_id, H5G_info_t *grp_info)
if(!grp_info)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no info struct")
- /* Get the token for the Object location through the VOL */
- if(H5VL_object_lookup (loc_id, H5VL_OBJECT_LOOKUP, &location) < 0)
- HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to locate object")
-
/* Get the group info through the VOL using the location token */
- if((ret_value = H5VL_group_get(loc_id, H5VL_GROUP_GET_INFO, grp_info, location)) < 0)
+ if((ret_value = H5VL_group_get(loc_id, H5VL_GROUP_GET_INFO, grp_info, NULL)) < 0)
HGOTO_ERROR(H5E_INTERNAL, H5E_CANTGET, FAIL, "unable to get group info")
done:
- if (NULL != location) {
- free (location);
- location = NULL;
- }
FUNC_LEAVE_API(ret_value)
} /* end H5Gget_info() */