diff options
| author | jvoisin | 2022-12-07 21:02:22 +0100 |
|---|---|---|
| committer | jvoisin | 2022-12-08 20:55:46 +0100 |
| commit | ccfaf3e4713b1878241f1235a6fcb66ad0582d47 (patch) | |
| tree | 97dcd84aed33b1d98095d0cf3f467e9dfb975f0c /src/sp_config_keywords.c | |
| parent | 5966fefb9a291bd0eecd0fff9396b2b6cea4a62e (diff) | |
Add unserialize_noclass
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index fa26635..ff834dd 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -74,6 +74,24 @@ SP_PARSEKW_FN(parse_log_media) { | |||
| 74 | return SP_PARSER_ERROR; | 74 | return SP_PARSER_ERROR; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | SP_PARSE_FN(parse_unserialize_noclass) { | ||
| 78 | bool enable = false, disable = false; | ||
| 79 | sp_config_unserialize_noclass *cfg = (sp_config_unserialize_noclass*)retval; | ||
| 80 | |||
| 81 | sp_config_keyword config_keywords[] = { | ||
| 82 | {parse_empty, SP_TOKEN_ENABLE, &(enable)}, | ||
| 83 | {parse_empty, SP_TOKEN_DISABLE, &(disable)}, | ||
| 84 | {0, 0, 0}}; | ||
| 85 | |||
| 86 | SP_PROCESS_CONFIG_KEYWORDS_ERR(); | ||
| 87 | |||
| 88 | SP_SET_ENABLE_DISABLE(enable, disable, cfg->enable); | ||
| 89 | |||
| 90 | cfg->textual_representation = sp_get_textual_representation(parsed_rule); | ||
| 91 | |||
| 92 | return SP_PARSER_STOP; | ||
| 93 | } | ||
| 94 | |||
| 77 | SP_PARSE_FN(parse_unserialize) { | 95 | SP_PARSE_FN(parse_unserialize) { |
| 78 | bool enable = false, disable = false; | 96 | bool enable = false, disable = false; |
| 79 | sp_config_unserialize *cfg = (sp_config_unserialize*)retval; | 97 | sp_config_unserialize *cfg = (sp_config_unserialize*)retval; |
