The event parameter of the run_filter callback should be const, because
it should not be modified, only read.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ie25a3e228d4e0971b447ab4b25d4b2b5e03efa2e
int enabled;
int eval_filter; /* Need to evaluate filters */
- int (*run_filter)(struct lttng_ust_event_common *event,
+ int (*run_filter)(const struct lttng_ust_event_common *event,
const char *stack_data,
void *filter_ctx);
void lttng_ust_free_channel_common(struct lttng_ust_channel_common *chan)
__attribute__((visibility("hidden")));
-int lttng_ust_interpret_event_filter(struct lttng_ust_event_common *event,
+int lttng_ust_interpret_event_filter(const struct lttng_ust_event_common *event,
const char *interpreter_stack_data,
void *filter_ctx)
__attribute__((visibility("hidden")));
/*
* Return LTTNG_UST_EVENT_FILTER_ACCEPT or LTTNG_UST_EVENT_FILTER_REJECT.
*/
-int lttng_ust_interpret_event_filter(struct lttng_ust_event_common *event,
+int lttng_ust_interpret_event_filter(const struct lttng_ust_event_common *event,
const char *interpreter_stack_data,
void *event_filter_ctx __attribute__((unused)))
{