X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Ffilter.h;h=c6a53e58cef9472a7937f5e2e86f6bb585bf4708;hb=31452f49b69a3cac00a22a307ebd3b587685c5fa;hp=560c45d1b80b174a22027e58c0723eb31034bbe9;hpb=2d4071906b5dc0b71aef54872c145a4b9c39c686;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/filter.h b/ltt/branches/poly/lttv/lttv/filter.h index 560c45d1..c6a53e58 100644 --- a/ltt/branches/poly/lttv/lttv/filter.h +++ b/ltt/branches/poly/lttv/lttv/filter.h @@ -19,6 +19,8 @@ #ifndef FILTER_H #define FILTER_H +#include + /* A filter expression consists in nested AND, OR and NOT expressions involving boolean relation (>, >=, =, !=, <, <=) between event fields and specific values. It is compiled into an efficient data structure which @@ -43,21 +45,23 @@ */ - +/** + * @struct lttv_filter + * ( will later contain a binary tree of filtering options ) + */ typedef struct _lttv_filter lttv_filter; - /* Compile the filter expression into an efficient data structure */ -lttv_filter *lttv_filter_new(char *expression, lttv_trace *t); +lttv_filter *lttv_filter_new(char *expression, LttvTrace *t); /* Check if the tracefile or event satisfies the filter. The arguments are declared as void * to allow these functions to be used as hooks. */ -bool lttv_filter_tracefile(void *filter, void *tracefile); +gboolean lttv_filter_tracefile(lttv_filter *filter, void *tracefile); -bool lttv_filter_event(void *filter, void *event); +gboolean lttv_filter_event(lttv_filter *filter, void *event); #endif // FILTER_H