H5P_GET_FILTER is a macro that is mapped to either
H5P_GET_FILTER2, depending on the needs of the application.
Such macros are provided to facilitate application compatibility. For example:
H5P_GET_FILTER macro will be mapped to
H5P_GET_FILTER1 and will use the
H5P_GET_FILTER1 syntax (first signature above) if an application is coded for HDF5 Release 1.6.x.
macro mapped to
and will use the
H5P_GET_FILTER2 syntax (second signature above) if an application is coded for HDF5 Release 1.8.x.
For more information on macro use and mappings, see the “API Compatibility Macros in HDF5” document.
When both the HDF5 Library and the application are built and installed with no specific compatibility flags,
is mapped to the most recent version of the function, currently
. If the library and/or application is compiled for Release 1.6 emulation,
will be mapped to
H5P_GET_FILTER1. Function-specific flags are available to override these settings on a function-by-function basis when the application is compiled.
Specific compile-time compatibility flags and the resulting mappings are as follows:
|No compatibility flag|
|Enable deprecated symbols|
|Disable deprecated symbols|
|Emulate Release 1.6 interface|
H5Pget_filter_vers = 2
H5Pget_filter_vers = 1
Interface history: Signature  above is the original
interface and the only interface available prior to HDF5 Release 1.8.0. This signature and the corresponding function are now deprecated but will remain directly callable as
Signature  above was introduced with HDF5 Release 1.8.0 and is the recommended and default interface. It is directly callable as
See “API Compatibility Macros in HDF5” for circumstances under which either of these functions might not be available in an installed instance of the HDF5 Library.