Skip to content

Commit

Permalink
mpm: document Search callback return value
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Nov 28, 2023
1 parent 2fc2277 commit 6e36396
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util-mpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ typedef struct MpmTableElmt_ {
int (*AddPattern)(struct MpmCtx_ *, uint8_t *, uint16_t, uint16_t, uint16_t, uint32_t, SigIntId, uint8_t);
int (*AddPatternNocase)(struct MpmCtx_ *, uint8_t *, uint16_t, uint16_t, uint16_t, uint32_t, SigIntId, uint8_t);
int (*Prepare)(struct MpmCtx_ *);
/** \retval cnt number of patterns that matches: once per pattern max. */
uint32_t (*Search)(const struct MpmCtx_ *, struct MpmThreadCtx_ *, PrefilterRuleStore *, const uint8_t *, uint32_t);
void (*PrintCtx)(struct MpmCtx_ *);
void (*PrintThreadCtx)(struct MpmThreadCtx_ *);
Expand Down

0 comments on commit 6e36396

Please sign in to comment.