Lines Matching refs:msg
84 HubMessage(const hub_message_t *msg, uint32_t transaction_id, uint16_t endpoint) { in HubMessage() argument
85 app_name = msg->app_name; in HubMessage()
86 message_type = msg->message_type; in HubMessage()
87 message_len = msg->message_len; in HubMessage()
88 message = msg->message; in HubMessage()
91 if (msg->message_len > 0 && msg->message != nullptr) { in HubMessage()
92 data_ = std::unique_ptr<uint8_t>(new uint8_t[msg->message_len]); in HubMessage()
93 memcpy(data_.get(), msg->message, msg->message_len); in HubMessage()
152 int doSendToNanohub(uint32_t hub_id, const hub_message_t *msg,
156 void doSendToApp(HubMessage &&msg);
187 static int sendToNanohub(uint32_t hub_id, const hub_message_t *msg, in sendToNanohub() argument
189 return hubInstance()->doSendToNanohub(hub_id, msg, transaction_id, endpoint); in sendToNanohub()
197 static void sendToApp(HubMessage &&msg) { in sendToApp() argument
198 hubInstance()->doSendToApp((HubMessage &&)msg); in sendToApp()