From 5565791b661b57365df4d7e26ffb3228efde64a7 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 18 Mar 2010 16:04:05 +0000 Subject: [PATCH] swigall git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17039 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../languages/mod_managed/freeswitch_wrap.cxx | 36 +++++++++++++++++-- src/mod/languages/mod_managed/managed/swig.cs | 30 ++++++++++++++-- 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index ee69105646..7b0196cca1 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -8807,11 +8807,11 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_uptime() { SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_ctl(int jarg1, void * jarg2) { int jresult ; switch_session_ctl_t arg1 ; - int32_t *arg2 = (int32_t *) 0 ; + void *arg2 = (void *) 0 ; int32_t result; arg1 = (switch_session_ctl_t)jarg1; - arg2 = (int32_t *)jarg2; + arg2 = (void *)jarg2; result = (int32_t)switch_core_session_ctl(arg1,arg2); jresult = result; return jresult; @@ -9105,6 +9105,28 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_max_dtmf_duration(unsign } +SWIGEXPORT double SWIGSTDCALL CSharp_switch_core_min_idle_cpu(double jarg1) { + double jresult ; + double arg1 ; + double result; + + arg1 = (double)jarg1; + result = (double)switch_core_min_idle_cpu(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT double SWIGSTDCALL CSharp_switch_core_idle_cpu() { + double jresult ; + double result; + + result = (double)switch_core_idle_cpu(); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_default_dtmf_duration(unsigned long jarg1) { unsigned long jresult ; uint32_t arg1 ; @@ -26675,6 +26697,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_telephony_event(void * jarg1, } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_telephony_recv_event(void * jarg1, unsigned char jarg2) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_payload_t arg2 ; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (switch_payload_t)jarg2; + switch_rtp_set_telephony_recv_event(arg1,arg2); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_cng_pt(void * jarg1, unsigned char jarg2) { switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; switch_payload_t arg2 ; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 6e5c7fabc5..3582aa0f4d 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -1983,8 +1983,8 @@ public class freeswitch { return ret; } - public static int switch_core_session_ctl(switch_session_ctl_t cmd, SWIGTYPE_p_int val) { - int ret = freeswitchPINVOKE.switch_core_session_ctl((int)cmd, SWIGTYPE_p_int.getCPtr(val)); + public static int switch_core_session_ctl(switch_session_ctl_t cmd, SWIGTYPE_p_void val) { + int ret = freeswitchPINVOKE.switch_core_session_ctl((int)cmd, SWIGTYPE_p_void.getCPtr(val)); return ret; } @@ -2117,6 +2117,16 @@ public class freeswitch { return ret; } + public static double switch_core_min_idle_cpu(double new_limit) { + double ret = freeswitchPINVOKE.switch_core_min_idle_cpu(new_limit); + return ret; + } + + public static double switch_core_idle_cpu() { + double ret = freeswitchPINVOKE.switch_core_idle_cpu(); + return ret; + } + public static uint switch_core_default_dtmf_duration(uint duration) { uint ret = freeswitchPINVOKE.switch_core_default_dtmf_duration(duration); return ret; @@ -4195,6 +4205,10 @@ public class freeswitch { freeswitchPINVOKE.switch_rtp_set_telephony_event(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), te); } + public static void switch_rtp_set_telephony_recv_event(SWIGTYPE_p_switch_rtp rtp_session, byte te) { + freeswitchPINVOKE.switch_rtp_set_telephony_recv_event(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), te); + } + public static void switch_rtp_set_cng_pt(SWIGTYPE_p_switch_rtp rtp_session, byte pt) { freeswitchPINVOKE.switch_rtp_set_cng_pt(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), pt); } @@ -7202,6 +7216,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_max_dtmf_duration")] public static extern uint switch_core_max_dtmf_duration(uint jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_min_idle_cpu")] + public static extern double switch_core_min_idle_cpu(double jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_idle_cpu")] + public static extern double switch_core_idle_cpu(); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_default_dtmf_duration")] public static extern uint switch_core_default_dtmf_duration(uint jarg1); @@ -11300,6 +11320,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_telephony_event")] public static extern void switch_rtp_set_telephony_event(HandleRef jarg1, byte jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_telephony_recv_event")] + public static extern void switch_rtp_set_telephony_recv_event(HandleRef jarg1, byte jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_cng_pt")] public static extern void switch_rtp_set_cng_pt(HandleRef jarg1, byte jarg2); @@ -26684,7 +26707,8 @@ public enum switch_session_ctl_t { SCSC_SHUTDOWN_NOW, SCSC_CALIBRATE_CLOCK, SCSC_SAVE_HISTORY, - SCSC_CRASH + SCSC_CRASH, + SCSC_MIN_IDLE_CPU } }