Lines Matching refs:payload
225 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest, id); in dispatchRequest()
227 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest); in dispatchRequest()
248 rsp.payload = (pb_bytes_array_t *)calloc(1, sizeof(pb_bytes_array_t) + response_len); in onRequestComplete()
249 if (!rsp.payload) { in onRequestComplete()
253 memcpy(rsp.payload->bytes, response, response_len); in onRequestComplete()
254 rsp.payload->size = response_len; in onRequestComplete()
256 rsp.payload->size = 0; in onRequestComplete()
263 free(rsp.payload); in onRequestComplete()
278 pb_bytes_array_t *payload = (pb_bytes_array_t *)calloc(1, in onUnsolicitedResponse() local
280 if (!payload) { in onUnsolicitedResponse()
284 memcpy(payload->bytes, data, datalen); in onUnsolicitedResponse()
285 payload->size = datalen; in onUnsolicitedResponse()
287 rsp.payload = payload; in onUnsolicitedResponse()
292 free(payload); in onUnsolicitedResponse()