From ca319178f45ce6256aed7913565d445571f6db22 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 20 四月 2021 11:04:07 +0800
Subject: [PATCH] add go api, wrap C api, not finished.

---
 utest/api_test.cpp |   19 +++----------------
 1 files changed, 3 insertions(+), 16 deletions(-)

diff --git a/utest/api_test.cpp b/utest/api_test.cpp
index da51044..b2c00a4 100644
--- a/utest/api_test.cpp
+++ b/utest/api_test.cpp
@@ -19,7 +19,7 @@
 #include "util.h"
 #include <atomic>
 
-using namespace bhome::msg;
+using namespace bhome_msg;
 
 namespace
 {
@@ -66,7 +66,7 @@
                 const int proc_id_len,
                 const void *data,
                 const int data_len,
-                BHServerCallbackTag *tag)
+                const void *tag)
 {
 	// printf("ServerProc: ");
 	// DEFER1(printf("\n"););
@@ -138,19 +138,6 @@
 	}
 }
 
-namespace
-{
-struct CCC {
-};
-void F(CCC &&c) {}
-
-template <class... T>
-void Pass(T &&...t)
-{
-	F(std::forward<decltype(t)>(t)...);
-}
-
-} // namespace
 BOOST_AUTO_TEST_CASE(ApiTest)
 {
 	auto max_time = std::chrono::steady_clock::time_point::max();
@@ -266,7 +253,7 @@
 	auto hb = [](std::atomic<bool> *run) {
 		while (*run) {
 			Sleep(1s, false);
-			bool r = BHHeartBeatEasy(1000);
+			bool r = BHHeartbeatEasy(1000);
 			printf("heartbeat: %s\n", r ? "ok" : "failed");
 		}
 	};

--
Gitblit v1.8.0