diff options
author | Joonwoo Park <joonwpark81@gmail.com> | 2008-07-08 02:37:31 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-08 02:37:31 -0700 |
commit | b9c796783151678d08b1ec1ef410685b2515ba51 (patch) | |
tree | 48546b3c11b7111f465d09fe6802bae3e227262f /include/linux | |
parent | 58de7862e61cb71251a25314d1b3d7260af1448a (diff) | |
download | kernel-crypto-b9c796783151678d08b1ec1ef410685b2515ba51.tar.gz kernel-crypto-b9c796783151678d08b1ec1ef410685b2515ba51.tar.xz kernel-crypto-b9c796783151678d08b1ec1ef410685b2515ba51.zip |
textsearch: support for case insensitive searching
The function textsearch_prepare has a new flag to support case
insensitive searching.
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/textsearch.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/textsearch.h b/include/linux/textsearch.h index 6f371f24160..6c34cf28b7a 100644 --- a/include/linux/textsearch.h +++ b/include/linux/textsearch.h @@ -10,10 +10,8 @@ struct ts_config; -/** - * TS_AUTOLOAD - Automatically load textsearch modules when needed - */ -#define TS_AUTOLOAD 1 +#define TS_AUTOLOAD 1 /* Automatically load textsearch modules when needed */ +#define TS_IGNORECASE 2 /* Searches string case insensitively */ /** * struct ts_state - search state @@ -39,7 +37,7 @@ struct ts_state struct ts_ops { const char *name; - struct ts_config * (*init)(const void *, unsigned int, gfp_t); + struct ts_config * (*init)(const void *, unsigned int, gfp_t, int); unsigned int (*find)(struct ts_config *, struct ts_state *); void (*destroy)(struct ts_config *); @@ -52,12 +50,14 @@ struct ts_ops /** * struct ts_config - search configuration * @ops: operations of chosen algorithm + * @flags: flags * @get_next_block: callback to fetch the next block to search in * @finish: callback to finalize a search */ struct ts_config { struct ts_ops *ops; + int flags; /** * get_next_block - fetch next block of data |