From a966c2b0ef7b35d26ccd54cdc6e28b8ae2c13322 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Sun, 4 Sep 2011 11:09:23 -0500 Subject: [PATCH] vs2010 reswig --- .../mod_managed/freeswitch_wrap.2010.cxx | 12 ++++++++---- .../languages/mod_managed/managed/swig.2010.cs | 15 ++++++++------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx index 687d3e9933..8c341715ef 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx @@ -7361,23 +7361,27 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_soft_unlock(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_set_dmachine(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_set_dmachine(void * jarg1, void * jarg2, int jarg3) { switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ; + switch_digit_action_target_t arg3 ; arg1 = (switch_core_session_t *)jarg1; arg2 = (switch_ivr_dmachine_t *)jarg2; - switch_core_session_set_dmachine(arg1,arg2); + arg3 = (switch_digit_action_target_t)jarg3; + switch_core_session_set_dmachine(arg1,arg2,arg3); } -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_dmachine(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_dmachine(void * jarg1, int jarg2) { void * jresult ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_digit_action_target_t arg2 ; switch_ivr_dmachine_t *result = 0 ; arg1 = (switch_core_session_t *)jarg1; - result = (switch_ivr_dmachine_t *)switch_core_session_get_dmachine(arg1); + arg2 = (switch_digit_action_target_t)jarg2; + result = (switch_ivr_dmachine_t *)switch_core_session_get_dmachine(arg1,arg2); jresult = (void *)result; return jresult; } diff --git a/src/mod/languages/mod_managed/managed/swig.2010.cs b/src/mod/languages/mod_managed/managed/swig.2010.cs index f8d451bca6..62440a3970 100644 --- a/src/mod/languages/mod_managed/managed/swig.2010.cs +++ b/src/mod/languages/mod_managed/managed/swig.2010.cs @@ -1386,12 +1386,12 @@ public class freeswitch { freeswitchPINVOKE.switch_core_session_soft_unlock(SWIGTYPE_p_switch_core_session.getCPtr(session)); } - public static void switch_core_session_set_dmachine(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_ivr_dmachine dmachine) { - freeswitchPINVOKE.switch_core_session_set_dmachine(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine)); + public static void switch_core_session_set_dmachine(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_switch_ivr_dmachine dmachine, switch_digit_action_target_t target) { + freeswitchPINVOKE.switch_core_session_set_dmachine(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), (int)target); } - public static SWIGTYPE_p_switch_ivr_dmachine switch_core_session_get_dmachine(SWIGTYPE_p_switch_core_session session) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_dmachine(SWIGTYPE_p_switch_core_session.getCPtr(session)); + public static SWIGTYPE_p_switch_ivr_dmachine switch_core_session_get_dmachine(SWIGTYPE_p_switch_core_session session, switch_digit_action_target_t target) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_dmachine(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)target); SWIGTYPE_p_switch_ivr_dmachine ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_ivr_dmachine(cPtr, false); return ret; } @@ -7897,10 +7897,10 @@ class freeswitchPINVOKE { public static extern void switch_core_session_soft_unlock(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_dmachine")] - public static extern void switch_core_session_set_dmachine(HandleRef jarg1, HandleRef jarg2); + public static extern void switch_core_session_set_dmachine(HandleRef jarg1, HandleRef jarg2, int jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_dmachine")] - public static extern IntPtr switch_core_session_get_dmachine(HandleRef jarg1); + public static extern IntPtr switch_core_session_get_dmachine(HandleRef jarg1, int jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_target")] public static extern int switch_ivr_dmachine_get_target(HandleRef jarg1); @@ -24562,7 +24562,8 @@ namespace FreeSWITCH.Native { public enum switch_digit_action_target_t { DIGIT_TARGET_SELF, - DIGIT_TARGET_PEER + DIGIT_TARGET_PEER, + DIGIT_TARGET_BOTH } }