starting to work on lttv filter
[lttv.git] / ltt / branches / poly / lttv / lttv / filter.h
index 560c45d1b80b174a22027e58c0723eb31034bbe9..c6a53e58cef9472a7937f5e2e86f6bb585bf4708 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef FILTER_H
 #define FILTER_H
 
+#include <lttv/traceset.h>
+
 /* 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
 
 */
 
-
+/**
+ * @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
 
This page took 0.022977 seconds and 4 git commands to generate.