diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-04-09 02:35:36 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-04-09 02:35:36 (GMT) |
commit | f725c99c600b73041350c31a246129923d15009e (patch) | |
tree | 8c9887e424ac4a9b598b8ac3f27955016dcf9958 | |
parent | 92b6e817897817df03ad9f9b171ea4e11b901834 (diff) | |
download | hdf5-f725c99c600b73041350c31a246129923d15009e.zip hdf5-f725c99c600b73041350c31a246129923d15009e.tar.gz hdf5-f725c99c600b73041350c31a246129923d15009e.tar.bz2 |
[svn-r6612] Purpose:
Update code
Description:
Chase changes for registering filters.
Solution:
Platforms tested:
FreeBSD 4.8 (sleipnir) w/szip
Linux 2.4 (sleipnir) w/szip
Solaris 2.7 (arabica) w/FORTRAN
IRIX64 6.5 (modi4) w/szip, FORTRAN & parallel
Misc. update:
-rw-r--r-- | perform/chunk.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/perform/chunk.c b/perform/chunk.c index 717858b..46fb37d 100644 --- a/perform/chunk.c +++ b/perform/chunk.c @@ -75,6 +75,21 @@ static size_t nio_g; static hid_t fapl_g = -1; +/* Local function prototypes */ +static size_t +counter (unsigned UNUSED flags, size_t cd_nelmts, + const unsigned *cd_values, size_t nbytes, + size_t *buf_size, void **buf); + +/* This message derives from H5Z */ +const H5Z_class_t H5Z_COUNTER[1] = {{ + FILTER_COUNTER, /* Filter id number */ + "counter", /* Filter name for debugging */ + NULL, /* The "can apply" callback */ + NULL, /* The "set local" callback */ + counter, /* The actual filter function */ +}}; + /*------------------------------------------------------------------------- * Function: counter @@ -137,7 +152,7 @@ create_dataset (void) dcpl = H5Pcreate (H5P_DATASET_CREATE); size[0] = size[1] = CH_SIZE; H5Pset_chunk (dcpl, 2, size); - H5Zregister (FILTER_COUNTER, "counter", counter); + H5Zregister (H5Z_COUNTER); H5Pset_filter (dcpl, FILTER_COUNTER, 0, 0, NULL); /* The dataset */ |