From ad4f3dcedab29a690c5eedbb08ba1b393917db0b Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期三, 21 四月 2021 17:39:34 +0800 Subject: [PATCH] update go api. --- src/defs.h | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/defs.h b/src/defs.h index 10ac73c..08181d8 100644 --- a/src/defs.h +++ b/src/defs.h @@ -21,10 +21,14 @@ #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_generators.hpp> +#include <string> typedef boost::uuids::uuid MQId; -const MQId kBHBusQueueId = boost::uuids::string_generator()("01234567-89ab-cdef-8349-1234567890ff"); +const MQId &BHTopicBusAddress(); +const MQId &BHTopicCenterAddress(); +const MQId &BHUniCenterAddress(); + const int kBHCenterPort = 24287; const char kTopicSep = '.'; namespace bhome_shm @@ -33,7 +37,9 @@ } // namespace bhome_shm 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