When both the HDF5 library and the application are built and installed with no specific compatibility flags, H5P_ENCODE is mapped to the most recent version of the function. If the library and/or application is compiled for Release 1.10 emulation, H5P_ENCODE will be mapped to H5P_ENCODE1. 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.10 interface
H5Pencode_vers = 2
H5Pencode_vers = 1
Returns a non-negative value if successful; otherwise returns a negative value.