The tep_filter_alloc() function returns a pointer to the newly created event
filter, or NULL in case of an error.
The tep_filter_add_filter_str() function returns 0 if the rule was
successfully added or a negative error code. Use tep_filter_strerror() to see
actual error message in case of an error.
The tep_event_filtered() function returns 1 if the filter is found for given
event, or 0 otherwise.
The tep_filter_remove_event() function returns 1 if the vent was removed, or
0 if the event was not found.
The tep_filter_match() function returns tep_errno, according to the result:
TEP_ERRNO__FILTER_MATCH - filter found for event, the record matches.
TEP_ERRNO__FILTER_MISS - filter found for event, the record does not match.
TEP_ERRNO__FILTER_NOT_FOUND - no filter found for record’s event.
TEP_ERRNO__NO_FILTER - no rules in the filter.
or any other tep_errno, if an error occurred during the test.
The tep_filter_copy() function returns 0 on success or -1 if not all rules
were copied.
The tep_filter_compare() function returns 1 if the two filters hold the same
content, or 0 if they do not.
The tep_filter_make_string() function returns a string, which must be freed
with free(), or NULL in case of an error.
The tep_filter_strerror() function returns 0 if message was filled
successfully, or -1 in case of an error.