summaryrefslogtreecommitdiffstats
path: root/test/filter_plugin2_dsets.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/filter_plugin2_dsets.c')
-rw-r--r--test/filter_plugin2_dsets.c46
1 files changed, 26 insertions, 20 deletions
diff --git a/test/filter_plugin2_dsets.c b/test/filter_plugin2_dsets.c
index 6a79148..425bf81 100644
--- a/test/filter_plugin2_dsets.c
+++ b/test/filter_plugin2_dsets.c
@@ -19,28 +19,35 @@
#include "H5PLextern.h"
-#define FILTER2_ID 258
-#define MULTIPLIER 3
+#define FILTER2_ID 258
+#define MULTIPLIER 3
-static size_t mult_div_value(unsigned int flags, size_t cd_nelmts,
- const unsigned int *cd_values, size_t nbytes, size_t *buf_size, void **buf);
+static size_t mult_div_value(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values,
+ size_t nbytes, size_t *buf_size, void **buf);
/* Filter class struct */
const H5Z_class2_t FILTER_INFO[1] = {{
- H5Z_CLASS_T_VERS, /* H5Z_class_t version */
- FILTER2_ID, /* Filter ID number */
- 1, /* Encoding enabled */
- 1, /* Decoding enabled */
- "test filter plugin 2", /* Filter name for debugging */
- NULL, /* The "can apply" callback */
- NULL, /* The "set local" callback */
- (H5Z_func_t)mult_div_value, /* The actual filter function */
+ H5Z_CLASS_T_VERS, /* H5Z_class_t version */
+ FILTER2_ID, /* Filter ID number */
+ 1, /* Encoding enabled */
+ 1, /* Decoding enabled */
+ "test filter plugin 2", /* Filter name for debugging */
+ NULL, /* The "can apply" callback */
+ NULL, /* The "set local" callback */
+ (H5Z_func_t)mult_div_value, /* The actual filter function */
}};
-H5PL_type_t H5PLget_plugin_type(void) {return H5PL_TYPE_FILTER;}
-const void *H5PLget_plugin_info(void) {return FILTER_INFO;}
+H5PL_type_t
+H5PLget_plugin_type(void)
+{
+ return H5PL_TYPE_FILTER;
+}
+const void *
+H5PLget_plugin_info(void)
+{
+ return FILTER_INFO;
+}
-
/*-------------------------------------------------------------------------
* Function: mult_div_value
*
@@ -55,11 +62,11 @@ const void *H5PLget_plugin_info(void) {return FILTER_INFO;}
*-------------------------------------------------------------------------
*/
static size_t
-mult_div_value(unsigned int flags, size_t cd_nelmts,
- const unsigned int *cd_values, size_t nbytes, size_t *buf_size, void **buf)
+mult_div_value(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
+ size_t *buf_size, void **buf)
{
- int *int_ptr = (int *)*buf; /* Pointer to the data values */
- size_t buf_left = *buf_size; /* Amount of data buffer left to process */
+ int * int_ptr = (int *)*buf; /* Pointer to the data values */
+ size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */
if (cd_nelmts > 0)
@@ -85,4 +92,3 @@ mult_div_value(unsigned int flags, size_t cd_nelmts,
return nbytes;
} /* end mult_div_value() */
-