From 812a275f47c3abc256ab01e8414092d215ac5325 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 24 Aug 2010 12:02:01 -0500 Subject: [PATCH] swigall --- .../languages/mod_managed/freeswitch_wrap.cxx | 88 +++++++++++++++---- src/mod/languages/mod_managed/managed/swig.cs | 59 ++++++++++--- 2 files changed, 115 insertions(+), 32 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index df62c72038..d465083638 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -1466,6 +1466,17 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_BRIDGE_VARIABLE_get() { } +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_LAST_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *) "last_bridge_to"; + + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_SIGNAL_BRIDGE_VARIABLE_get() { char * jresult ; char *result = 0 ; @@ -11329,6 +11340,18 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_spaces(char * jarg1) { } +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_whitespace(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_strip_whitespace((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT char * SWIGSTDCALL CSharp_switch_strip_commas(char * jarg1, char * jarg2, void * jarg3) { char * jresult ; char *arg1 = (char *) 0 ; @@ -12604,6 +12627,29 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_next_get(void * jarg1 } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_direction_set(void * jarg1, int jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_call_direction_t arg2 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (switch_call_direction_t)jarg2; + if (arg1) (arg1)->direction = arg2; + +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_profile_direction_get(void * jarg1) { + int jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + switch_call_direction_t result; + + arg1 = (switch_caller_profile *)jarg1; + result = (switch_call_direction_t) ((arg1)->direction); + jresult = result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_profile() { void * jresult ; switch_caller_profile *result = 0 ; @@ -22836,35 +22882,41 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_private_flag(void * jarg1, } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_app_flag(void * jarg1, unsigned long jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - uint32_t arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { + char *arg1 = (char *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + uint32_t arg3 ; - arg1 = (switch_channel_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_channel_set_app_flag(arg1,arg2); + arg1 = (char *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (uint32_t)jarg3; + switch_channel_set_app_flag_key((char const *)arg1,arg2,arg3); } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_app_flag(void * jarg1, unsigned long jarg2) { - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - uint32_t arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_clear_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { + char *arg1 = (char *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + uint32_t arg3 ; - arg1 = (switch_channel_t *)jarg1; - arg2 = (uint32_t)jarg2; - switch_channel_clear_app_flag(arg1,arg2); + arg1 = (char *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (uint32_t)jarg3; + switch_channel_clear_app_flag_key((char const *)arg1,arg2,arg3); } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_app_flag(void * jarg1, unsigned long jarg2) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_app_flag_key(char * jarg1, void * jarg2, unsigned long jarg3) { int jresult ; - switch_channel_t *arg1 = (switch_channel_t *) 0 ; - uint32_t arg2 ; + char *arg1 = (char *) 0 ; + switch_channel_t *arg2 = (switch_channel_t *) 0 ; + uint32_t arg3 ; int result; - arg1 = (switch_channel_t *)jarg1; - arg2 = (uint32_t)jarg2; - result = (int)switch_channel_test_app_flag(arg1,arg2); + arg1 = (char *)jarg1; + arg2 = (switch_channel_t *)jarg2; + arg3 = (uint32_t)jarg3; + result = (int)switch_channel_test_app_flag_key((char const *)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 3faa01944d..41f224c796 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -2628,6 +2628,11 @@ public class freeswitch { return ret; } + public static string switch_strip_whitespace(string str) { + string ret = freeswitchPINVOKE.switch_strip_whitespace(str); + return ret; + } + public static string switch_strip_commas(string arg0, string arg1, SWIGTYPE_p_switch_size_t len) { string ret = freeswitchPINVOKE.switch_strip_commas(arg0, arg1, SWIGTYPE_p_switch_size_t.getCPtr(len)); if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); @@ -3236,16 +3241,16 @@ public class freeswitch { return ret; } - public static void switch_channel_set_app_flag(SWIGTYPE_p_switch_channel channel, uint flags) { - freeswitchPINVOKE.switch_channel_set_app_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + public static void switch_channel_set_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { + freeswitchPINVOKE.switch_channel_set_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); } - public static void switch_channel_clear_app_flag(SWIGTYPE_p_switch_channel channel, uint flags) { - freeswitchPINVOKE.switch_channel_clear_app_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + public static void switch_channel_clear_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { + freeswitchPINVOKE.switch_channel_clear_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); } - public static int switch_channel_test_app_flag(SWIGTYPE_p_switch_channel channel, uint flags) { - int ret = freeswitchPINVOKE.switch_channel_test_app_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), flags); + public static int switch_channel_test_app_flag_key(string app, SWIGTYPE_p_switch_channel channel, uint flags) { + int ret = freeswitchPINVOKE.switch_channel_test_app_flag_key(app, SWIGTYPE_p_switch_channel.getCPtr(channel), flags); return ret; } @@ -4980,6 +4985,7 @@ public class freeswitch { public static readonly string SWITCH_L_SDP_VARIABLE = freeswitchPINVOKE.SWITCH_L_SDP_VARIABLE_get(); public static readonly string SWITCH_B_SDP_VARIABLE = freeswitchPINVOKE.SWITCH_B_SDP_VARIABLE_get(); public static readonly string SWITCH_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_LAST_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_LAST_BRIDGE_VARIABLE_get(); public static readonly string SWITCH_SIGNAL_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_SIGNAL_BRIDGE_VARIABLE_get(); public static readonly string SWITCH_SIGNAL_BOND_VARIABLE = freeswitchPINVOKE.SWITCH_SIGNAL_BOND_VARIABLE_get(); public static readonly string SWITCH_ORIGINATOR_VARIABLE = freeswitchPINVOKE.SWITCH_ORIGINATOR_VARIABLE_get(); @@ -5572,6 +5578,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_BRIDGE_VARIABLE_get")] public static extern string SWITCH_BRIDGE_VARIABLE_get(); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_LAST_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_LAST_BRIDGE_VARIABLE_get(); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_SIGNAL_BRIDGE_VARIABLE_get")] public static extern string SWITCH_SIGNAL_BRIDGE_VARIABLE_get(); @@ -7891,6 +7900,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_spaces")] public static extern string switch_strip_spaces(string jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_whitespace")] + public static extern string switch_strip_whitespace(string jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_strip_commas")] public static extern string switch_strip_commas(string jarg1, string jarg2, HandleRef jarg3); @@ -8164,6 +8176,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_next_get")] public static extern IntPtr switch_caller_profile_next_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_direction_set")] + public static extern void switch_caller_profile_direction_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_direction_get")] + public static extern int switch_caller_profile_direction_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_profile")] public static extern IntPtr new_switch_caller_profile(); @@ -10699,14 +10717,14 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_private_flag")] public static extern int switch_channel_test_private_flag(HandleRef jarg1, uint jarg2); - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_app_flag")] - public static extern void switch_channel_set_app_flag(HandleRef jarg1, uint jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_app_flag_key")] + public static extern void switch_channel_set_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_app_flag")] - public static extern void switch_channel_clear_app_flag(HandleRef jarg1, uint jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_app_flag_key")] + public static extern void switch_channel_clear_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_app_flag")] - public static extern int switch_channel_test_app_flag(HandleRef jarg1, uint jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_app_flag_key")] + public static extern int switch_channel_test_app_flag_key(string jarg1, HandleRef jarg2, uint jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_hangup_time")] public static extern void switch_channel_set_hangup_time(HandleRef jarg1); @@ -20185,6 +20203,16 @@ public class switch_caller_profile : IDisposable { } } + public switch_call_direction_t direction { + set { + freeswitchPINVOKE.switch_caller_profile_direction_set(swigCPtr, (int)value); + } + get { + switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_caller_profile_direction_get(swigCPtr); + return ret; + } + } + public switch_caller_profile() : this(freeswitchPINVOKE.new_switch_caller_profile(), true) { } @@ -21749,7 +21777,9 @@ namespace FreeSWITCH.Native { SCF_CALIBRATE_CLOCK = (1 << 8), SCF_USE_HEAVY_TIMING = (1 << 9), SCF_USE_CLOCK_RT = (1 << 10), - SCF_VERBOSE_EVENTS = (1 << 11) + SCF_VERBOSE_EVENTS = (1 << 11), + SCF_USE_WIN32_MONOTONIC = (1 << 12), + SCF_AUTO_SCHEMAS = (1 << 13) } } @@ -25528,7 +25558,8 @@ namespace FreeSWITCH.Native { [System.Flags] public enum switch_io_flag_enum_t { SWITCH_IO_FLAG_NONE = 0, - SWITCH_IO_FLAG_NOBLOCK = (1 << 0) + SWITCH_IO_FLAG_NOBLOCK = (1 << 0), + SWITCH_IO_FLAG_SINGLE_READ = (1 << 1) } }