1.1 --- a/regex_parser.h Thu Jan 26 15:55:52 2012 +0100 1.2 +++ b/regex_parser.h Thu Feb 02 14:17:35 2012 +0100 1.3 @@ -18,6 +18,7 @@ 1.4 typedef struct { 1.5 string_list_t* pattern_list; /* even entries: start ; odd entries: end */ 1.6 regex_t** compiled_patterns; 1.7 + size_t compiled_pattern_count; 1.8 unsigned int pattern_match; /* save position of end pattern to match - 1.9 NULL when a start pattern shall match first */ 1.10 unsigned int matched_lines; 1.11 @@ -31,7 +32,8 @@ 1.12 void destroy_regex_parser_t(regex_parser_t*); 1.13 1.14 bool regex_parser_matching(regex_parser_t*); 1.15 -void regex_compile_all(regex_parser_t*); 1.16 +bool regex_compile_all(regex_parser_t*); 1.17 +int regex_parser_do(regex_parser_t*, char*); 1.18 1.19 #ifdef _cplusplus 1.20 }