rulexdb_load_ruleset3
Load specified ruleset from a rulex database
Usage
#include <rulexdb.h> int rulexdb_load_ruleset(RULEXDB *rulexdb, int rule_type);
Overview
The rulexdb_load_ruleset() function preloads all data for the ruleset specified by rule_type argument that may accept one of the following values:
|
Load the |
|---|---|
|
Load the Prefix detectors ruleset. |
|
Load the |
|
Load the |
The argument rulexdb references the database to deal with.
Loaded ruleset cannot be modified.
Return value
The rulexdb_load_ruleset() function returns number of loaded records or negative error code.
Errors
RULEXDB_FAILURE-
Referenced database has not been opened, internal data structures are corrupted or some other general failure has occurred.
RULEXDB_EPARM-
Invalid arguments are specified.
RULEXDB_EACCESS-
The database cannot be initialized for loading.