summaryrefslogtreecommitdiffstats
path: root/c++/test/tfilter.cpp
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2009-04-20 19:17:59 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2009-04-20 19:17:59 (GMT)
commit233fa9bee73001369d76c0d69626043415beb4e5 (patch)
treee353b6cdaf283a4948df71d3074f17cc8b1e8f66 /c++/test/tfilter.cpp
parent7b47b79f2dd750810944a8adbb07a0da8b9a8c64 (diff)
downloadhdf5-233fa9bee73001369d76c0d69626043415beb4e5.zip
hdf5-233fa9bee73001369d76c0d69626043415beb4e5.tar.gz
hdf5-233fa9bee73001369d76c0d69626043415beb4e5.tar.bz2
[svn-r16808] Purpose: Fix bug 1533
Description: Previously, there was no versioning for H5Z_class_t. This prevented applications written for 1.6 using custom filters from being able to use the 1.8 library. There is now an H5Z_class1_t and H5Z_class2_t to enable compatibility. H5Zregister is *not* versioned, it determines which version of the struct has been passed in by the value of the first field (id or version, both are ints). Tested: jam, linew, smirom (h5committest), jam (--with-default-api-version=v16)
Diffstat (limited to 'c++/test/tfilter.cpp')
-rw-r--r--c++/test/tfilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/test/tfilter.cpp b/c++/test/tfilter.cpp
index 2f87feb..1d3cec2 100644
--- a/c++/test/tfilter.cpp
+++ b/c++/test/tfilter.cpp
@@ -60,7 +60,7 @@ static herr_t test_filter_internal(hid_t fid, const char *name, hid_t dcpl,
static size_t filter_bogus(unsigned int flags, size_t cd_nelmts,
const unsigned int *cd_values, size_t nbytes, size_t *buf_size, void **buf);
/* This message derives from H5Z */
-const H5Z_class_t H5Z_BOGUS[1] = {{
+const H5Z_class2_t H5Z_BOGUS[1] = {{
H5Z_CLASS_T_VERS, /* H5Z_class_t version */
H5Z_FILTER_BOGUS, /* Filter id number */
1, 1, /* Encoding and decoding enabled */