summaryrefslogtreecommitdiffstats
path: root/examples/h5_reference.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-12-20 20:51:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-12-20 20:51:30 (GMT)
commit5560c64e256d3fc064072afbc0e3f14add0bc5a5 (patch)
tree213f7e15b130c155fb3ebb9ec1cf0a2350eb40c4 /examples/h5_reference.c
parentc9782c380b9f7b25dd13be7d3533b8be784b85b6 (diff)
downloadhdf5-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 'examples/h5_reference.c')
-rw-r--r--examples/h5_reference.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_reference.c b/examples/h5_reference.c
index ddf98ac..0823df0 100644
--- a/examples/h5_reference.c
+++ b/examples/h5_reference.c
@@ -103,11 +103,11 @@ main(void) {
/*
* Find the type of referenced objects.
*/
- status = H5Rget_object_type(did_r, &rbuf[0]);
+ status = H5Rget_obj_type(did_r, H5R_OBJECT, &rbuf[0]);
if ( status == H5G_GROUP )
printf("First dereferenced object is a group. \n");
- status = H5Rget_object_type(did_r, &rbuf[1]);
+ status = H5Rget_obj_type(did_r, H5R_OBJECT, &rbuf[1]);
if ( status == H5G_DATASET )
printf("Second dereferenced object is a dataset. \n");
/*