Freeciv-3.2
|
Go to the source code of this file.
Macros | |
#define | UQ_FREEDATA(fn) ((uq_free_fn_t) fn) |
Typedefs | |
typedef void(* | uq_callback_t) (void *data) |
typedef void(* | uq_free_fn_t) (void *data) |
#define UQ_FREEDATA | ( | fn | ) | ((uq_free_fn_t) fn) |
Definition at line 22 of file update_queue.h.
Definition at line 20 of file update_queue.h.
Definition at line 21 of file update_queue.h.
void update_queue_add | ( | uq_callback_t | callback, |
void * | data | ||
) |
Add a callback to the update queue. NB: you can only set a callback once. Setting a callback twice will overwrite the previous.
Definition at line 345 of file update_queue.c.
Referenced by city_report_dialog_update(), city_report_dialog_update_city(), conn_list_dialog_update(), economy_report_dialog_update(), fullscreen_callback(), menus_init(), menus_update(), meswin_dialog_update(), multipliers_dialog_update(), players_dialog_update(), popup_city_dialog(), refresh_city_dialog(), resize_window_callback(), science_report_dialog_update(), set_client_page(), unit_select_dialog_update(), and units_report_dialog_update().
void update_queue_add_full | ( | uq_callback_t | callback, |
void * | data, | ||
uq_free_fn_t | free_data_func | ||
) |
Add a callback to the update queue. NB: you can only set a callback once. Setting a callback twice will overwrite the previous.
Definition at line 356 of file update_queue.c.
void update_queue_connect_processing_finished | ( | int | request_id, |
uq_callback_t | callback, | ||
void * | data | ||
) |
Connects the callback to the end of the processing (in server side) of the request.
Definition at line 450 of file update_queue.c.
Referenced by client_start_server_and_set_page(), and client_take_player().
void update_queue_connect_processing_finished_full | ( | int | request_id, |
uq_callback_t | callback, | ||
void * | data, | ||
uq_free_fn_t | free_data_func | ||
) |
Connects the callback to the end of the processing (in server side) of the request.
Definition at line 462 of file update_queue.c.
Referenced by do_disband_alternative().
void update_queue_connect_processing_started | ( | int | request_id, |
uq_callback_t | callback, | ||
void * | data | ||
) |
Connects the callback to the start of the processing (in server side) of the request.
Definition at line 423 of file update_queue.c.
void update_queue_connect_processing_started_full | ( | int | request_id, |
uq_callback_t | callback, | ||
void * | data, | ||
uq_free_fn_t | free_data_func | ||
) |
Connects the callback to the start of the processing (in server side) of the request.
Definition at line 435 of file update_queue.c.
Free the update queue.
Definition at line 242 of file update_queue.c.
Freezes the update queue.
Definition at line 216 of file update_queue.c.
bool update_queue_has_callback | ( | uq_callback_t | callback | ) |
Returns whether this callback is listed in the update queue.
Definition at line 367 of file update_queue.c.
Referenced by menus_update(), and update_queue_is_switching_page().
bool update_queue_has_callback_full | ( | uq_callback_t | callback, |
const void ** | data, | ||
uq_free_fn_t * | free_data_func | ||
) |
Returns whether this callback is listed in the update queue and get the its data and free function. 'data' and 'free_data_func' can be NULL.
Definition at line 378 of file update_queue.c.
Referenced by get_client_page().
Initialize the update queue.
Definition at line 169 of file update_queue.c.
Referenced by client_game_free(), client_game_init(), and client_main().
Free the update queue.
Definition at line 252 of file update_queue.c.
Referenced by update_queue_force_thaw(), update_queue_push(), and update_unqueue().
Returns whether there's page switching already in progress.
Definition at line 535 of file update_queue.c.
Referenced by set_turn_done_button_state().
Moves the instances waiting to the request_id to the callback queue.
Definition at line 288 of file update_queue.c.
Referenced by handle_processing_finished().
Moves the instances waiting to the request_id to the callback queue.
Definition at line 279 of file update_queue.c.
Referenced by handle_processing_started().
Free the update queue.
Definition at line 224 of file update_queue.c.
Referenced by update_queue_force_thaw().