summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.h
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2010-03-25 17:29:51 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2010-03-25 17:29:51 (GMT)
commit20fd1f47b757873e6e8e9b7e283f4264ad9c4f1f (patch)
treeca9f4be0e25512350917c72215a698f75044a3f0 /tools/h5repack/h5repack.h
parent1267cda98921c760bcca9d90767f83248ad28314 (diff)
downloadhdf5-20fd1f47b757873e6e8e9b7e283f4264ad9c4f1f.zip
hdf5-20fd1f47b757873e6e8e9b7e283f4264ad9c4f1f.tar.gz
hdf5-20fd1f47b757873e6e8e9b7e283f4264ad9c4f1f.tar.bz2
[svn-r18454] Purpose:
Fix for the bug1726 - NPOESS: h5repack loses attributes for datasets of type H5T_REFERENCE. Description: include test cases. also test cases for attribute with object and region reference. Tested: jam, amani, linew
Diffstat (limited to 'tools/h5repack/h5repack.h')
-rw-r--r--tools/h5repack/h5repack.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack.h b/tools/h5repack/h5repack.h
index 3c3b9b8..4d601ec 100644
--- a/tools/h5repack/h5repack.h
+++ b/tools/h5repack/h5repack.h
@@ -119,6 +119,11 @@ typedef struct {
} pack_opt_t;
+typedef struct named_dt_t {
+ haddr_t addr_in; /* Address of the named dtype in the in file */
+ hid_t id_out; /* Open identifier for the dtype in the out file */
+ struct named_dt_t *next; /* Next dtype */
+} named_dt_t;
/*-------------------------------------------------------------------------
* public functions
@@ -137,6 +142,17 @@ int h5repack_end(pack_opt_t *options);
int h5repack_verify(const char *in_fname, const char *out_fname, pack_opt_t *options);
int h5repack_cmp_pl(const char *fname1, const char *fname2);
+/* Note: The below copy_named_datatype(), named_datatype_free(), copy_attr()
+ * and struct named_dt_t were located in h5repack_copy.c as static prior to
+ * bugfix1726.
+ * Made shared functions as copy_attr() was needed in h5repack_refs.c.
+ * However copy_attr() may be obsoleted when H5Acopy is available and put back
+ * others to static in h5repack_copy.c.
+ */
+hid_t copy_named_datatype(hid_t type_in, hid_t fidout, named_dt_t **named_dt_head_p, trav_table_t *travt, pack_opt_t *options);
+int named_datatype_free(named_dt_t **named_dt_head_p, int ignore_err);
+int copy_attr(hid_t loc_in, hid_t loc_out, named_dt_t **named_dt_head_p,
+ trav_table_t *travt, pack_opt_t *options);
#ifdef __cplusplus
}