1#ifndef __LINUX_TEXTSEARCH_FSM_H
2#define __LINUX_TEXTSEARCH_FSM_H
3
4#include <linux/types.h>
5
6enum {
7 TS_FSM_SPECIFIC,
8 TS_FSM_WILDCARD,
9 TS_FSM_DIGIT,
10 TS_FSM_XDIGIT,
11 TS_FSM_PRINT,
12 TS_FSM_ALPHA,
13 TS_FSM_ALNUM,
14 TS_FSM_ASCII,
15 TS_FSM_CNTRL,
16 TS_FSM_GRAPH,
17 TS_FSM_LOWER,
18 TS_FSM_UPPER,
19 TS_FSM_PUNCT,
20 TS_FSM_SPACE,
21 __TS_FSM_TYPE_MAX,
22};
23#define TS_FSM_TYPE_MAX (__TS_FSM_TYPE_MAX - 1)
24
25enum {
26 TS_FSM_SINGLE,
27 TS_FSM_PERHAPS,
28 TS_FSM_ANY,
29 TS_FSM_MULTI,
30 TS_FSM_HEAD_IGNORE,
31 __TS_FSM_RECUR_MAX,
32};
33#define TS_FSM_RECUR_MAX (__TS_FSM_RECUR_MAX - 1)
34
35
36
37
38
39
40
41struct ts_fsm_token
42{
43 __u16 type;
44 __u8 recur;
45 __u8 value;
46};
47
48#endif
49