]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
swigall
authorAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 21:18:26 +0000 (21:18 +0000)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 21:19:24 +0000 (01:19 +0400)
src/mod/languages/mod_managed/freeswitch_wrap.cxx
src/mod/languages/mod_managed/managed/swig.cs

index 8377080f6f4b015b4b47353a54bdd7829dad7fa5..ae2c89458426dcd8ba20de3ee094162316ae438f 100644 (file)
@@ -21506,17 +21506,17 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_util_quote_shell_a
 }
 
 
-SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_calc_bitrate___(int jarg1, int jarg2, int jarg3, double jarg4) {
+SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_calc_bitrate___(int jarg1, int jarg2, float jarg3, double jarg4) {
   int jresult ;
   int arg1 ;
   int arg2 ;
-  int arg3 ;
+  float arg3 ;
   double arg4 ;
   int32_t result;
   
   arg1 = (int)jarg1; 
   arg2 = (int)jarg2; 
-  arg3 = (int)jarg3; 
+  arg3 = (float)jarg3; 
   arg4 = (double)jarg4; 
   result = (int32_t)switch_calc_bitrate(arg1,arg2,arg3,arg4);
   jresult = result; 
@@ -22883,6 +22883,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_frame_buffer_trypop__
 }
 
 
+SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_frame_buffer_size___(void * jarg1) {
+  int jresult ;
+  switch_frame_buffer_t *arg1 = (switch_frame_buffer_t *) 0 ;
+  int result;
+  
+  arg1 = (switch_frame_buffer_t *)jarg1; 
+  result = (int)switch_frame_buffer_size(arg1);
+  jresult = result; 
+  return jresult;
+}
+
+
 SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_cputime_userms_set___(void * jarg1, long long jarg2) {
   switch_cputime *arg1 = (switch_cputime *) 0 ;
   int64_t arg2 ;
@@ -35589,6 +35601,26 @@ SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_channel_wait_for_flag
 }
 
 
+SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_channel_wait_for_app_flag___(void * jarg1, unsigned long jarg2, char * jarg3, int jarg4, unsigned long jarg5) {
+  int jresult ;
+  switch_channel_t *arg1 = (switch_channel_t *) 0 ;
+  uint32_t arg2 ;
+  char *arg3 = (char *) 0 ;
+  switch_bool_t arg4 ;
+  uint32_t arg5 ;
+  switch_status_t result;
+  
+  arg1 = (switch_channel_t *)jarg1; 
+  arg2 = (uint32_t)jarg2; 
+  arg3 = (char *)jarg3; 
+  arg4 = (switch_bool_t)jarg4; 
+  arg5 = (uint32_t)jarg5; 
+  result = (switch_status_t)switch_channel_wait_for_app_flag(arg1,arg2,(char const *)arg3,arg4,arg5);
+  jresult = (int)result; 
+  return jresult;
+}
+
+
 SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_channel_perform_set_state___(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5) {
   int jresult ;
   switch_channel_t *arg1 = (switch_channel_t *) 0 ;
@@ -43546,6 +43578,16 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_FreeSWITCHfNative_SWITCH_RTP_CRYPTO_KEY_80_
 }
 
 
+SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_SWITCH_RTP_BUNDLE_INTERNAL_PT_get___() {
+  int jresult ;
+  int result;
+  
+  result = (int)(21);
+  jresult = result; 
+  return jresult;
+}
+
+
 SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_packet_t_header_set___(void * jarg1, void * jarg2) {
   switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ;
   switch_rtp_hdr_t *arg2 = (switch_rtp_hdr_t *) 0 ;
@@ -44657,7 +44699,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_create___(void *
 }
 
 
-SWIGEXPORT void * SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_new___(char * jarg1, unsigned short jarg2, char * jarg3, unsigned short jarg4, unsigned char jarg5, unsigned long jarg6, unsigned long jarg7, void * jarg8, char * jarg9, void * jarg10, void * jarg11) {
+SWIGEXPORT void * SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_new___(char * jarg1, unsigned short jarg2, char * jarg3, unsigned short jarg4, unsigned char jarg5, unsigned long jarg6, unsigned long jarg7, void * jarg8, char * jarg9, void * jarg10, void * jarg11, unsigned short jarg12, unsigned short jarg13) {
   void * jresult ;
   char *arg1 = (char *) 0 ;
   switch_port_t arg2 ;
@@ -44670,6 +44712,8 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_new___(char *
   char *arg9 = (char *) 0 ;
   char **arg10 = (char **) 0 ;
   switch_memory_pool_t *arg11 = (switch_memory_pool_t *) 0 ;
+  switch_port_t arg12 ;
+  switch_port_t arg13 ;
   switch_rtp_t *result = 0 ;
   
   arg1 = (char *)jarg1; 
@@ -44683,7 +44727,9 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_new___(char *
   arg9 = (char *)jarg9; 
   arg10 = (char **)jarg10; 
   arg11 = (switch_memory_pool_t *)jarg11; 
-  result = (switch_rtp_t *)switch_rtp_new((char const *)arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const **)arg10,arg11);
+  arg12 = (switch_port_t)jarg12; 
+  arg13 = (switch_port_t)jarg13; 
+  result = (switch_rtp_t *)switch_rtp_new((char const *)arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const **)arg10,arg11,arg12,arg13);
   jresult = (void *)result; 
   return jresult;
 }
@@ -44761,6 +44807,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_set_max_missed_p
 }
 
 
+SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_set_media_timeout___(void * jarg1, unsigned long jarg2) {
+  switch_rtp_t *arg1 = (switch_rtp_t *) 0 ;
+  uint32_t arg2 ;
+  
+  arg1 = (switch_rtp_t *)jarg1; 
+  arg2 = (uint32_t)jarg2; 
+  switch_rtp_set_media_timeout(arg1,arg2);
+}
+
+
 SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rtp_udptl_mode___(void * jarg1) {
   int jresult ;
   switch_rtp_t *arg1 = (switch_rtp_t *) 0 ;
index 12cc81a347581fce10829f2c36f33fa88e18c559..6c9218cc82a721606b11384c4507d2ee1e9f0a6b 100644 (file)
@@ -11047,7 +11047,7 @@ else
     return ret;
   }
 
-  public static int switch_calc_bitrate(int w, int h, int quality, double fps) {
+  public static int switch_calc_bitrate(int w, int h, float quality, double fps) {
     int ret = freeswitchPINVOKE.switch_calc_bitrate(w, h, quality, fps);
     return ret;
   }
@@ -11357,6 +11357,11 @@ else
     return ret;
   }
 
+  public static int switch_frame_buffer_size(SWIGTYPE_p_switch_frame_buffer_s fb) {
+    int ret = freeswitchPINVOKE.switch_frame_buffer_size(SWIGTYPE_p_switch_frame_buffer_s.getCPtr(fb));
+    return ret;
+  }
+
   public static void switch_getcputime(switch_cputime t) {
     freeswitchPINVOKE.switch_getcputime(switch_cputime.getCPtr(t));
   }
@@ -11445,6 +11450,11 @@ else
     return ret;
   }
 
+  public static switch_status_t switch_channel_wait_for_app_flag(SWIGTYPE_p_switch_channel channel, uint app_flag, string key, switch_bool_t pres, uint to) {
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_wait_for_app_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), app_flag, key, (int)pres, to);
+    return ret;
+  }
+
   public static switch_channel_state_t switch_channel_perform_set_state(SWIGTYPE_p_switch_channel channel, string file, string func, int line, switch_channel_state_t state) {
     switch_channel_state_t ret = (switch_channel_state_t)freeswitchPINVOKE.switch_channel_perform_set_state(SWIGTYPE_p_switch_channel.getCPtr(channel), file, func, line, (int)state);
     return ret;
@@ -13666,10 +13676,10 @@ else
     }
   }
 
