LttvAttributeValue value;
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
+ gboolean retval;
/*
* User may specify filtering options through static file
g_file_get_contents(a_file_name,&a_file_content,NULL,NULL);
- 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((GString*)*(value.v_pointer),a_file_content);
g_string_append_c((GString*)*(value.v_pointer),')');
+ retval= lttv_iattribute_find_by_path(attributes, "filter/expression",
+ LTTV_POINTER, &value);
+ g_assert(retval);
}
/**
LttvAttributeValue value;
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
-
+ gboolean retval;
+
/*
* 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
*/
- 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((GString*)*(value.v_pointer),a_string);
g_string_append_c((GString*)*(value.v_pointer),')');
+ retval= lttv_iattribute_find_by_path(attributes, "filter/expression",
+ LTTV_POINTER, &value);
+ g_assert(retval);
}
/**
LttvAttributeValue value;
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
+ gboolean retval;
- g_assert(lttv_iattribute_find_by_path(attributes, "filter/expression",
- LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "filter/expression",
+ LTTV_POINTER, &value);
+ g_assert(retval);
*(value.v_pointer) = g_string_new("");
* Destroy the current module
*/
static void destroy() {
+ gboolean retval;
+
g_info("Destroy textFilter");
lttv_option_remove("expression");
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
- g_assert(lttv_iattribute_find_by_path(attributes, "filter/expression",
- LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "filter/expression",
+ LTTV_POINTER, &value);
+ g_assert(retval);
g_string_free((GString*)*(value.v_pointer),TRUE);