]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
swigall
authorBrian West <brian@freeswitch.org>
Thu, 18 Mar 2010 16:04:05 +0000 (16:04 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 18 Mar 2010 16:04:05 +0000 (16:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17039 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_managed/freeswitch_wrap.cxx
src/mod/languages/mod_managed/managed/swig.cs

index ee691056465347cb69cb3f64f8a59fdac71c849d..7b0196cca1f797d1e2e9496360f46cd9d979f60c 100644 (file)
@@ -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 ;
index 6e5c7fabc509c0ea60effe60e4e3a03f8249967f..3582aa0f4d70ce8f67b530c833210eb4ae9bed0f 100644 (file)
@@ -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
 }
 
 }