-  public static SWIGTYPE_p_switch_rtp switch_rtp_new(string rx_host, ushort rx_port, string tx_host, ushort tx_port, byte payload, uint samples_per_interval, uint ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t flags, string timer_name, out string err, SWIGTYPE_p_apr_pool_t pool) {
+  public static SWIGTYPE_p_switch_rtp switch_rtp_new(string rx_host, ushort rx_port, string tx_host, ushort tx_port, byte payload, uint samples_per_interval, uint ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t flags, string timer_name, out string err, SWIGTYPE_p_apr_pool_t pool, ushort bundle_internal_ports, ushort bundle_external_port) {
 var err_ptr = global::System.IntPtr.Zero;
     try {
-      global::System.IntPtr cPtr = freeswitchPINVOKE.switch_rtp_new(rx_host, rx_port, tx_host, tx_port, payload, samples_per_interval, ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags), timer_name, ref err_ptr, SWIGTYPE_p_apr_pool_t.getCPtr(pool));
+      global::System.IntPtr cPtr = freeswitchPINVOKE.switch_rtp_new(rx_host, rx_port, tx_host, tx_port, payload, samples_per_interval, ms_per_packet, SWIGTYPE_p_switch_rtp_flag_t.getCPtr(flags), timer_name, ref err_ptr, SWIGTYPE_p_apr_pool_t.getCPtr(pool), bundle_internal_ports, bundle_external_port);
       SWIGTYPE_p_switch_rtp ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_switch_rtp(cPtr, false);
       return ret;
     } finally {
@@ -13715,6 +13725,10 @@ else
     freeswitchPINVOKE.switch_rtp_set_max_missed_packets(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), max);
   }
 
