diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2019-11-26 01:07:44 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2019-12-09 20:55:03 (GMT) |
commit | 5c97046501f35cc435144c5e111dadcb10e5c290 (patch) | |
tree | e7fd1a3084cd418669c8cf87d108e5bd036cdf39 /src/H5I.c | |
parent | 518f35d4341213cbfbd23e697fbdc9e9641fc03f (diff) | |
download | hdf5-5c97046501f35cc435144c5e111dadcb10e5c290.zip hdf5-5c97046501f35cc435144c5e111dadcb10e5c290.tar.gz hdf5-5c97046501f35cc435144c5e111dadcb10e5c290.tar.bz2 |
Remove H5VL_NATIVE_FILE_GET_FILE_ID and add H5VL_OBJECT_GET_FILE
Remove H5F__get_file_id() and use only private routine instead
Diffstat (limited to 'src/H5I.c')
-rw-r--r-- | src/H5I.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2270,7 +2270,14 @@ H5Iget_file_id(hid_t obj_id) /* Call internal function */ if (H5I_FILE == type || H5I_DATATYPE == type || H5I_GROUP == type || H5I_DATASET == type || H5I_ATTR == type) { - if ((ret_value = H5F_get_file_id(obj_id, type, TRUE)) < 0) + H5VL_object_t *vol_obj = NULL; /* Object token of obj_id */ + + /* Get the VOL object */ + if(NULL == (vol_obj = H5VL_vol_object(obj_id))) + HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5I_INVALID_HID, "invalid location identifier") + + /* Get the file ID */ + if ((ret_value = H5F_get_file_id(vol_obj, type, TRUE)) < 0) HGOTO_ERROR(H5E_ATOM, H5E_CANTGET, H5I_INVALID_HID, "can't retrieve file ID") } /* end if */ else |