From f3206e5ff1745e4ced8efb8990b74eceb17d7a3e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 4 Feb 2013 11:36:56 -0600 Subject: [PATCH] reswig and fix header file --- src/include/switch_cpp.h | 1 + .../languages/mod_managed/freeswitch_wrap.cxx | 32 +++++++++++++++++-- src/mod/languages/mod_managed/managed/swig.cs | 14 ++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/src/include/switch_cpp.h b/src/include/switch_cpp.h index d38824b333..73c0925828 100644 --- a/src/include/switch_cpp.h +++ b/src/include/switch_cpp.h @@ -286,6 +286,7 @@ SWITCH_DECLARE(bool) email(char *to, char *from, char *headers = NULL, char *bod SWITCH_DECLARE(int) speak(char *text); SWITCH_DECLARE(void) set_tts_parms(char *tts_name, char *voice_name); + SWITCH_DECLARE(void) set_tts_params(char *tts_name, char *voice_name); /** * For timeout milliseconds, call the dtmf function set previously diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index b3754cc6b3..22a103ea3e 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -12674,14 +12674,14 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_event_callback(voi int jresult ; switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; char *arg2 = (char *) 0 ; - switch_db_event_callback_func_t arg3 = (switch_db_event_callback_func_t) 0 ; + switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; void *arg4 = (void *) 0 ; char **arg5 = (char **) 0 ; switch_status_t result; arg1 = (switch_cache_db_handle_t *)jarg1; arg2 = (char *)jarg2; - arg3 = (switch_db_event_callback_func_t)jarg3; + arg3 = (switch_core_db_event_callback_func_t)jarg3; arg4 = (void *)jarg4; arg5 = (char **)jarg5; result = (switch_status_t)switch_cache_db_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4,arg5); @@ -12690,6 +12690,34 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_event_callback(voi } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manger_execute_sql_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ; + void *arg4 = (void *) 0 ; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_callback_func_t)jarg3; + arg4 = (void *)jarg4; + switch_sql_queue_manger_execute_sql_callback(arg1,(char const *)arg2,arg3,arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manger_execute_sql_event_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) { + switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ; + char *arg2 = (char *) 0 ; + switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; + void *arg4 = (void *) 0 ; + + arg1 = (switch_sql_queue_manager_t *)jarg1; + arg2 = (char *)jarg2; + arg3 = (switch_core_db_event_callback_func_t)jarg3; + arg4 = (void *)jarg4; + switch_sql_queue_manger_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4); +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_switch_fork() { void * jresult ; pid_t result; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index cced7b24ba..0344efa56b 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -2901,6 +2901,14 @@ public class freeswitch { return ret; } + public static void switch_sql_queue_manger_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata) { + freeswitchPINVOKE.switch_sql_queue_manger_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata)); + } + + public static void switch_sql_queue_manger_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_void pdata) { + freeswitchPINVOKE.switch_sql_queue_manger_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata)); + } + public static SWIGTYPE_p_pid_t switch_fork() { SWIGTYPE_p_pid_t ret = new SWIGTYPE_p_pid_t(freeswitchPINVOKE.switch_fork(), true); return ret; @@ -9682,6 +9690,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_event_callback")] public static extern int switch_cache_db_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5); + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manger_execute_sql_callback")] + public static extern void switch_sql_queue_manger_execute_sql_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manger_execute_sql_event_callback")] + public static extern void switch_sql_queue_manger_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_fork")] public static extern IntPtr switch_fork();