+  public static void switch_rtp_set_media_timeout(SWIGTYPE_p_switch_rtp rtp_session, uint ms) {
+    freeswitchPINVOKE.switch_rtp_set_media_timeout(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ms);
+  }
+
   public static switch_status_t switch_rtp_udptl_mode(SWIGTYPE_p_switch_rtp rtp_session) {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_udptl_mode(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session));
     return ret;
@@ -14898,6 +14912,7 @@ else
   public static readonly int SWITCH_RTCP_MAX_BUF_LEN = freeswitchPINVOKE.SWITCH_RTCP_MAX_BUF_LEN_get();
   public static readonly int SWITCH_RTP_MAX_BUF_LEN_WORDS = freeswitchPINVOKE.SWITCH_RTP_MAX_BUF_LEN_WORDS_get();
   public static readonly string SWITCH_RTP_CRYPTO_KEY_80 = freeswitchPINVOKE.SWITCH_RTP_CRYPTO_KEY_80_get();
+  public static readonly int SWITCH_RTP_BUNDLE_INTERNAL_PT = freeswitchPINVOKE.SWITCH_RTP_BUNDLE_INTERNAL_PT_get();
   public static readonly int MAX_CAND = freeswitchPINVOKE.MAX_CAND_get();
   public static readonly int SWITCH_XML_BUFSIZE = freeswitchPINVOKE.SWITCH_XML_BUFSIZE_get();
 }
@@ -20324,7 +20339,7 @@ class freeswitchPINVOKE {
   public static extern string switch_util_quote_shell_arg_pool(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
 
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_calc_bitrate___")]
-  public static extern int switch_calc_bitrate(int jarg1, int jarg2, int jarg3, double jarg4);
+  public static extern int switch_calc_bitrate(int jarg1, int jarg2, float jarg3, double jarg4);
 
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_calc_fps___")]
   public static extern void switch_calc_fps(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2, int jarg3);
@@ -20611,6 +20626,9 @@ class freeswitchPINVOKE {
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_frame_buffer_trypop___")]
   public static extern int switch_frame_buffer_trypop(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
 
+  [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_frame_buffer_size___")]
+  public static extern int switch_frame_buffer_size(global::System.Runtime.InteropServices.HandleRef jarg1);
+
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_cputime_userms_set___")]
   public static extern void switch_cputime_userms_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2);
 
@@ -23899,6 +23917,9 @@ class freeswitchPINVOKE {
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_channel_wait_for_flag___")]
   public static extern int switch_channel_wait_for_flag(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, uint jarg4, global::System.Runtime.InteropServices.HandleRef jarg5);
 
+  [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_channel_wait_for_app_flag___")]
+  public static extern int switch_channel_wait_for_app_flag(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, string jarg3, int jarg4, uint jarg5);
+
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_channel_perform_set_state___")]
   public static extern int switch_channel_perform_set_state(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5);
 
@@ -25591,6 +25612,9 @@ class freeswitchPINVOKE {
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_SWITCH_RTP_CRYPTO_KEY_80_get___")]
   public static extern string SWITCH_RTP_CRYPTO_KEY_80_get();
 
+  [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_SWITCH_RTP_BUNDLE_INTERNAL_PT_get___")]
+  public static extern int SWITCH_RTP_BUNDLE_INTERNAL_PT_get();
+
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_rtp_packet_t_header_set___")]
   public static extern void switch_rtp_packet_t_header_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
 
@@ -25856,7 +25880,7 @@ class freeswitchPINVOKE {
   public static extern int switch_rtp_create(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, uint jarg3, uint jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, string jarg6, ref global::System.IntPtr jarg7, global::System.Runtime.InteropServices.HandleRef jarg8);
 
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_rtp_new___")]
-  public static extern global::System.IntPtr switch_rtp_new(string jarg1, ushort jarg2, string jarg3, ushort jarg4, byte jarg5, uint jarg6, uint jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, string jarg9, ref global::System.IntPtr jarg10, global::System.Runtime.InteropServices.HandleRef jarg11);
+  public static extern global::System.IntPtr switch_rtp_new(string jarg1, ushort jarg2, string jarg3, ushort jarg4, byte jarg5, uint jarg6, uint jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, string jarg9, ref global::System.IntPtr jarg10, global::System.Runtime.InteropServices.HandleRef jarg11, ushort jarg12, ushort jarg13);
 
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_rtp_set_remote_address___")]
   public static extern int switch_rtp_set_remote_address(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, ushort jarg3, ushort jarg4, int jarg5, ref global::System.IntPtr jarg6);
@@ -25876,6 +25900,9 @@ class freeswitchPINVOKE {
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_rtp_set_max_missed_packets___")]
   public static extern void switch_rtp_set_max_missed_packets(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
 
+  [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_rtp_set_media_timeout___")]
+  public static extern void switch_rtp_set_media_timeout(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
   [global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_rtp_udptl_mode___")]
   public static extern int switch_rtp_udptl_mode(global::System.Runtime.InteropServices.HandleRef jarg1);