changeset 1142:7ef8ab1d664f

Delay the initialization of some dictionary definitions after extensions are loaded, so that these defintions may be altered by some extension in special setup environment
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 16 May 2013 15:25:53 +0800
parents 3ae22e5dc56c
children 7b57dc5a681f
files libfdcore/core.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libfdcore/core.c	Thu May 16 15:13:55 2013 +0800
+++ b/libfdcore/core.c	Thu May 16 15:25:53 2013 +0800
@@ -221,7 +221,6 @@
 	/* Initialize some modules */
 	CHECK_FCT( fd_hooks_init()  );
 	CHECK_FCT( fd_queues_init() );
-	CHECK_FCT( fd_msg_init()    );
 	CHECK_FCT( fd_sess_start()  );
 	CHECK_FCT( fd_p_expi_init() );
 	
@@ -268,6 +267,10 @@
 	
 	free(buf);	
 		
+	/* Since some extensions might have modified the definitions from the dict_base_protocol, we only load the objects now */
+	CHECK_FCT( fd_msg_init()    );
+	
+	/* Ok, ready for next step */
 	core_state_set(CORE_CONF_READY);
 	
 	return 0;
"Welcome to our mercurial repository"