src/proto.h
@@ -19,6 +19,7 @@ #define PROTO_UA9UWKL1 #include "bhome_msg.pb.h" #include "bhome_msg_api.pb.h" using namespace bhome::msg; @@ -74,5 +75,5 @@ BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id, const std::string &msgid); BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id); // inline void AddRoute(BHMsgHead &head, const MQId &id) { head.add_route()->set_mq_id(&id, sizeof(id)); } inline bool IsSuccess(const ErrorCode ec) { return ec == eSuccess; } #endif // end of include guard: PROTO_UA9UWKL1