diff -r 1a2d7298bc82 -r fa9bda32de17 regex_parser.h --- a/regex_parser.h Tue Oct 02 10:49:25 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -/* - * regex_parser.h - * - * Created on: 26.01.2012 - * Author: Mike - */ - -#ifndef REGEX_PARSER_H_ -#define REGEX_PARSER_H_ - -#define REGEX_MAX_LINELENGTH 2048 - -#include -#include -#include -#include "string_list.h" - -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; -} regex_parser_t; - -#ifdef _cplusplus -extern "C" { -#endif - -regex_parser_t* new_regex_parser_t(); -void destroy_regex_parser_t(regex_parser_t*); - -bool regex_parser_matching(regex_parser_t*); -bool regex_compile_all(regex_parser_t*); -int regex_parser_do(regex_parser_t*, char*); - -#ifdef _cplusplus -} -#endif - -#endif /* REGEX_PARSER_H_ */