lichao
2021-05-06 9eb924f64a56918536d310dd89698aa7e148c727
src/defs.h
@@ -23,9 +23,11 @@
typedef uint64_t MQId;
const MQId kBHNodeInit = 10;
const MQId kBHTopicCenter = 100;
const MQId kBHTopicBus = 101;
const MQId kBHUniCenter = 102;
inline const MQId BHInitAddress() { return kBHNodeInit; }
inline const MQId BHTopicCenterAddress() { return kBHTopicCenter; }
inline const MQId BHTopicBusAddress() { return kBHTopicBus; }
inline const MQId BHUniCenterAddress() { return kBHUniCenter; }
@@ -37,6 +39,7 @@
class SharedMemory;
} // namespace bhome_shm
std::string BHomeShmName();
bhome_shm::SharedMemory &BHomeShm();
bool GlobalInit(bhome_shm::SharedMemory &shm);
typedef std::string Topic;