diff options
author | Mark Purcell <msp@debian.org> | 2010-02-25 21:13:46 +1100 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2013-09-03 09:48:46 +0200 |
commit | 665818f1969f893f05edf5b70eb1804c89b2829e (patch) | |
tree | 34ba68cee03c52d769a5a51b456b7e9d63cd091a /util/alevt/search.h | |
parent | 109c7947d6a11a2a54eff1b19615ed80ea2f0602 (diff) | |
parent | 9fe4d4ea9c054e539ab679ed2e9c076c35beb69d (diff) | |
download | linux-dvb-apps-665818f1969f893f05edf5b70eb1804c89b2829e.tar.gz |
Imported Debian patch 1.1.1+rev1355-1debian/1.1.1+rev1355-1
Diffstat (limited to 'util/alevt/search.h')
-rw-r--r-- | util/alevt/search.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/util/alevt/search.h b/util/alevt/search.h new file mode 100644 index 0000000..c7e813a --- /dev/null +++ b/util/alevt/search.h @@ -0,0 +1,16 @@ +#ifndef SEARCH_H +#define SEARCH_H + +#include <regex.h> + +struct search +{ + struct cache *cache; + regex_t pattern[1]; + int x, y, len; // the position of the match +}; + +struct search *search_start(struct cache *ca, u8 *pattern); +void search_end(struct search *s); +int search_next(struct search *s, int *pgno, int *subno, int dir); +#endif |