X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Ffilter.h;h=99f3c403a2422f7f9e44b780d3610f89e494a2e5;hb=0769c82fae5a39a6965f63439671ecca48b2d9b5;hp=9224a9a51e6cbef7898387af740d297b231d9c2c;hpb=a4c292d42202029a5153c487fd01263a183a0af2;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/filter.h b/ltt/branches/poly/lttv/lttv/filter.h index 9224a9a5..99f3c403 100644 --- a/ltt/branches/poly/lttv/lttv/filter.h +++ b/ltt/branches/poly/lttv/lttv/filter.h @@ -52,6 +52,13 @@ */ +static GQuark + LTTV_FILTER_TRACE, + LTTV_FILTER_TRACESET, + LTTV_FILTER_TRACEFILE, + LTTV_FILTER_STATE, + LTTV_FILTER_EVENT; + /** * @enum lttv_expression_op */ @@ -114,17 +121,18 @@ typedef struct _lttv_filter { lttv_filter_tree* tree; } lttv_filter; +gboolean parse_field_path(GList* fp); + gboolean parse_simple_expression(GString* expression); /* Compile the filter expression into an efficient data structure */ - lttv_filter *lttv_filter_new(char *expression, LttvTraceState *tfs); /* Check if the tracefile or event satisfies the filter. The arguments are declared as void * to allow these functions to be used as hooks. */ -gboolean lttv_filter_tracefile(lttv_filter *filter, LttvTrace *tracefile); +gboolean lttv_filter_tracefile(lttv_filter *filter, LttTracefile *tracefile); gboolean lttv_filter_event(lttv_filter *filter, LttEvent *event);