Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


add ability to destroy hashtable iterators
Kyle Hale [Mon, 24 Mar 2014 21:42:39 +0000 (16:42 -0500)]
palacios/include/palacios/vmm_hashtable.h
palacios/src/palacios/vmm_hashtable.c

index 79f5f05..2806632 100644 (file)
@@ -181,6 +181,7 @@ struct hashtable_iter {
 
 
 struct hashtable_iter * v3_create_htable_iter(struct hashtable * htable);
+void v3_destroy_htable_iter(struct hashtable_iter * iter);
 
 /* - return the value of the (key,value) pair at the current position */
 //extern inline 
index 00e6f52..fd8f3a2 100644 (file)
@@ -733,6 +733,11 @@ int v3_htable_iter_search(struct hashtable_iter * iter,
     return 0;
 }
  
+void v3_destroy_htable_iter(struct hashtable_iter * iter) {
+    if (iter) {
+        V3_Free(iter);
+    }
+}