diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-12-20 20:51:30 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-12-20 20:51:30 (GMT) |
commit | 5560c64e256d3fc064072afbc0e3f14add0bc5a5 (patch) | |
tree | 213f7e15b130c155fb3ebb9ec1cf0a2350eb40c4 /tools | |
parent | c9782c380b9f7b25dd13be7d3533b8be784b85b6 (diff) | |
download | hdf5-5560c64e256d3fc064072afbc0e3f14add0bc5a5.zip hdf5-5560c64e256d3fc064072afbc0e3f14add0bc5a5.tar.gz hdf5-5560c64e256d3fc064072afbc0e3f14add0bc5a5.tar.bz2 |
[svn-r4747] Purpose:
Bug Fix.
Description:
The H5Rget_object_type function could not get the object type for dataset
region references.
Solution:
Added a new function, H5Rget_obj_type, to replace H5Rget_object_type.
The new function requires the reference type as an additional parameter,
in order to allow queries on different reference types to be performed
correctly.
Platforms tested:
FreeBSD 4.4. (sleipnir)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5dump/h5dumptst.c | 10 | ||||
-rw-r--r-- | tools/lib/h5tools_str.c | 2 |
2 files changed, 1 insertions, 11 deletions
diff --git a/tools/h5dump/h5dumptst.c b/tools/h5dump/h5dumptst.c index 4399859..3654ba0 100644 --- a/tools/h5dump/h5dumptst.c +++ b/tools/h5dump/h5dumptst.c @@ -1509,29 +1509,19 @@ static void test_objref(void) /* Create reference to dataset */ H5Rcreate(&wbuf[0],fid1,"/Group1/Dataset1",H5R_OBJECT,-1); - H5Rget_object_type(dataset,&wbuf[0]); /* Create reference to dataset */ H5Rcreate(&wbuf[1],fid1,"/Group1/Dataset2",H5R_OBJECT,-1); - H5Rget_object_type(dataset,&wbuf[1]); - /* Create reference to group */ H5Rcreate(&wbuf[2],fid1,"/Group1",H5R_OBJECT,-1); - H5Rget_object_type(dataset,&wbuf[2]); - - /* Create reference to named datatype */ H5Rcreate(&wbuf[3],fid1,"/Group1/Datatype1",H5R_OBJECT,-1); - H5Rget_object_type(dataset,&wbuf[3]); - - /* Write selection to disk */ H5Dwrite(dataset,H5T_STD_REF_OBJ,H5S_ALL,H5S_ALL,H5P_DEFAULT,wbuf); - /* Close disk dataspace */ H5Sclose(sid1); diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index 2bc6305..e75ac3d 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -753,7 +753,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5dump_t *info, hid_t container, if (h5tools_is_zero(vp, H5Tget_size(type))) { h5tools_str_append(str, "NULL"); } else { - otype = H5Rget_object_type(container, vp); + otype = H5Rget_obj_type(container, H5R_OBJECT, vp); obj = H5Rdereference(container, H5R_OBJECT, vp); H5Gget_objinfo(obj, ".", FALSE, &sb); |