]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
swig managed
authorBrian West <brian@freeswitch.org>
Fri, 4 Apr 2014 12:27:48 +0000 (07:27 -0500)
committerBrian West <brian@freeswitch.org>
Fri, 4 Apr 2014 12:27:48 +0000 (07:27 -0500)
src/mod/languages/mod_managed/freeswitch_wrap.cxx
src/mod/languages/mod_managed/managed/swig.cs

index 57cd056bb205be594e0e1b22d7d03188b04407ed..f200f1a4f80f312fba6e688318106ba3c5175e0e 100644 (file)
@@ -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;
index 766466462115e1651230e4cc38f54539bb7358a9..c0ed651a48131b336a2c961107f3da3ab000e1ba 100644 (file)
@@ -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;