vs2010 reswig

This commit is contained in:
Jeff Lenk 2011-09-04 11:09:23 -05:00
parent fba22dc7e9
commit a966c2b0ef
2 changed files with 16 additions and 11 deletions

View File

@ -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_core_session_t *arg1 = (switch_core_session_t *) 0 ;
switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ; switch_ivr_dmachine_t *arg2 = (switch_ivr_dmachine_t *) 0 ;
switch_digit_action_target_t arg3 ;
arg1 = (switch_core_session_t *)jarg1; arg1 = (switch_core_session_t *)jarg1;
arg2 = (switch_ivr_dmachine_t *)jarg2; 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 ; void * jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
switch_digit_action_target_t arg2 ;
switch_ivr_dmachine_t *result = 0 ; switch_ivr_dmachine_t *result = 0 ;
arg1 = (switch_core_session_t *)jarg1; 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; jresult = (void *)result;
return jresult; return jresult;
} }

View File

@ -1386,12 +1386,12 @@ public class freeswitch {
freeswitchPINVOKE.switch_core_session_soft_unlock(SWIGTYPE_p_switch_core_session.getCPtr(session)); 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) { 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)); 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) { 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)); 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); SWIGTYPE_p_switch_ivr_dmachine ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_ivr_dmachine(cPtr, false);
return ret; return ret;
} }
@ -7897,10 +7897,10 @@ class freeswitchPINVOKE {
public static extern void switch_core_session_soft_unlock(HandleRef jarg1); public static extern void switch_core_session_soft_unlock(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_dmachine")] [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")] [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")] [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_target")]
public static extern int switch_ivr_dmachine_get_target(HandleRef jarg1); 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 { public enum switch_digit_action_target_t {
DIGIT_TARGET_SELF, DIGIT_TARGET_SELF,
DIGIT_TARGET_PEER DIGIT_TARGET_PEER,
DIGIT_TARGET_BOTH
} }
} }