From 3a89a77e79407d0d638ddf983ee580410cf807c5 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 04 八月 2020 15:56:12 +0800
Subject: [PATCH] fix sendto

---
 src/queue/include/hashtable.h |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/queue/include/hashtable.h b/src/queue/include/hashtable.h
index 726a5bc..b8edaa3 100755
--- a/src/queue/include/hashtable.h
+++ b/src/queue/include/hashtable.h
@@ -23,10 +23,17 @@
 void *hashtable_remove(hashtable_t *hashtable, int key);
 void hashtable_removeall(hashtable_t *hashtable);
 
+/** 
+ * 閬嶅巻hash_table
+ * @demo 
+ * hashtable_foreach(&hashtable, [&](int key, void * value){
+ *	printf("%d, %p\n", key, value);
+ * });
+ * 
+*/
+void hashtable_foreach(hashtable_t *hashtable, std::function<void(int, void *)>  cb);
 
-void hashtable_foreach(hashtable_t *hashtable, hashtable_foreach_cb cb);
-
-void hashtable_printall(hashtable_t *hashtable);
+// void hashtable_printall(hashtable_t *hashtable);
 
 int hashtable_alloc_key(hashtable_t *hashtable);
 

--
Gitblit v1.8.0