summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-08-18 00:07:39 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-08-18 00:07:39 (GMT)
commit2424c52c4f3bc44ce5f36348442cfa103e0989c2 (patch)
treef68aea488f403b234d4fcc6fd6e0f7b88a628ac8 /src/core
parent1c5a0e67186def152536d9c506e2e6c3a3a265c5 (diff)
Create some modifiers and handle match properties inside ROST.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/core.c b/src/core/core.c
index 26469ff..626d58b 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -105,17 +105,18 @@ bool load_all_core_components(bool cs)
explorer = g_content_explorer_new();
set_current_content_explorer(explorer);
+ resolver = g_content_resolver_new();
+ set_current_content_resolver(resolver);
+
#ifdef HAVE_MAGIC_SUPPORT
if (result) result = init_magic_cookie();
#endif
- resolver = g_content_resolver_new();
- set_current_content_resolver(resolver);
-
root_ns = g_scan_namespace_new(NULL);
set_rost_root_namespace(root_ns);
if (result) result = populate_main_scan_namespace(root_ns);
+ if (result) result = load_all_known_scan_token_modifiers();
if (result) result = init_segment_content_hash_table();
@@ -157,6 +158,7 @@ void unload_all_core_components(bool cs)
unload_processors_definitions();
+ unload_all_scan_token_modifiers();
set_rost_root_namespace(NULL);
#ifdef HAVE_MAGIC_SUPPORT