diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 79496b0b54..44d4cd189b 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -7401,14 +7401,25 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_system(char * jarg1, int jarg2) { } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cond_yield(unsigned long jarg1) { - uint32_t arg1 ; +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cond_yield(void * jarg1) { + switch_interval_time_t arg1 ; + switch_interval_time_t *argp1 ; - arg1 = (uint32_t)jarg1; + argp1 = (switch_interval_time_t *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_interval_time_t", 0); + return ; + } + arg1 = *argp1; switch_cond_yield(arg1); } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_cond_next() { + switch_cond_next(); +} + + SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CMD_CHUNK_LEN_get() { int jresult ; int result; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index fd1590a52b..bec0b58e0e 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -1913,8 +1913,13 @@ public class freeswitch { return ret; } - public static void switch_cond_yield(uint ms) { - freeswitchPINVOKE.switch_cond_yield(ms); + public static void switch_cond_yield(SWIGTYPE_p_switch_interval_time_t t) { + freeswitchPINVOKE.switch_cond_yield(SWIGTYPE_p_switch_interval_time_t.getCPtr(t)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void switch_cond_next() { + freeswitchPINVOKE.switch_cond_next(); } public static void switch_console_loop() { @@ -5918,7 +5923,10 @@ class freeswitchPINVOKE { public static extern int switch_system(string jarg1, int jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_cond_yield")] - public static extern void switch_cond_yield(uint jarg1); + public static extern void switch_cond_yield(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_cond_next")] + public static extern void switch_cond_next(); [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CMD_CHUNK_LEN_get")] public static extern int SWITCH_CMD_CHUNK_LEN_get(); @@ -13990,6 +13998,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_switch_interval_time_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_interval_time_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_interval_time_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_interval_time_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * 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; + public class SWIGTYPE_p_switch_ivr_action_t { private HandleRef swigCPtr;