Lines Matching refs:list_handle

226    core_updater_list_handle_t *list_handle = NULL;  in cb_http_task_core_updater_get_list()  local
232 list_handle = (core_updater_list_handle_t*)transf->user_data; in cb_http_task_core_updater_get_list()
234 if (!list_handle) in cb_http_task_core_updater_get_list()
239 list_handle->http_data = data; in cb_http_task_core_updater_get_list()
240 list_handle->http_task_complete = true; in cb_http_task_core_updater_get_list()
241 list_handle->http_task_success = success; in cb_http_task_core_updater_get_list()
257 core_updater_list_handle_t *list_handle) in free_core_updater_list_handle() argument
259 if (!list_handle) in free_core_updater_list_handle()
262 if (list_handle->http_data) in free_core_updater_list_handle()
265 if (list_handle->http_data->data) in free_core_updater_list_handle()
266 free(list_handle->http_data->data); in free_core_updater_list_handle()
268 free(list_handle->http_data); in free_core_updater_list_handle()
271 free(list_handle); in free_core_updater_list_handle()
272 list_handle = NULL; in free_core_updater_list_handle()
277 core_updater_list_handle_t *list_handle = NULL; in task_core_updater_get_list_handler() local
282 list_handle = (core_updater_list_handle_t*)task->state; in task_core_updater_get_list_handler()
284 if (!list_handle) in task_core_updater_get_list_handler()
290 switch (list_handle->status) in task_core_updater_get_list_handler()
304 core_updater_list_reset(list_handle->core_list); in task_core_updater_get_list_handler()
339 transf->user_data = (void*)list_handle; in task_core_updater_get_list_handler()
342 list_handle->http_task = (retro_task_t*)task_push_http_transfer_file( in task_core_updater_get_list_handler()
347 list_handle->status = CORE_UPDATER_LIST_WAIT; in task_core_updater_get_list_handler()
355 if (!list_handle->http_task) in task_core_updater_get_list_handler()
356 list_handle->http_task_complete = true; in task_core_updater_get_list_handler()
358 else if (!list_handle->http_task_finished) in task_core_updater_get_list_handler()
360 list_handle->http_task_finished = in task_core_updater_get_list_handler()
361 task_get_finished(list_handle->http_task); in task_core_updater_get_list_handler()
365 if (!list_handle->http_task_finished) in task_core_updater_get_list_handler()
367 task, task_get_progress(list_handle->http_task)); in task_core_updater_get_list_handler()
372 if (list_handle->http_task_complete) in task_core_updater_get_list_handler()
373 list_handle->status = CORE_UPDATER_LIST_END; in task_core_updater_get_list_handler()
381 if (list_handle->http_task_success) in task_core_updater_get_list_handler()
384 if (list_handle->http_data) in task_core_updater_get_list_handler()
386 list_handle->core_list, in task_core_updater_get_list_handler()
390 list_handle->http_data->data, in task_core_updater_get_list_handler()
391 list_handle->http_data->len); in task_core_updater_get_list_handler()
402 if (list_handle->refresh_menu) in task_core_updater_get_list_handler()
405 &list_handle->refresh_menu); in task_core_updater_get_list_handler()
421 free_core_updater_list_handle(list_handle); in task_core_updater_get_list_handler()
426 core_updater_list_handle_t *list_handle = NULL; in task_core_updater_get_list_finder() local
434 list_handle = (core_updater_list_handle_t*)task->state; in task_core_updater_get_list_finder()
435 if (!list_handle) in task_core_updater_get_list_finder()
438 return ((uintptr_t)user_data == (uintptr_t)list_handle->core_list); in task_core_updater_get_list_finder()
446 core_updater_list_handle_t *list_handle = (core_updater_list_handle_t*) in task_push_get_core_updater_list() local
457 if (!core_list || !list_handle) in task_push_get_core_updater_list()
461 list_handle->core_list = core_list; in task_push_get_core_updater_list()
462 list_handle->refresh_menu = refresh_menu; in task_push_get_core_updater_list()
463 list_handle->http_task = NULL; in task_push_get_core_updater_list()
464 list_handle->http_task_finished = false; in task_push_get_core_updater_list()
465 list_handle->http_task_complete = false; in task_push_get_core_updater_list()
466 list_handle->http_task_success = false; in task_push_get_core_updater_list()
467 list_handle->http_data = NULL; in task_push_get_core_updater_list()
468 list_handle->status = CORE_UPDATER_LIST_BEGIN; in task_push_get_core_updater_list()
487 task->state = list_handle; in task_push_get_core_updater_list()
508 free_core_updater_list_handle(list_handle); in task_push_get_core_updater_list()