From 790c69cb48818e3f9d6feabed3a8840348d339b2 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Thu, 23 Jan 2014 22:20:43 -0600 Subject: [PATCH] vs2010 reswig --- .../mod_managed/freeswitch_wrap.2010.cxx | 100 ++++++++++++++++-- .../mod_managed/managed/swig.2010.cs | 75 ++++++++++++- 2 files changed, 163 insertions(+), 12 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx index 8014491d77..e4fb4acb50 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx @@ -8996,19 +8996,21 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_set_pre_buffer_framecoun } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_new(unsigned short jarg1, unsigned short jarg2, unsigned long jarg3, void * jarg4) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_port_allocator_new(char * jarg1, unsigned short jarg2, unsigned short jarg3, unsigned long jarg4, void * jarg5) { int jresult ; - switch_port_t arg1 ; + char *arg1 = (char *) 0 ; switch_port_t arg2 ; - switch_port_flag_t arg3 ; - switch_core_port_allocator_t **arg4 = (switch_core_port_allocator_t **) 0 ; + switch_port_t arg3 ; + switch_port_flag_t arg4 ; + switch_core_port_allocator_t **arg5 = (switch_core_port_allocator_t **) 0 ; switch_status_t result; - arg1 = (switch_port_t)jarg1; + arg1 = (char *)jarg1; arg2 = (switch_port_t)jarg2; - arg3 = (switch_port_flag_t)jarg3; - arg4 = (switch_core_port_allocator_t **)jarg4; - result = (switch_status_t)switch_core_port_allocator_new(arg1,arg2,arg3,arg4); + arg3 = (switch_port_t)jarg3; + arg4 = (switch_port_flag_t)jarg4; + arg5 = (switch_core_port_allocator_t **)jarg5; + result = (switch_status_t)switch_core_port_allocator_new((char const *)arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } @@ -14217,6 +14219,76 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_debug_pool(void * jarg1) } +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_major() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_major(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_minor() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_minor(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_micro() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_micro(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_revision() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_revision(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_revision_human() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_revision_human(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_full() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_full(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_full_human() { + char * jresult ; + char *result = 0 ; + + result = (char *)switch_version_full_human(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_module_name_set(void * jarg1, char * jarg2) { switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ; char *arg2 = (char *) 0 ; @@ -16065,6 +16137,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_true(char * jarg1) { } +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_true_byte(char * jarg1) { + unsigned char jresult ; + char *arg1 = (char *) 0 ; + switch_byte_t result; + + arg1 = (char *)jarg1; + result = (switch_byte_t)switch_true_byte((char const *)arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_false(char * jarg1) { int jresult ; char *arg1 = (char *) 0 ; diff --git a/src/mod/languages/mod_managed/managed/swig.2010.cs b/src/mod/languages/mod_managed/managed/swig.2010.cs index 631a7fcf8f..2633e9cbfc 100644 --- a/src/mod/languages/mod_managed/managed/swig.2010.cs +++ b/src/mod/languages/mod_managed/managed/swig.2010.cs @@ -1386,8 +1386,8 @@ public class freeswitch { return ret; } - public static switch_status_t switch_core_port_allocator_new(ushort start, ushort end, uint flags, SWIGTYPE_p_p_switch_core_port_allocator new_allocator) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_port_allocator_new(start, end, flags, SWIGTYPE_p_p_switch_core_port_allocator.getCPtr(new_allocator)); + public static switch_status_t switch_core_port_allocator_new(string ip, ushort start, ushort end, uint flags, SWIGTYPE_p_p_switch_core_port_allocator new_allocator) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_port_allocator_new(ip, start, end, flags, SWIGTYPE_p_p_switch_core_port_allocator.getCPtr(new_allocator)); return ret; } @@ -3164,6 +3164,41 @@ public class freeswitch { freeswitchPINVOKE.switch_core_session_debug_pool(switch_stream_handle.getCPtr(stream)); } + public static string switch_version_major() { + string ret = freeswitchPINVOKE.switch_version_major(); + return ret; + } + + public static string switch_version_minor() { + string ret = freeswitchPINVOKE.switch_version_minor(); + return ret; + } + + public static string switch_version_micro() { + string ret = freeswitchPINVOKE.switch_version_micro(); + return ret; + } + + public static string switch_version_revision() { + string ret = freeswitchPINVOKE.switch_version_revision(); + return ret; + } + + public static string switch_version_revision_human() { + string ret = freeswitchPINVOKE.switch_version_revision_human(); + return ret; + } + + public static string switch_version_full() { + string ret = freeswitchPINVOKE.switch_version_full(); + return ret; + } + + public static string switch_version_full_human() { + string ret = freeswitchPINVOKE.switch_version_full_human(); + return ret; + } + public static switch_status_t switch_loadable_module_init(switch_bool_t autoload) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_init((int)autoload); return ret; @@ -3638,6 +3673,11 @@ public class freeswitch { return ret; } + public static byte switch_true_byte(string expr) { + byte ret = freeswitchPINVOKE.switch_true_byte(expr); + return ret; + } + public static int switch_false(string expr) { int ret = freeswitchPINVOKE.switch_false(expr); return ret; @@ -9546,7 +9586,7 @@ class freeswitchPINVOKE { public static extern int switch_core_media_bug_set_pre_buffer_framecount(HandleRef jarg1, uint jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_new")] - public static extern int switch_core_port_allocator_new(ushort jarg1, ushort jarg2, uint jarg3, HandleRef jarg4); + public static extern int switch_core_port_allocator_new(string jarg1, ushort jarg2, ushort jarg3, uint jarg4, HandleRef jarg5); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_port_allocator_request_port")] public static extern int switch_core_port_allocator_request_port(HandleRef jarg1, HandleRef jarg2); @@ -10730,6 +10770,27 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_debug_pool")] public static extern void switch_core_session_debug_pool(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_major")] + public static extern string switch_version_major(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_minor")] + public static extern string switch_version_minor(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_micro")] + public static extern string switch_version_micro(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_revision")] + public static extern string switch_version_revision(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_revision_human")] + public static extern string switch_version_revision_human(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_full")] + public static extern string switch_version_full(); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_version_full_human")] + public static extern string switch_version_full_human(); + [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_module_name_set")] public static extern void switch_loadable_module_interface_module_name_set(HandleRef jarg1, string jarg2); @@ -11159,6 +11220,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_true")] public static extern int switch_true(string jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_true_byte")] + public static extern byte switch_true_byte(string jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_false")] public static extern int switch_false(string jarg1); @@ -34867,7 +34931,9 @@ namespace FreeSWITCH.Native { [System.Flags] public enum switch_port_flag_enum_t { SPF_NONE = 0, SPF_ODD = (1 << 0), - SPF_EVEN = (1 << 1) + SPF_EVEN = (1 << 1), + SPF_ROBUST_TCP = (1 << 2), + SPF_ROBUST_UDP = (1 << 3) } } @@ -35279,6 +35345,7 @@ namespace FreeSWITCH.Native { public enum switch_rtp_flag_t { SWITCH_RTP_FLAG_NOBLOCK = 0, + SWITCH_RTP_FLAG_DTMF_ON, SWITCH_RTP_FLAG_IO, SWITCH_RTP_FLAG_USE_TIMER, SWITCH_RTP_FLAG_RTCP_PASSTHRU,