From 53967643e5d505ce86caa3c27009f97c14a935a0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sun, 5 Mar 2006 20:45:40 +0000 Subject: [PATCH] lame git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@749 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_perl/switch_swig.c | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/mod/languages/mod_perl/switch_swig.c b/src/mod/languages/mod_perl/switch_swig.c index f57c73a9ec..4ed7936391 100644 --- a/src/mod/languages/mod_perl/switch_swig.c +++ b/src/mod/languages/mod_perl/switch_swig.c @@ -1,5 +1,34 @@ #include + +void fs_core_set_globals(void) +{ + switch_core_set_globals(); +} + +int fs_core_init(char *path) +{ + switch_status status; + + if (switch_strlen_zero(path)) { + path = NULL; + } + + status = switch_core_init(path); + + return status == SWITCH_STATUS_SUCCESS ? 1 : 0; +} + +int fs_loadable_module_init(void) +{ + return switch_loadable_module_init() == SWITCH_STATUS_SUCCESS ? 1 : 0; +} + +void fs_console_loop(void) +{ + switch_console_loop(); +} + void fs_console_log(char *msg) { switch_console_printf(SWITCH_CHANNEL_CONSOLE, msg);