From: Michael Jerris Date: Mon, 23 Feb 2009 16:59:35 +0000 (+0000) Subject: swigall X-Git-Tag: v1.0.4~1860 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccb556ba484a1d2c46da738f7cf8235952cb8347;p=thirdparty%2Ffreeswitch.git swigall git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12245 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 9a41c50f92..9b8d185094 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -1532,6 +1532,17 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DEFAULT_FILE_BUFFER_LEN_get() { } +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DTMF_LOG_LEN_get() { + int jresult ; + int result; + + result = (int) 1000; + + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_digit_set(void * jarg1, char jarg2) { switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ; char arg2 ; @@ -5491,17 +5502,19 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_pool(void * jarg1) } -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_uuid(void * jarg1, void * jarg2, char * jarg3) { +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_uuid(void * jarg1, int jarg2, void * jarg3, char * jarg4) { void * jresult ; switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ; - switch_memory_pool_t **arg2 = (switch_memory_pool_t **) 0 ; - char *arg3 = (char *) 0 ; + switch_call_direction_t arg2 ; + switch_memory_pool_t **arg3 = (switch_memory_pool_t **) 0 ; + char *arg4 = (char *) 0 ; switch_core_session_t *result = 0 ; arg1 = (switch_endpoint_interface_t *)jarg1; - arg2 = (switch_memory_pool_t **)jarg2; - arg3 = (char *)jarg3; - result = (switch_core_session_t *)switch_core_session_request_uuid(arg1,arg2,(char const *)arg3); + arg2 = (switch_call_direction_t)jarg2; + arg3 = (switch_memory_pool_t **)jarg3; + arg4 = (char *)jarg4; + result = (switch_core_session_t *)switch_core_session_request_uuid(arg1,arg2,arg3,(char const *)arg4); jresult = (void *)result; return jresult; } @@ -5567,15 +5580,17 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_id() { } -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_by_name(char * jarg1, void * jarg2) { +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_by_name(char * jarg1, int jarg2, void * jarg3) { void * jresult ; char *arg1 = (char *) 0 ; - switch_memory_pool_t **arg2 = (switch_memory_pool_t **) 0 ; + switch_call_direction_t arg2 ; + switch_memory_pool_t **arg3 = (switch_memory_pool_t **) 0 ; switch_core_session_t *result = 0 ; arg1 = (char *)jarg1; - arg2 = (switch_memory_pool_t **)jarg2; - result = (switch_core_session_t *)switch_core_session_request_by_name((char const *)arg1,arg2); + arg2 = (switch_call_direction_t)jarg2; + arg3 = (switch_memory_pool_t **)jarg3; + result = (switch_core_session_t *)switch_core_session_request_by_name((char const *)arg1,arg2,arg3); jresult = (void *)result; return jresult; } @@ -18013,15 +18028,17 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_timetable(void * jarg1) } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_alloc(void * jarg1, void * jarg2) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_alloc(void * jarg1, int jarg2, void * jarg3) { int jresult ; switch_channel_t **arg1 = (switch_channel_t **) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; + switch_call_direction_t arg2 ; + switch_memory_pool_t *arg3 = (switch_memory_pool_t *) 0 ; switch_status_t result; arg1 = (switch_channel_t **)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - result = (switch_status_t)switch_channel_alloc(arg1,arg2); + arg2 = (switch_call_direction_t)jarg2; + arg3 = (switch_memory_pool_t *)jarg3; + result = (switch_status_t)switch_channel_alloc(arg1,arg2,arg3); jresult = result; return jresult; } diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index f676ffd8f3..ba01d92d33 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -1100,8 +1100,8 @@ public class freeswitch { return ret; } - public static SWIGTYPE_p_switch_core_session switch_core_session_request_uuid(switch_endpoint_interface endpoint_interface, SWIGTYPE_p_p_apr_pool_t pool, string use_uuid) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_uuid(switch_endpoint_interface.getCPtr(endpoint_interface), SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), use_uuid); + public static SWIGTYPE_p_switch_core_session switch_core_session_request_uuid(switch_endpoint_interface endpoint_interface, switch_call_direction_t direction, SWIGTYPE_p_p_apr_pool_t pool, string use_uuid) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_uuid(switch_endpoint_interface.getCPtr(endpoint_interface), (int)direction, SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), use_uuid); SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); return ret; } @@ -1130,8 +1130,8 @@ public class freeswitch { return ret; } - public static SWIGTYPE_p_switch_core_session switch_core_session_request_by_name(string endpoint_name, SWIGTYPE_p_p_apr_pool_t pool) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_by_name(endpoint_name, SWIGTYPE_p_p_apr_pool_t.getCPtr(pool)); + public static SWIGTYPE_p_switch_core_session switch_core_session_request_by_name(string endpoint_name, switch_call_direction_t direction, SWIGTYPE_p_p_apr_pool_t pool) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_by_name(endpoint_name, (int)direction, SWIGTYPE_p_p_apr_pool_t.getCPtr(pool)); SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false); return ret; } @@ -2365,8 +2365,8 @@ public class freeswitch { return ret; } - public static switch_status_t switch_channel_alloc(SWIGTYPE_p_p_switch_channel channel, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_alloc(SWIGTYPE_p_p_switch_channel.getCPtr(channel), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + public static switch_status_t switch_channel_alloc(SWIGTYPE_p_p_switch_channel channel, switch_call_direction_t direction, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_alloc(SWIGTYPE_p_p_switch_channel.getCPtr(channel), (int)direction, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); return ret; } @@ -4178,6 +4178,7 @@ public class freeswitch { public static readonly string SWITCH_UUID_BRIDGE = freeswitchPINVOKE.SWITCH_UUID_BRIDGE_get(); public static readonly int SWITCH_BITS_PER_BYTE = freeswitchPINVOKE.SWITCH_BITS_PER_BYTE_get(); public static readonly int SWITCH_DEFAULT_FILE_BUFFER_LEN = freeswitchPINVOKE.SWITCH_DEFAULT_FILE_BUFFER_LEN_get(); + public static readonly int SWITCH_DTMF_LOG_LEN = freeswitchPINVOKE.SWITCH_DTMF_LOG_LEN_get(); public static readonly int SWITCH_MAX_STACKS = freeswitchPINVOKE.SWITCH_MAX_STACKS_get(); public static readonly int SWITCH_THREAD_STACKSIZE = freeswitchPINVOKE.SWITCH_THREAD_STACKSIZE_get(); public static readonly int SWITCH_SYSTEM_THREAD_STACKSIZE = freeswitchPINVOKE.SWITCH_SYSTEM_THREAD_STACKSIZE_get(); @@ -4766,6 +4767,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_FILE_BUFFER_LEN_get")] public static extern int SWITCH_DEFAULT_FILE_BUFFER_LEN_get(); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DTMF_LOG_LEN_get")] + public static extern int SWITCH_DTMF_LOG_LEN_get(); + [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_digit_set")] public static extern void switch_dtmf_t_digit_set(HandleRef jarg1, char jarg2); @@ -5724,7 +5728,7 @@ class freeswitchPINVOKE { public static extern IntPtr switch_core_session_get_pool(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_uuid")] - public static extern IntPtr switch_core_session_request_uuid(HandleRef jarg1, HandleRef jarg2, string jarg3); + public static extern IntPtr switch_core_session_request_uuid(HandleRef jarg1, int jarg2, HandleRef jarg3, string jarg4); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_uuid")] public static extern int switch_core_session_set_uuid(HandleRef jarg1, string jarg2); @@ -5742,7 +5746,7 @@ class freeswitchPINVOKE { public static extern IntPtr switch_core_session_id(); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_by_name")] - public static extern IntPtr switch_core_session_request_by_name(string jarg1, HandleRef jarg2); + public static extern IntPtr switch_core_session_request_by_name(string jarg1, int jarg2, HandleRef jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_thread_launch")] public static extern int switch_core_session_thread_launch(HandleRef jarg1); @@ -8739,7 +8743,7 @@ class freeswitchPINVOKE { public static extern IntPtr switch_channel_get_timetable(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_alloc")] - public static extern int switch_channel_alloc(HandleRef jarg1, HandleRef jarg2); + public static extern int switch_channel_alloc(HandleRef jarg1, int jarg2, HandleRef jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_init")] public static extern int switch_channel_init(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4); @@ -16661,6 +16665,22 @@ public enum switch_call_cause_t { namespace FreeSWITCH.Native { +public enum switch_call_direction_t { + SWITCH_CALL_DIRECTION_INBOUND, + SWITCH_CALL_DIRECTION_OUTBOUND +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + using System; using System.Runtime.InteropServices;