Lines Matching refs:payload
226 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest, id); in dispatchRequest()
228 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest); in dispatchRequest()
249 rsp.payload = (pb_bytes_array_t *)calloc(1, sizeof(pb_bytes_array_t) + response_len); in onRequestComplete()
250 if (!rsp.payload) { in onRequestComplete()
254 memcpy(rsp.payload->bytes, response, response_len); in onRequestComplete()
255 rsp.payload->size = response_len; in onRequestComplete()
257 rsp.payload->size = 0; in onRequestComplete()
264 free(rsp.payload); in onRequestComplete()
279 pb_bytes_array_t *payload = (pb_bytes_array_t *)calloc(1, in onUnsolicitedResponse() local
281 if (!payload) { in onUnsolicitedResponse()
285 memcpy(payload->bytes, data, datalen); in onUnsolicitedResponse()
286 payload->size = datalen; in onUnsolicitedResponse()
288 rsp.payload = payload; in onUnsolicitedResponse()
293 free(payload); in onUnsolicitedResponse()