Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

str_search.c File Reference

#include <stdlib.h>
#include "str_search.h"
#include "mpse.h"

Go to the source code of this file.

Typedefs

typedef tag_search t_search

Functions

int SearchInit (unsigned int num)
void SearchFree ()
int SearchFindString (unsigned int mpse_id, char *str, int str_len, int(*Match)(void *, int, void *))
void SearchAdd (unsigned int mpse_id, char *pat, int id)
void SearchPrepPatterns (unsigned int mpse_id)

Variables

static t_search_mpse = NULL
static unsigned int _num_mpse


Typedef Documentation

typedef struct tag_search t_search
 


Function Documentation

void SearchAdd unsigned int  mpse_id,
char *  pat,
int  id
 

Definition at line 67 of file str_search.c.

References tag_search::max_len, and mpseAddPattern().

Referenced by XLINK2STATE_Init().

int SearchFindString unsigned int  mpse_id,
char *  str,
int  str_len,
int(*)(void *, int, void *)  Match
 

Definition at line 55 of file str_search.c.

References tag_search::max_len, and mpseSearch().

Referenced by XLINK2STATE_ProcessPacket().

void SearchFree  ) 
 

Definition at line 38 of file str_search.c.

References _num_mpse, mpseFree(), and NULL.

int SearchInit unsigned int  num  ) 
 

Definition at line 20 of file str_search.c.

References _num_mpse, tag_search::max_len, tag_search::mpse, MPSE_AC, mpseNew(), and NULL.

Referenced by XLINK2STATE_Init().

void SearchPrepPatterns unsigned int  mpse_id  ) 
 

Definition at line 77 of file str_search.c.

References mpsePrepPatterns().

Referenced by XLINK2STATE_Init().


Variable Documentation

t_search* _mpse = NULL [static]
 

Definition at line 17 of file str_search.c.

unsigned int _num_mpse [static]
 

Definition at line 18 of file str_search.c.

Referenced by SearchFree(), and SearchInit().


Generated on Sun May 14 14:51:26 2006 by  doxygen 1.4.2