mmpm_handler_init
Feature
Initializes the multi-pattern rule matching handler.
Definition
int mmpm_handler_init(mmpm_handler_t *handler, mmpm_matcher_type type);
Parameter Description
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
handler |
Handler of the matching engine |
Not null |
Input |
type |
Type of the matching engine |
Variables enumerated by mmpm_matcher_type |
Input |
Return Value
- Success: 0 is returned.
- Failure: The error code is returned.
Constraints
Do not call this function repeatedly on the same handler. If you want to reinitialize a handler, destroy the handler by calling mmpm_handler_destroy and then initialize the handler again by calling mmpm_handler_init.
Parent topic: API Description