lichao
2021-04-12 1b52f1cb8c47dd2c0195d2fd65d7b6a4c2f10704
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