Lines Matching refs:msgToHost

45     MessageToHost *msgToHost = mMessagePool.allocate();  in sendMessageToHostFromNanoapp()  local
47 if (msgToHost == nullptr) { in sendMessageToHostFromNanoapp()
50 msgToHost->appId = nanoapp->getAppId(); in sendMessageToHostFromNanoapp()
51 msgToHost->message.wrap(static_cast<uint8_t *>(messageData), messageSize); in sendMessageToHostFromNanoapp()
52 msgToHost->toHostData.hostEndpoint = hostEndpoint; in sendMessageToHostFromNanoapp()
53 msgToHost->toHostData.messageType = messageType; in sendMessageToHostFromNanoapp()
54 msgToHost->toHostData.messagePermissions = messagePermissions; in sendMessageToHostFromNanoapp()
55 msgToHost->toHostData.appPermissions = nanoapp->getAppPermissions(); in sendMessageToHostFromNanoapp()
56 msgToHost->toHostData.nanoappFreeFunction = freeCallback; in sendMessageToHostFromNanoapp()
64 success = HostLink::sendMessage(msgToHost); in sendMessageToHostFromNanoapp()
66 mMessagePool.deallocate(msgToHost); in sendMessageToHostFromNanoapp()
187 auto *msgToHost = const_cast<MessageToHost *>(message); in onMessageToHostComplete() local
192 if (msgToHost->toHostData.nanoappFreeFunction == nullptr) { in onMessageToHostComplete()
193 mMessagePool.deallocate(msgToHost); in onMessageToHostComplete()
202 SystemCallbackType::MessageToHostComplete, msgToHost, freeMsgCallback); in onMessageToHostComplete()
206 void HostCommsManager::freeMessageToHost(MessageToHost *msgToHost) { in freeMessageToHost() argument
207 if (msgToHost->toHostData.nanoappFreeFunction != nullptr) { in freeMessageToHost()
209 msgToHost->appId, msgToHost->toHostData.nanoappFreeFunction, in freeMessageToHost()
210 msgToHost->message.data(), msgToHost->message.size()); in freeMessageToHost()
212 mMessagePool.deallocate(msgToHost); in freeMessageToHost()