mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
8d0bced60d
Priority: Low re: issue https://github.com/Unidata/netcdf-c/issues/1329 HDF5 has the ability to programmatically define new filters, as opposed to using HDF5_PLUGIN_PATH env variable. This PR adds support for that feature. Not clear how useful this is, though. See docs/filters.md for details.
36 lines
941 B
C
36 lines
941 B
C
#ifndef H5MISC_H
|
|
#define H5MISC_H
|
|
|
|
#ifdef _MSC_VER
|
|
#ifdef DLL_EXPORT /* define when building the library */
|
|
#define DECLSPEC __declspec(dllexport)
|
|
#else
|
|
#define DECLSPEC __declspec(dllimport)
|
|
#endif
|
|
#else
|
|
#define DECLSPEC extern
|
|
#endif
|
|
|
|
/* use an integer greater than 256 to be id of the registered filter. */
|
|
#define H5Z_FILTER_TEST 32768
|
|
|
|
/* Define the test cases */
|
|
|
|
typedef enum H5testcase {
|
|
TC_NONE = 0,
|
|
TC_ENDIAN = 1,
|
|
TC_ODDSIZE = 2,
|
|
} H5testcase;
|
|
|
|
/* declare the hdf5 interface */
|
|
DECLSPEC H5PL_type_t H5PLget_plugin_type(void);
|
|
DECLSPEC const void* H5PLget_plugin_info(void);
|
|
DECLSPEC const H5Z_class2_t H5Z_TEST[1];
|
|
|
|
/* Declare filter specific functions */
|
|
DECLSPEC htri_t H5Z_test_can_apply(hid_t dcpl_id, hid_t type_id, hid_t space_id);
|
|
DECLSPEC size_t H5Z_filter_test(unsigned flags,size_t cd_nelmts,const unsigned cd_values[],
|
|
size_t nbytes,size_t *buf_size,void**buf);
|
|
|
|
#endif /*H5MISC_H*/
|