summaryrefslogtreecommitdiff
path: root/buf_misc.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2019-05-20 17:28:25 +0100
committerFreeArtMan <dos21h@gmail.com>2019-05-20 17:28:25 +0100
commitc9050b110457266488c3b51a38029138da2281aa (patch)
treecc6bc47c7fc27f176a5d97c7dd5b9a835015658c /buf_misc.h
parent2e06ffc51227fb9d613f6e068ffe04e0c4a23cb9 (diff)
downloadlibbuf-master.tar.gz
libbuf-master.zip
Added custom pattern detector and extractor from bufferHEADmaster
Diffstat (limited to 'buf_misc.h')
-rw-r--r--buf_misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/buf_misc.h b/buf_misc.h
index ef86f42..ded41d7 100644
--- a/buf_misc.h
+++ b/buf_misc.h
@@ -36,6 +36,7 @@ public:
int add(Buf *newdata);
int pop_line(char **val, int *size);
int print();
+ int pop_pattern(int (*detect_pattern)(char *, int, int*), char **val, int *size);
};