mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
don't export our private functions. fix crash protection build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4803 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
+3
-11
@@ -43,9 +43,6 @@ static struct {
|
||||
switch_time_t initiated;
|
||||
switch_hash_t *global_vars;
|
||||
switch_memory_pool_t *memory_pool;
|
||||
#ifdef CRASH_PROT
|
||||
switch_hash_t *stack_table;
|
||||
#endif
|
||||
const switch_state_handler_table_t *state_handlers[SWITCH_MAX_STATE_HANDLERS];
|
||||
int state_handler_index;
|
||||
FILE *console;
|
||||
@@ -426,8 +423,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(char *console, const char **err
|
||||
|
||||
switch_core_set_globals();
|
||||
switch_core_session_init(runtime.memory_pool);
|
||||
switch_core_state_machine_init(runtime.memory_pool);
|
||||
switch_core_hash_init(&runtime.global_vars, runtime.memory_pool);
|
||||
|
||||
|
||||
|
||||
if (switch_xml_init(runtime.memory_pool, err) != SWITCH_STATUS_SUCCESS) {
|
||||
apr_terminate();
|
||||
return SWITCH_STATUS_MEMERR;
|
||||
@@ -486,12 +486,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(char *console, const char **err
|
||||
switch_rtp_init(runtime.memory_pool);
|
||||
runtime.running = 1;
|
||||
|
||||
|
||||
#ifdef CRASH_PROT
|
||||
switch_core_hash_init(&runtime.stack_table, runtime.memory_pool);
|
||||
#endif
|
||||
|
||||
|
||||
switch_scheduler_task_thread_start();
|
||||
runtime.initiated = switch_time_now();
|
||||
|
||||
@@ -673,8 +667,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
|
||||
runtime.console = NULL;
|
||||
}
|
||||
|
||||
switch_yield(1000000);
|
||||
|
||||
switch_safe_free(SWITCH_GLOBAL_dirs.base_dir);
|
||||
switch_safe_free(SWITCH_GLOBAL_dirs.mod_dir);
|
||||
switch_safe_free(SWITCH_GLOBAL_dirs.conf_dir);
|
||||
|
||||
Reference in New Issue
Block a user