diff -r 95a958e3de88 -r 72a98cbcb9f1 regex_parser.h --- a/regex_parser.h Thu Jan 26 15:55:52 2012 +0100 +++ b/regex_parser.h Thu Feb 02 14:17:35 2012 +0100 @@ -18,6 +18,7 @@ typedef struct { string_list_t* pattern_list; /* even entries: start ; odd entries: end */ regex_t** compiled_patterns; + size_t compiled_pattern_count; unsigned int pattern_match; /* save position of end pattern to match - NULL when a start pattern shall match first */ unsigned int matched_lines; @@ -31,7 +32,8 @@ void destroy_regex_parser_t(regex_parser_t*); bool regex_parser_matching(regex_parser_t*); -void regex_compile_all(regex_parser_t*); +bool regex_compile_all(regex_parser_t*); +int regex_parser_do(regex_parser_t*, char*); #ifdef _cplusplus }