00001 /** 00002 ** @file hi_hbm.h 00003 ** 00004 ** @author Marc Norton <mnorton@sourcefire.com> 00005 ** 00006 ** @brief Header file for Horspool type Boyer-Moore implementation 00007 */ 00008 #ifndef __HI_HBM_H__ 00009 #define __HI_HBM_H__ 00010 00011 typedef struct { 00012 00013 unsigned char *P; 00014 int M; 00015 short bcShift[256]; 00016 00017 }HBM_STRUCT; 00018 00019 HBM_STRUCT * hbm_prep(unsigned char * pat, int m); 00020 unsigned char * hbm_match(HBM_STRUCT * px, unsigned char *text, int n); 00021 00022 #endif