From 341aa9484a86ab0ce298715431a07471d76af782 Mon Sep 17 00:00:00 2001 From: siboud Date: Wed, 16 Feb 2005 19:25:17 +0000 Subject: [PATCH] quick fix of errors in filter.c/filter.h git-svn-id: http://ltt.polymtl.ca/svn@874 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/filter.c | 39 +++++++++++++++------------- ltt/branches/poly/lttv/lttv/filter.h | 10 +++---- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index aa29b2c5..4ed2eb1b 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -73,21 +73,21 @@ parse_field_path(GList* fp) { GString* f = g_list_first(fp)->data; switch(g_quark_try_string(f->str)) { - case LTTV_FILTER_TRACE: - - break; - case LTTV_FILTER_TRACEFILE: - - break; - case LTTV_FILTER_TRACESET: - - break; - case LTTV_FILTER_STATE: - - break; - case LTTV_FILTER_EVENT: - - break; +// case LTTV_FILTER_TRACE: +// +// break; +// case LTTV_FILTER_TRACEFILE: +// +// break; +// case LTTV_FILTER_TRACESET: +// +// break; +// case LTTV_FILTER_STATE: +// +// break; +// case LTTV_FILTER_EVENT: +// +// break; default: /* Quark value unrecognized or equal to 0 */ g_warning("Unrecognized field in filter string"); return FALSE; @@ -265,7 +265,9 @@ lttv_filter_tracefile(lttv_filter *filter, LttTracefile *tracefile) { } gboolean -lttv_filter_tracestate(lttv_filter *filter, LttvTraceState *tracestate) {} +lttv_filter_tracestate(lttv_filter *filter, LttvTraceState *tracestate) { + +} /** * Apply the filter to a specific event @@ -293,8 +295,9 @@ static void module_destroy() } -LTTV_MODULE("filter", "Filter state & event", \ - "Filters the current tracestate and events from user expression", \ +//LTTV_MODULE("filter", \ + "", \ + "", \ module_init, module_destroy) diff --git a/ltt/branches/poly/lttv/lttv/filter.h b/ltt/branches/poly/lttv/lttv/filter.h index d405a09a..ab5b6958 100644 --- a/ltt/branches/poly/lttv/lttv/filter.h +++ b/ltt/branches/poly/lttv/lttv/filter.h @@ -106,15 +106,15 @@ typedef struct _lttv_expression lttv_expression_type type; union { struct lttv_expression *e; - lttv_field_relation *se; /* --> simple expression */ + // lttv_field_relation *se; /* --> simple expression */ } e; } lttv_expression; -typedef union _lttv_expression { - lttv_simple_expression se; - -} lttv_expression; +//typedef union _lttv_expression { +// lttv_simple_expression se; +// +//} lttv_expression; typedef struct _lttv_filter_tree { lttv_expression* node; -- 2.34.1