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.

---
 src/proto.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/proto.h b/src/proto.h
index b418342..2557f8e 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -22,16 +22,16 @@
 #include "bhome_msg_api.pb.h"
 #include <chrono>
 
-using namespace bhome::msg;
+using namespace bhome_msg;
 
 template <class Msg>
 struct MsgToType {
 };
 
-#define BHOME_MAP_MSG_AND_TYPE(mSG, tYPE)              \
-	template <>                                        \
-	struct MsgToType<mSG> {                            \
-		static const bhome::msg::MsgType value = tYPE; \
+#define BHOME_MAP_MSG_AND_TYPE(mSG, tYPE)  \
+	template <>                            \
+	struct MsgToType<mSG> {                \
+		static const MsgType value = tYPE; \
 	};
 
 #define BHOME_SIMPLE_MAP_MSG(name) BHOME_MAP_MSG_AND_TYPE(Msg##name, kMsgType##name)
@@ -52,7 +52,7 @@
 #undef BHOME_MAP_MSG_AND_TYPE
 
 template <class Msg>
-constexpr inline bhome::msg::MsgType GetType(const Msg &)
+constexpr inline MsgType GetType(const Msg &)
 {
 	return MsgToType<Msg>::value;
 }

--
Gitblit v1.8.0