summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorvchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>2020-12-16 03:18:54 (GMT)
committerGitHub <noreply@github.com>2020-12-16 03:18:54 (GMT)
commit865b10b7a707005f08b13e92dec90e402de1f21d (patch)
tree4e368d7b13668ed0871ea99e2e052b9ffec539bd /test/links.c
parentf09ec2657cb0ab9b646f8a4a1d5302444c38bf72 (diff)
downloadhdf5-865b10b7a707005f08b13e92dec90e402de1f21d.zip
hdf5-865b10b7a707005f08b13e92dec90e402de1f21d.tar.gz
hdf5-865b10b7a707005f08b13e92dec90e402de1f21d.tar.bz2
Transfer doxygen H5O RM blocks from doxygen branch to develop. (#174)
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/links.c b/test/links.c
index 11b760c..784a8eb 100644
--- a/test/links.c
+++ b/test/links.c
@@ -631,6 +631,8 @@ cklinks(hid_t fapl, hbool_t new_format)
if ((file = H5Fopen(filename, H5F_ACC_RDONLY, fapl)) < 0)
FAIL_STACK_ERROR
+//! [H5Otoken_cmp_snip]
+
/* Hard link */
if (H5Oget_info_by_name3(file, "d1", &oinfo1, H5O_INFO_BASIC, H5P_DEFAULT) < 0)
FAIL_STACK_ERROR
@@ -641,6 +643,9 @@ cklinks(hid_t fapl, hbool_t new_format)
HDprintf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
TEST_ERROR
} /* end if */
+
+//! [H5Otoken_cmp_snip]
+
if (H5Otoken_cmp(file, &oinfo1.token, &oinfo2.token, &token_cmp) < 0)
FAIL_STACK_ERROR
if (token_cmp) {
@@ -15794,12 +15799,16 @@ obj_visit(hid_t fapl, hbool_t new_format)
if ((fid = build_visit_file(fapl)) < 0)
TEST_ERROR
+//! [H5Ovisit3_snip]
+
/* Visit all the objects reachable from the root group (with file ID) */
udata.idx = 0;
udata.info = new_format ? ovisit0_new : ovisit0_old;
if (H5Ovisit3(fid, H5_INDEX_NAME, H5_ITER_INC, visit_obj_cb, &udata, H5O_INFO_BASIC) < 0)
FAIL_STACK_ERROR
+//! [H5Ovisit3_snip]
+
/* Visit all the objects reachable from the root group (with group ID) */
if ((gid = H5Gopen2(fid, "/", H5P_DEFAULT)) < 0)
FAIL_STACK_ERROR
@@ -15871,6 +15880,8 @@ obj_visit_by_name(hid_t fapl, hbool_t new_format)
if ((fid = build_visit_file(fapl)) < 0)
TEST_ERROR
+//! [H5Ovisit_by_name3_snip]
+
/* Visit all the objects reachable from the root group (with file ID) */
udata.idx = 0;
udata.info = new_format ? ovisit0_new : ovisit0_old;
@@ -15878,6 +15889,8 @@ obj_visit_by_name(hid_t fapl, hbool_t new_format)
H5P_DEFAULT) < 0)
FAIL_STACK_ERROR
+//! [H5Ovisit_by_name3_snip]
+
/* Visit all the objects reachable from the root group (with group ID) */
if ((gid = H5Gopen2(fid, "/", H5P_DEFAULT)) < 0)
FAIL_STACK_ERROR