summaryrefslogtreecommitdiff
path: root/src/core/core.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-02-09 20:15:52 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-02-09 20:15:52 (GMT)
commit8d326041a0379b87e54be44506d544367567e89b (patch)
treea3c3555c27c30858155fbee4df0ca236f33774f8 /src/core/core.c
parentb70f428256963385a140e9eb503624106df5aa9b (diff)
Registered all the supported processors in the system code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@467 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/core/core.c')
-rw-r--r--src/core/core.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/core/core.c b/src/core/core.c
index d7e7755..36428d7 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -26,6 +26,7 @@
#include "collections.h"
#include "params.h"
+#include "processors.h"
@@ -43,15 +44,24 @@
bool load_all_basic_components(void)
{
- bool result; /* Bilan à retourner */
+ static bool result = false; /* Bilan à retourner */
- result = true;
+ /**
+ * On mémorise les passages réussis.
+ */
+ if (!result)
+ {
+ result = true;
- result &= load_main_config_parameters();
+ result &= load_main_config_parameters();
- result &= g_generic_config_read(get_main_configuration());
+ result &= g_generic_config_read(get_main_configuration());
- result &= load_hard_coded_collection_definitions();
+ result &= load_hard_coded_processors_definitions();
+
+ result &= load_hard_coded_collection_definitions();
+
+ }
return result;
@@ -74,6 +84,8 @@ void unload_all_basic_components(void)
{
unload_collection_definitions();
+ unload_processors_definitions();
+
g_generic_config_write(get_main_configuration());
unload_main_config_parameters();