From 34b31f8f02f5883e69afa6b44765e8071fb2e1fa Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 4 Apr 2014 07:27:48 -0500 Subject: [PATCH] swig managed --- .../languages/mod_managed/freeswitch_wrap.cxx | 22 ++++++-- src/mod/languages/mod_managed/managed/swig.cs | 50 ++++++++++++++++--- 2 files changed, 62 insertions(+), 10 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 57cd056bb2..f200f1a4f8 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -12096,24 +12096,38 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_find_rdlock(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_first(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_first_iter(void * jarg1, void * jarg2) { void * jresult ; switch_hash_t *arg1 = (switch_hash_t *) 0 ; + switch_hash_index_t *arg2 = (switch_hash_index_t *) 0 ; switch_hash_index_t *result = 0 ; arg1 = (switch_hash_t *)jarg1; - result = (switch_hash_index_t *)switch_core_hash_first(arg1); + arg2 = (switch_hash_index_t *)jarg2; + result = (switch_hash_index_t *)switch_core_hash_first_iter(arg1,arg2); jresult = (void *)result; return jresult; } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_empty(void * jarg1) { + int jresult ; + switch_hash_t *arg1 = (switch_hash_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_hash_t *)jarg1; + result = (switch_bool_t)switch_core_hash_empty(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_next(void * jarg1) { void * jresult ; - switch_hash_index_t *arg1 = (switch_hash_index_t *) 0 ; + switch_hash_index_t **arg1 = (switch_hash_index_t **) 0 ; switch_hash_index_t *result = 0 ; - arg1 = (switch_hash_index_t *)jarg1; + arg1 = (switch_hash_index_t **)jarg1; result = (switch_hash_index_t *)switch_core_hash_next(arg1); jresult = (void *)result; return jresult; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 7664664621..c0ed651a48 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -2131,14 +2131,19 @@ public class freeswitch { return ret; } - public static SWIGTYPE_p_switch_hashtable_iterator switch_core_hash_first(SWIGTYPE_p_switch_hashtable hash) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_first(SWIGTYPE_p_switch_hashtable.getCPtr(hash)); + public static SWIGTYPE_p_switch_hashtable_iterator switch_core_hash_first_iter(SWIGTYPE_p_switch_hashtable hash, SWIGTYPE_p_switch_hashtable_iterator hi) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_first_iter(SWIGTYPE_p_switch_hashtable.getCPtr(hash), SWIGTYPE_p_switch_hashtable_iterator.getCPtr(hi)); SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); return ret; } - public static SWIGTYPE_p_switch_hashtable_iterator switch_core_hash_next(SWIGTYPE_p_switch_hashtable_iterator hi) { - IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_next(SWIGTYPE_p_switch_hashtable_iterator.getCPtr(hi)); + public static switch_bool_t switch_core_hash_empty(SWIGTYPE_p_switch_hashtable hash) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_hash_empty(SWIGTYPE_p_switch_hashtable.getCPtr(hash)); + return ret; + } + + public static SWIGTYPE_p_switch_hashtable_iterator switch_core_hash_next(SWIGTYPE_p_p_switch_hashtable_iterator hi) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_next(SWIGTYPE_p_p_switch_hashtable_iterator.getCPtr(hi)); SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); return ret; } @@ -10318,8 +10323,11 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_find_rdlock")] public static extern IntPtr switch_core_hash_find_rdlock(HandleRef jarg1, string jarg2, HandleRef jarg3); - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_first")] - public static extern IntPtr switch_core_hash_first(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_first_iter")] + public static extern IntPtr switch_core_hash_first_iter(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_empty")] + public static extern int switch_core_hash_empty(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_next")] public static extern IntPtr switch_core_hash_next(HandleRef jarg1); @@ -22513,6 +22521,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_p_switch_hashtable_iterator { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_hashtable_iterator(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_hashtable_iterator() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_hashtable_iterator 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.7 + * + * 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_p_switch_ivr_digit_stream { private HandleRef swigCPtr;