X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Futils%2Fcounter%2Fcounter.c;h=9fe62a349096b603732eccf40fbc53161ca14b40;hb=d9120ccba72cfe3173cf5987871e9667d4c4c547;hp=d9b7baeeb0ec13ceb6ee523e2d52c8ad9db7c5b8;hpb=7c7301d5827bd10ec7c34da7ffc5fe74e5047d38;p=babeltrace.git diff --git a/src/plugins/utils/counter/counter.c b/src/plugins/utils/counter/counter.c index d9b7baee..9fe62a34 100644 --- a/src/plugins/utils/counter/counter.c +++ b/src/plugins/utils/counter/counter.c @@ -30,6 +30,7 @@ #include "common/common.h" #include "common/assert.h" #include +#include #include #include "plugins/common/param-validation/param-validation.h" @@ -137,6 +138,7 @@ void counter_finalize(bt_self_component_sink *comp) g_free(counter); } +static struct bt_param_validation_map_value_entry_descr counter_params[] = { { "step", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_UNSIGNED_INTEGER } }, { "hide-zero", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },