From 153375e3b152768cbffce715d049499945834c29 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 13 四月 2021 15:11:14 +0800
Subject: [PATCH] add api code, use proto msg as data.

---
 src/defs.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/defs.h b/src/defs.h
index d50e380..08181d8 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -38,7 +38,8 @@
 
 bhome_shm::SharedMemory &BHomeShm();
 typedef std::string Topic;
-
+void SetLastError(const int ec, const std::string &msg);
+void GetLastError(int &ec, std::string &msg);
 //TODO center can check shm for previous crash.
 
 #endif // end of include guard: DEFS_KP8LKGD0

--
Gitblit v1.8.0