From 9d7fe2430e311b531b2e6292103e589d2825bf7c Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 6 Jun 2016 10:09:02 -0500 Subject: [PATCH] swigall --- .../languages/mod_managed/freeswitch_wrap.cxx | 34 ++++++++++---- src/mod/languages/mod_managed/managed/swig.cs | 46 ++++++++++++++++--- 2 files changed, 64 insertions(+), 16 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index c02addd90f..1f3c1e8851 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -2000,6 +2000,16 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get() { } +SWIGEXPORT int SWIGSTDCALL CSharp_MAX_FMTP_LEN_get() { + int jresult ; + int result; + + result = (int)(256); + jresult = result; + return jresult; +} + + SWIGEXPORT double SWIGSTDCALL CSharp_JITTER_VARIANCE_THRESHOLD_get() { double jresult ; double result; @@ -17340,7 +17350,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_codec_interface( } -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { char * jresult ; char *arg1 = (char *) 0 ; uint32_t *arg2 = (uint32_t *) 0 ; @@ -17348,6 +17358,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * uint32_t *arg4 = (uint32_t *) 0 ; uint32_t *arg5 = (uint32_t *) 0 ; char **arg6 = (char **) 0 ; + char **arg7 = (char **) 0 ; char *result = 0 ; arg1 = (char *)jarg1; @@ -17356,7 +17367,8 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * arg4 = (uint32_t *)jarg4; arg5 = (uint32_t *)jarg5; arg6 = (char **)jarg6; - result = (char *)switch_parse_codec_buf(arg1,arg2,arg3,arg4,arg5,arg6); + arg7 = (char **)jarg7; + result = (char *)switch_parse_codec_buf(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = SWIG_csharp_string_callback((const char *)result); return jresult; } @@ -17612,19 +17624,21 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_get_codecs(void * jarg1 } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_get_codecs_sorted(void * jarg1, int jarg2, void * jarg3, int jarg4) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_loadable_module_get_codecs_sorted(void * jarg1, void * jarg2, int jarg3, void * jarg4, int jarg5) { int jresult ; switch_codec_implementation_t **arg1 = (switch_codec_implementation_t **) 0 ; - int arg2 ; - char **arg3 = (char **) 0 ; - int arg4 ; + char (*arg2)[256] ; + int arg3 ; + char **arg4 = (char **) 0 ; + int arg5 ; int result; arg1 = (switch_codec_implementation_t **)jarg1; - arg2 = (int)jarg2; - arg3 = (char **)jarg3; - arg4 = (int)jarg4; - result = (int)switch_loadable_module_get_codecs_sorted((switch_codec_implementation const **)arg1,arg2,arg3,arg4); + arg2 = (char (*)[256])jarg2; + arg3 = (int)jarg3; + arg4 = (char **)jarg4; + arg5 = (int)jarg5; + result = (int)switch_loadable_module_get_codecs_sorted((switch_codec_implementation const **)arg1,(char (*)[256])arg2,arg3,arg4,arg5); jresult = result; return jresult; } diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 7323796fa7..06d3765dc9 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -3447,8 +3447,8 @@ else return ret; } - public static string switch_parse_codec_buf(string buf, SWIGTYPE_p_unsigned_long interval, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long bit, SWIGTYPE_p_unsigned_long channels, ref string modname) { - string ret = freeswitchPINVOKE.switch_parse_codec_buf(buf, SWIGTYPE_p_unsigned_long.getCPtr(interval), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(bit), SWIGTYPE_p_unsigned_long.getCPtr(channels), ref modname); + public static string switch_parse_codec_buf(string buf, SWIGTYPE_p_unsigned_long interval, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long bit, SWIGTYPE_p_unsigned_long channels, ref string modname, ref string fmtp) { + string ret = freeswitchPINVOKE.switch_parse_codec_buf(buf, SWIGTYPE_p_unsigned_long.getCPtr(interval), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(bit), SWIGTYPE_p_unsigned_long.getCPtr(channels), ref modname, ref fmtp); return ret; } @@ -3561,8 +3561,8 @@ else return ret; } - public static int switch_loadable_module_get_codecs_sorted(SWIGTYPE_p_p_switch_codec_implementation array, int arraylen, ref string prefs, int preflen) { - int ret = freeswitchPINVOKE.switch_loadable_module_get_codecs_sorted(SWIGTYPE_p_p_switch_codec_implementation.getCPtr(array), arraylen, ref prefs, preflen); + public static int switch_loadable_module_get_codecs_sorted(SWIGTYPE_p_p_switch_codec_implementation array, SWIGTYPE_p_a_256__char fmtp_array, int arraylen, ref string prefs, int preflen) { + int ret = freeswitchPINVOKE.switch_loadable_module_get_codecs_sorted(SWIGTYPE_p_p_switch_codec_implementation.getCPtr(array), SWIGTYPE_p_a_256__char.getCPtr(fmtp_array), arraylen, ref prefs, preflen); return ret; } @@ -7611,6 +7611,7 @@ else public static readonly int SWITCH_DEFAULT_VIDEO_SIZE = freeswitchPINVOKE.SWITCH_DEFAULT_VIDEO_SIZE_get(); public static readonly string SWITCH_RTCP_AUDIO_INTERVAL_MSEC = freeswitchPINVOKE.SWITCH_RTCP_AUDIO_INTERVAL_MSEC_get(); public static readonly string SWITCH_RTCP_VIDEO_INTERVAL_MSEC = freeswitchPINVOKE.SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get(); + public static readonly int MAX_FMTP_LEN = freeswitchPINVOKE.MAX_FMTP_LEN_get(); public static readonly double JITTER_VARIANCE_THRESHOLD = freeswitchPINVOKE.JITTER_VARIANCE_THRESHOLD_get(); public static readonly double IPDV_THRESHOLD = freeswitchPINVOKE.IPDV_THRESHOLD_get(); public static readonly int LOST_BURST_ANALYZE = freeswitchPINVOKE.LOST_BURST_ANALYZE_get(); @@ -8385,6 +8386,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get")] public static extern string SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get(); + [DllImport("mod_managed", EntryPoint="CSharp_MAX_FMTP_LEN_get")] + public static extern int MAX_FMTP_LEN_get(); + [DllImport("mod_managed", EntryPoint="CSharp_JITTER_VARIANCE_THRESHOLD_get")] public static extern double JITTER_VARIANCE_THRESHOLD_get(); @@ -12151,7 +12155,7 @@ class freeswitchPINVOKE { public static extern IntPtr switch_loadable_module_get_codec_interface(string jarg1, string jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_parse_codec_buf")] - public static extern string switch_parse_codec_buf(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, ref string jarg6); + public static extern string switch_parse_codec_buf(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, ref string jarg6, ref string jarg7); [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_dialplan_interface")] public static extern IntPtr switch_loadable_module_get_dialplan_interface(string jarg1); @@ -12211,7 +12215,7 @@ class freeswitchPINVOKE { public static extern int switch_loadable_module_get_codecs(HandleRef jarg1, int jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_codecs_sorted")] - public static extern int switch_loadable_module_get_codecs_sorted(HandleRef jarg1, int jarg2, ref string jarg3, int jarg4); + public static extern int switch_loadable_module_get_codecs_sorted(HandleRef jarg1, HandleRef jarg2, int jarg3, ref string jarg4, int jarg5); [DllImport("mod_managed", EntryPoint="CSharp_switch_api_execute")] public static extern int switch_api_execute(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); @@ -20471,6 +20475,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_a_256__char { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_a_256__char(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_256__char() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_a_256__char obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + public class SWIGTYPE_p_a_2__icand_s { private HandleRef swigCPtr;