aboutsummaryrefslogtreecommitdiffstats
path: root/util/alevt/search.h
blob: c7e813a4a30a56a7be316d9af8a0e6273d942e23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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