diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-04-11 16:22:16 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-04-11 16:22:16 (GMT) |
commit | 9d2070890b0cfb2c8a406906da0470e948141db4 (patch) | |
tree | 567cc6f6c36d67c78be5e79b3529d30bcbe06a50 /examples/h5_extlink.c | |
parent | 78158e8dbffcbf025257a72bb42c1fbe8c7660b7 (diff) | |
download | hdf5-9d2070890b0cfb2c8a406906da0470e948141db4.zip hdf5-9d2070890b0cfb2c8a406906da0470e948141db4.tar.gz hdf5-9d2070890b0cfb2c8a406906da0470e948141db4.tar.bz2 |
[svn-r13636] Description:
Change H5[D|G|T]<foo>_expand() "temporary" API routines to
H5[D|G|T]<foo>2() "versioned" routines. Also added
H5[D|G|T](create|commit)_anon() routines to continue to allow "anonymous"
objects to be created in a file.
Tested on:
Mac OS X/32 10.4.9 (amazon)
FreeBSD/32 6.2 (duty)
FreeBSD/64 6.2 (liberty)
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'examples/h5_extlink.c')
-rw-r--r-- | examples/h5_extlink.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/h5_extlink.c b/examples/h5_extlink.c index dd5a834..113d269 100644 --- a/examples/h5_extlink.c +++ b/examples/h5_extlink.c @@ -148,9 +148,9 @@ static void extlink_prefix_example(void) /* Now if we traverse the external link, HDF5 will look for an external * file named red/prefix_target.h5, which exists. - * To pass the group access property list, we need to use H5Gopen_expand. + * To pass the group access property list, we need to use H5Gopen2. */ - group_id = H5Gopen_expand(source_file_id, "ext_link", gapl_id); + group_id = H5Gopen2(source_file_id, "ext_link", gapl_id); /* Now we can use the open group ID to create a new group inside the * "red" file. @@ -165,7 +165,7 @@ static void extlink_prefix_example(void) * directory. */ H5Pset_elink_prefix(gapl_id, "blue/"); - group_id = H5Gopen_expand(source_file_id, "ext_link", gapl_id); + group_id = H5Gopen2(source_file_id, "ext_link", gapl_id); group2_id = H5Gcreate(group_id, "sky blue", (size_t) 0); /* Close both groups. */ @@ -591,14 +591,14 @@ static void plist_link_example(void) /* Open the first group through the plist link using the GAPL we just * created */ - group_id = H5Gopen_expand(file_id, "plist_link", gapl_id); + group_id = H5Gopen2(file_id, "plist_link", gapl_id); /* If we change the value set on the property list, it will change where * the plist link points. */ path = "group_1/group_2"; H5Pset(gapl_id, PLIST_LINK_PROP, &path); - group2_id = H5Gopen_expand(file_id, "plist_link", gapl_id); + group2_id = H5Gopen2(file_id, "plist_link", gapl_id); /* group_id points to group_1 and group2_id points to group_2, both opened * through the same link. |