Add switch_core_init_and_modload to core, from switch.c. Add additional shutdown functionality to switch_core_destroy. move around more code in switch.c and fix freeswitch -stop on windows.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2336 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-08-19 18:51:22 +00:00
parent 9ac299089d
commit c15da98579
3 changed files with 124 additions and 113 deletions
+8
View File
@@ -116,6 +116,14 @@ struct switch_core_runtime;
*/
SWITCH_DECLARE(switch_status_t) switch_core_init(char *console, const char **err);
/*!
\brief Initilize the core and load modules
\param console optional FILE stream for output
\param err a pointer to set any errors to
\note to be called at application startup instead of switch_core_init. Includes module loading.
*/
SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(char *console, const char **err);
/*!
\brief Set/Get Session Limit
\param new_limit new value (if > 0)