+ LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
+
+ /*
+ * User may specify filtering options through static file
+ * and/or command line string. From these sources, an
+ * option string is rebuilded and sent to the filter core
+ */
+/* if(a_filter_string==NULL) {
+ a_filter_string = g_string_new("");
+ g_string_append(a_filter_string,a_string);
+ }
+ else {
+ g_string_append(a_filter_string,"&");
+ g_string_append(a_filter_string,a_string);
+ }
+*/
+
+ g_assert(lttv_iattribute_find_by_path(attributes, "filter/expression",
+ LTTV_POINTER, &value));
+
+ if(((GString*)*(value.v_pointer))->len != 0) g_string_append_c((GString*)*(value.v_pointer),'&');
+ g_string_append_c((GString*)*(value.v_pointer),'(');
+ g_string_append((GString*)*(value.v_pointer),a_string);
+ g_string_append_c((GString*)*(value.v_pointer),')');
+
+// LttvFilter* filter = lttv_filter_new();
+// lttv_filter_append_expression(filter,a_string);