summaryrefslogtreecommitdiffstats
path: root/runtime/stringbuf.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-02 16:16:57 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-02 16:16:57 +0200
commita86e42028afeba1daca262b590bfd49d9c393b90 (patch)
treec9276d5a21fbe13b2c819137d705f696ea15ea1d /runtime/stringbuf.h
parenteb807027af9e126a212b0630c5873dddae48963b (diff)
downloadrsyslog-a86e42028afeba1daca262b590bfd49d9c393b90.tar.gz
rsyslog-a86e42028afeba1daca262b590bfd49d9c393b90.tar.xz
rsyslog-a86e42028afeba1daca262b590bfd49d9c393b90.zip
improved performance of regexp-based filters
Thanks to Arnaud Cornet for providing the idea and initial patch.
Diffstat (limited to 'runtime/stringbuf.h')
-rw-r--r--runtime/stringbuf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/stringbuf.h b/runtime/stringbuf.h
index f3e08439..4b0fb065 100644
--- a/runtime/stringbuf.h
+++ b/runtime/stringbuf.h
@@ -137,6 +137,8 @@ int rsCStrStartsWithSzStr(cstr_t *pCS1, uchar *psz, size_t iLenSz);
int rsCStrCaseInsensitveStartsWithSzStr(cstr_t *pCS1, uchar *psz, size_t iLenSz);
int rsCStrSzStrStartsWithCStr(cstr_t *pCS1, uchar *psz, size_t iLenSz);
rsRetVal rsCStrSzStrMatchRegex(cstr_t *pCS1, uchar *psz, int iType);
+int rsCStrSzStrMatchRegexCache(cstr_t *pCS1, uchar *psz, void **cache);
+void rsRegexDestruct(void **rc);
rsRetVal rsCStrConvertToNumber(cstr_t *pStr, number_t *pNumber);
rsRetVal rsCStrConvertToBool(cstr_t *pStr, number_t *pBool);
rsRetVal rsCStrAppendCStr(cstr_t *pThis, cstr_t *pstrAppend);