Browse Source

[Minor] Allow to register idempotent filters from Lua

tags/1.7.0
Vsevolod Stakhov 6 years ago
parent
commit
1c04823428
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/lua/lua_config.c

+ 6
- 0
src/lua/lua_config.c View File

@@ -1405,6 +1405,9 @@ lua_parse_symbol_flags (const gchar *str)
if (strstr (str, "nostat") != NULL) {
ret |= SYMBOL_TYPE_NOSTAT;
}
if (strstr (str, "idempotent") != NULL) {
ret |= SYMBOL_TYPE_IDEMPOTENT;
}
}

return ret;
@@ -1436,6 +1439,9 @@ lua_parse_symbol_type (const gchar *str)
ret = SYMBOL_TYPE_PREFILTER | SYMBOL_TYPE_GHOST;
} else if (g_ascii_strcasecmp (str, "postfilter") == 0) {
ret = SYMBOL_TYPE_POSTFILTER | SYMBOL_TYPE_GHOST;
} else if (g_ascii_strcasecmp (str, "idempotent") == 0) {
ret = SYMBOL_TYPE_POSTFILTER | SYMBOL_TYPE_GHOST |
SYMBOL_TYPE_IDEMPOTENT;
} else {
gint fl = 0;


Loading…
Cancel
Save