summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-10-31 13:13:40 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-10-31 13:13:40 (GMT)
commite15bdb05e6bf52525c1df48f8e8e01aba3ce288b (patch)
treeb6a77169711c84362d7cbb252cb8d288b2656ba6 /tools/h5dump
parentb969dce6e5625dd9d9f9cc42717a1b2027fdeeb1 (diff)
downloadhdf5-e15bdb05e6bf52525c1df48f8e8e01aba3ce288b.zip
hdf5-e15bdb05e6bf52525c1df48f8e8e01aba3ce288b.tar.gz
hdf5-e15bdb05e6bf52525c1df48f8e8e01aba3ce288b.tar.bz2
[svn-r14225] Description:
Change H5Oget_info -> H5Oget_info_by_name and re-add H5Oget_info in a simpler form for querying a particular object, to align with other new API routines. Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index b713194..db17563 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -722,7 +722,7 @@ print_datatype(hid_t type,unsigned in_group)
H5O_info_t oinfo;
obj_t *obj; /* Found object */
- H5Oget_info(type, ".", &oinfo, H5P_DEFAULT);
+ H5Oget_info(type, &oinfo);
obj = search_obj(type_table, oinfo.addr);
if(obj) {
@@ -1393,7 +1393,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info_t *linfo, void UNUSED
H5O_info_t oinfo;
/* Stat the object */
- if(H5Oget_info(group, name, &oinfo, H5P_DEFAULT) < 0) {
+ if(H5Oget_info_by_name(group, name, &oinfo, H5P_DEFAULT) < 0) {
error_msg(progname, "unable to get object information for \"%s\"\n", name);
d_status = EXIT_FAILURE;
ret = FAIL;
@@ -1906,7 +1906,7 @@ dump_group(hid_t gid, const char *name)
}
} /* end if */
- H5Oget_info(gid, ".", &oinfo, H5P_DEFAULT);
+ H5Oget_info(gid, &oinfo);
if(oinfo.rc > 1) {
obj_t *found_obj; /* Found object */
@@ -3252,7 +3252,7 @@ handle_datasets(hid_t fid, char *dset, void *data)
}
}
- H5Oget_info(dsetid, ".", &oinfo, H5P_DEFAULT);
+ H5Oget_info(dsetid, &oinfo);
if(oinfo.rc > 1) {
obj_t *found_obj; /* Found object */
@@ -4489,7 +4489,7 @@ xml_print_datatype(hid_t type, unsigned in_group)
obj_t *found_obj; /* Found object */
/* detect a shared datatype, output only once */
- H5Oget_info(type, ".", &oinfo, H5P_DEFAULT);
+ H5Oget_info(type, &oinfo);
found_obj = search_obj(type_table, oinfo.addr);
if(found_obj) {
@@ -4850,7 +4850,7 @@ xml_dump_datatype(hid_t type)
obj_t *found_obj; /* Found object */
/* Datatype is a shared or named datatype */
- H5Oget_info(type, ".", &oinfo, H5P_DEFAULT);
+ H5Oget_info(type, &oinfo);
found_obj = search_obj(type_table, oinfo.addr);
if(found_obj) {
@@ -5359,7 +5359,7 @@ xml_dump_group(hid_t gid, const char *name)
indentation(indent);
indent += COL;
- H5Oget_info(gid, ".", &oinfo, H5P_DEFAULT);
+ H5Oget_info(gid, &oinfo);
if(oinfo.rc > 1) {
obj_t *found_obj; /* Found object */