summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-11-03 22:10:57 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-11-03 22:10:57 (GMT)
commit75a5e8a0e697d7f109d5db5bb7747d3d5412abe5 (patch)
tree16ee6b325bb8cb95dc55a862b138ef2f4a96666b /tools/lib/h5diff.h
parent15505bd890fab8e42bfd32ad3c1b967b26f0ad35 (diff)
downloadhdf5-75a5e8a0e697d7f109d5db5bb7747d3d5412abe5.zip
hdf5-75a5e8a0e697d7f109d5db5bb7747d3d5412abe5.tar.gz
hdf5-75a5e8a0e697d7f109d5db5bb7747d3d5412abe5.tar.bz2
[svn-r7813] Purpose:
h5diff new feature Description: added compare for attributes a new options flag (-a) was added to the options structure. it is 0 by default (no compare ) the output of the compare is the same that for datasets, and all the other flags also apply for attributes (the memory compare is done in the same function diff_array) all the other requirements for compare of datasets (type, space) are identical too Platforms tested: linux solaris 2.7 IRIX Misc. update:
Diffstat (limited to 'tools/lib/h5diff.h')
-rw-r--r--tools/lib/h5diff.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/lib/h5diff.h b/tools/lib/h5diff.h
index e9230bc..10e190d 100644
--- a/tools/lib/h5diff.h
+++ b/tools/lib/h5diff.h
@@ -57,6 +57,7 @@ typedef struct {
int n; /* count */
int count; /* count value */
int verbose; /* print information */
+ int attr; /* compare attributes */
} diff_opt_t;
@@ -132,6 +133,26 @@ int diff_array( void *buf1,
const char *obj2,
hid_t m_type );
+
+int diff_can_type( hid_t f_type1, /* file data type */
+ hid_t f_type2, /* file data type */
+ int rank1,
+ int rank2,
+ hsize_t *dims1,
+ hsize_t *dims2,
+ hsize_t *maxdim1,
+ hsize_t *maxdim2,
+ const char *obj1_name,
+ const char *obj2_name,
+ diff_opt_t *options );
+
+
+int diff_attr(hid_t loc1_id,
+ hid_t loc2_id,
+ diff_opt_t *options
+ );
+
+
/*-------------------------------------------------------------------------
* utility functions
*-------------------------------------------------------------------------