diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2009-04-20 19:17:59 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2009-04-20 19:17:59 (GMT) |
commit | 233fa9bee73001369d76c0d69626043415beb4e5 (patch) | |
tree | e353b6cdaf283a4948df71d3074f17cc8b1e8f66 /src/H5Opline.c | |
parent | 7b47b79f2dd750810944a8adbb07a0da8b9a8c64 (diff) | |
download | hdf5-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 'src/H5Opline.c')
-rw-r--r-- | src/H5Opline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Opline.c b/src/H5Opline.c index 20a9d26..070ab87 100644 --- a/src/H5Opline.c +++ b/src/H5Opline.c @@ -273,7 +273,7 @@ H5O_pline_encode(H5F_t UNUSED *f, uint8_t *p/*out*/, const void *mesg) name = NULL; } /* end if */ else { - H5Z_class_t *cls; /* Filter class */ + H5Z_class2_t *cls; /* Filter class */ /* * Get the filter name. If the pipeline message has a name in it then @@ -453,7 +453,7 @@ H5O_pline_size(const H5F_t UNUSED *f, const void *mesg) if(pline->version > H5O_PLINE_VERSION_1 && pline->filter[i].id < H5Z_FILTER_RESERVED) name_len = 0; else { - H5Z_class_t *cls; /* Filter class */ + H5Z_class2_t *cls; /* Filter class */ /* Get the name of the filter, same as done with H5O_pline_encode() */ if(NULL == (name = pline->filter[i].name) && (cls = H5Z_find(pline->filter[i].id))) |