00001 #ifndef _GROKRE_H_
00002 #define _GROKRE_H_
00003
00025 grok_t *grok_new();
00026
00033 void grok_init(grok_t *grok);
00034
00043 void grok_clone(grok_t *dst, const grok_t *src);
00044
00055 void grok_free(grok_t *grok);
00056
00059 void grok_free_clone(const grok_t *grok);
00060
00066 const char *grok_version();
00067
00068 int grok_compile(grok_t *grok, const char *pattern);
00069 int grok_compilen(grok_t *grok, const char *pattern, int length);
00070 int grok_exec(const grok_t *grok, const char *text, grok_match_t *gm);
00071 int grok_execn(const grok_t *grok, const char *text, int textlen, grok_match_t *gm);
00072
00073 int grok_match_get_named_substring(const grok_match_t *gm, const char *name,
00074 const char **substr, int *len);
00075
00076 #endif