Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ts_config Struct Reference

#include <textsearch.h>

Data Fields

struct ts_opsops
 
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)
 

Detailed Description

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.

Field Documentation

void(* finish)(struct ts_config *conf, struct ts_state *state)

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.

struct ts_ops* ops

Definition at line 60 of file textsearch.h.


The documentation for this struct was generated from the following file: