Lines Matching refs:resp_data
89 * resp_data - Upon success contains allocated reponse data (if any). The caller
95 _coreCmdProxy_get_response(UICmdRespHeader* resp, void** resp_data)
105 *resp_data = malloc(resp->resp_data_size);
106 if (*resp_data == NULL) {
109 status = syncsocket_read(_coreCmdProxy.sync_reader, *resp_data,
170 UICmdGetNetSpeedResp* resp_data = NULL;
181 status = _coreCmdProxy_get_response(&resp, (void**)&resp_data);
190 // resp_data.
197 ret->upload = resp_data->upload;
198 ret->download = resp_data->download;
200 strcpy((char*)ret->name, resp_data->name);
202 strcpy((char*)ret->display, resp_data->name + strlen(resp_data->name) + 1);
204 if (resp_data != NULL) {
205 free(resp_data);
215 UICmdGetNetDelayResp* resp_data = NULL;
226 status = _coreCmdProxy_get_response(&resp, (void**)&resp_data);
235 // resp_data.
242 ret->min_ms = resp_data->min_ms;
243 ret->max_ms = resp_data->max_ms;
245 strcpy((char*)ret->name, resp_data->name);
247 strcpy((char*)ret->display, resp_data->name + strlen(resp_data->name) + 1);
249 if (resp_data != NULL) {
250 free(resp_data);
262 char* resp_data = NULL;
281 status = _coreCmdProxy_get_response(&resp, (void**)&resp_data);
285 if (!resp.result && resp_data != NULL) {
286 strncpy(path, resp_data, path_buf_size);
289 if (resp_data != NULL) {
290 free(resp_data);