diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2010-04-22 18:43:19 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2010-04-22 18:43:19 (GMT) |
commit | cacfe71beb159fc44df256f641d4faac594c802e (patch) | |
tree | e550a119d88414f2188a5af68edc08bf44b642b8 /tools/lib/h5tools_utils.h | |
parent | 8881ff748cc1cc6055f9e89f4a27c2c7883a5dfa (diff) | |
download | hdf5-cacfe71beb159fc44df256f641d4faac594c802e.zip hdf5-cacfe71beb159fc44df256f641d4faac594c802e.tar.gz hdf5-cacfe71beb159fc44df256f641d4faac594c802e.tar.bz2 |
[svn-r18615] Purpose:
Fix for bug 1817 : h5copy fail to copy dangling link by specifying
link path directly
Description:
Merged from hdf5 trunk r18614.
Tested:
jam, amani
Diffstat (limited to 'tools/lib/h5tools_utils.h')
-rw-r--r-- | tools/lib/h5tools_utils.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/lib/h5tools_utils.h b/tools/lib/h5tools_utils.h index e7b175c..dcd8f2b 100644 --- a/tools/lib/h5tools_utils.h +++ b/tools/lib/h5tools_utils.h @@ -119,4 +119,35 @@ extern obj_t *search_obj(table_t *temp, haddr_t objno); extern FILE * tmpfile(void); #endif + +/************************************************************* + * + * candidate functions to be public + * + *************************************************************/ + +/* This code is layout for common code among tools */ +typedef enum toolname_t { + TOOL_H5DIFF, TOOL_H5LS, TOOL__H5DUMP /* add as necessary */ +} h5tool_toolname_t; + +/* this struct can be used to differntiate among tools */ +typedef struct { + h5tool_toolname_t toolname; + int msg_mode; +} h5tool_opt_t; + +/* obtain link info from H5tools_get_link_info() */ +typedef struct { + H5O_type_t trg_type; /* OUT: target type */ + const char *trg_path; /* OUT: target obj path. This must be freed + * when used with H5tools_get_link_info() */ + H5L_info_t linfo; /* OUT: link info */ + h5tool_opt_t opt; /* IN: options */ +} h5tool_link_info_t; + + +/* Definitions of routines */ +extern int H5tools_get_link_info(hid_t file_id, const char * linkpath, h5tool_link_info_t *link_info); + #endif /* H5TOOLS_UTILS_H__ */ |