*a_file_name = NULL,
*a_string = NULL;
-static GString
+GString
*a_filter_string = NULL;
-
static LttvHooks
*before_traceset,
*event_hook;
static FILE *a_file;
-
/**
* filters the file input from user
* @param hook_data the hook data
else {
g_string_append(a_filter_string,"&"); /*conjonction between expression*/
}
-
+
while(!feof(a_file)) {
getline(&line,&len,a_file);
g_string_append(a_filter_string,line);
line = NULL;
}
+
+// lttv_filter_append_expression(lttvfilter_t,a_filter_string->str);
- lttv_filter_new(a_filter_string->str,NULL);
fclose(a_file);
}
g_string_append(a_filter_string,a_string);
}
else {
- g_string_append(a_filter_string,"&"); /*conjonction between expression*/
+ g_string_append(a_filter_string,"&");
g_string_append(a_filter_string,a_string);
}
+// lttv_filter_append_expression(lttvfilter_t,a_string);
+
}
/**
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
g_info("Init textFilter.c");
-
+
a_string = NULL;
lttv_option_add("string", 's',
"filters a string issued by the user on the command line",
// LTTV_POINTER, &value));
// g_assert((before_traceset = *(value.v_pointer)) != NULL);
// lttv_hooks_add(before_traceset, parse_filter_options, NULL, LTTV_PRIO_DEFAULT);
-
}