diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 7b0196cca1..aab23429f8 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -7601,6 +7601,22 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_locked(void * jarg1, c } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_multi(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + switch_hash_delete_callback_t arg2 = (switch_hash_delete_callback_t) 0 ; + void *arg3 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_hash_t *)jarg1; + arg2 = (switch_hash_delete_callback_t)jarg2; + arg3 = (void *)jarg3; + result = (switch_status_t)switch_core_hash_delete_multi(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_find(void * jarg1, char * jarg2) { void * jresult ; switch_hash_t *arg1 = (switch_hash_t *) 0 ; @@ -11202,18 +11218,18 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_util_quote_shell_arg(char * jarg1) { } -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_url_encode(char * jarg1, char * jarg2, unsigned long jarg3) { - unsigned long jresult ; +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_url_encode(char * jarg1, char * jarg2, unsigned long jarg3) { + char * jresult ; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; - size_t result; + char *result = 0 ; arg1 = (char *)jarg1; arg2 = (char *)jarg2; arg3 = (size_t)jarg3; - result = switch_url_encode((char const *)arg1,arg2,arg3); - jresult = (unsigned long)result; + result = (char *)switch_url_encode((char const *)arg1,arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); return jresult; } diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 3582aa0f4d..90b0c57877 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -1562,6 +1562,11 @@ public class freeswitch { return ret; } + public static switch_status_t switch_core_hash_delete_multi(SWIGTYPE_p_switch_hash hash, SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t callback, SWIGTYPE_p_void pData) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_multi(SWIGTYPE_p_switch_hash.getCPtr(hash), SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pData)); + return ret; + } + public static SWIGTYPE_p_void switch_core_hash_find(SWIGTYPE_p_switch_hash hash, string key) { IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_find(SWIGTYPE_p_switch_hash.getCPtr(hash), key); SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); @@ -2642,8 +2647,8 @@ public class freeswitch { return ret; } - public static uint switch_url_encode(string url, string buf, uint len) { - uint ret = freeswitchPINVOKE.switch_url_encode(url, buf, len); + public static string switch_url_encode(string url, string buf, uint len) { + string ret = freeswitchPINVOKE.switch_url_encode(url, buf, len); return ret; } @@ -6877,6 +6882,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_locked")] public static extern int switch_core_hash_delete_locked(HandleRef jarg1, string jarg2, HandleRef jarg3); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_multi")] + public static extern int switch_core_hash_delete_multi(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_find")] public static extern IntPtr switch_core_hash_find(HandleRef jarg1, string jarg2); @@ -7688,7 +7696,7 @@ class freeswitchPINVOKE { public static extern string switch_util_quote_shell_arg(string jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_url_encode")] - public static extern uint switch_url_encode(string jarg1, string jarg2, uint jarg3); + public static extern string switch_url_encode(string jarg1, string jarg2, uint jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_url_decode")] public static extern string switch_url_decode(string jarg1); @@ -13171,6 +13179,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__switch_bool_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * 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_f_p_switch_asr_handle_p_char_double__void { private HandleRef swigCPtr;