Linux Kernel
3.7.1
|
#include <textsearch.h>
Data Fields | |
struct ts_ops * | ops |
int | flags |
unsigned int(* | get_next_block )(unsigned int consumed, const u8 **dst, struct ts_config *conf, struct ts_state *state) |
void(* | finish )(struct ts_config *conf, struct ts_state *state) |
struct ts_config - search configuration : operations of chosen algorithm : flags : callback to fetch the next block to search in : callback to finalize a search
Definition at line 58 of file textsearch.h.
finish - finalize/clean a series of get_next_block() calls : search configuration : search state
Called after the last use of get_next_block(), may be used to cleanup any leftovers.
Definition at line 88 of file textsearch.h.
int flags |
Definition at line 61 of file textsearch.h.
unsigned int(* get_next_block)(unsigned int consumed, const u8 **dst, struct ts_config *conf, struct ts_state *state) |
get_next_block - fetch next block of data : number of bytes consumed by the caller : destination buffer : search configuration : search state
Called repeatedly until 0 is returned. Must assign the head of the next block of data to &*dst and return the length of the block or 0 if at the end. consumed == 0 indicates a new search. May store/read persistent values in state->cb.
Definition at line 75 of file textsearch.h.
Definition at line 60 of file textsearch.h.