Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/update_queue.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
update_queue.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__UPDATE_QUEUE_H
14#define FC__UPDATE_QUEUE_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20 typedef void (*uq_callback_t) (void *data);
21 typedef void (*uq_free_fn_t) (void *data);
22#define UQ_FREEDATA(fn) ((uq_free_fn_t) fn)
23
24/* General update queue. */
25void update_queue_init(void);
26void update_queue_free(void);
27
28void update_queue_freeze(void);
29void update_queue_thaw(void);
30void update_queue_force_thaw(void);
31bool update_queue_is_frozen(void);
32
33void update_queue_processing_started(int request_id);
34void update_queue_processing_finished(int request_id);
35
36/* User interface. */
37void update_queue_add(uq_callback_t callback, void *data);
38void update_queue_add_full(uq_callback_t callback, void *data,
39 uq_free_fn_t free_data_func);
40bool update_queue_has_callback(uq_callback_t callback);
41bool update_queue_has_callback_full(uq_callback_t callback,
42 const void **data,
43 uq_free_fn_t *free_data_func);
44
45void update_queue_connect_processing_started(int request_id,
46 uq_callback_t callback,
47 void *data);
48void update_queue_connect_processing_started_full(int request_id,
49 uq_callback_t callback,
50 void *data,
51 uq_free_fn_t
52 free_data_func);
53void update_queue_connect_processing_finished(int request_id,
54 uq_callback_t callback,
55 void *data);
56void update_queue_connect_processing_finished_full(int request_id,
57 uq_callback_t callback,
58 void *data,
59 uq_free_fn_t
60 free_data_func);
61
62bool update_queue_is_switching_page(void);
63
64#ifdef __cplusplus
65}
66#endif /* __cplusplus */
67
68#endif /* FC__UPDATE_QUEUE_H */
callback
Definition gui_main.c:2186
update_queue_is_switching_page
bool update_queue_is_switching_page(void)
Definition update_queue.c:535
update_queue_free
void update_queue_free(void)
Definition update_queue.c:190
update_queue_is_frozen
bool update_queue_is_frozen(void)
Definition update_queue.c:252
update_queue_connect_processing_finished_full
void update_queue_connect_processing_finished_full(int request_id, uq_callback_t callback, void *data, uq_free_fn_t free_data_func)
Definition update_queue.c:462
update_queue_add_full
void update_queue_add_full(uq_callback_t callback, void *data, uq_free_fn_t free_data_func)
Definition update_queue.c:356
update_queue_connect_processing_started
void update_queue_connect_processing_started(int request_id, uq_callback_t callback, void *data)
Definition update_queue.c:423
uq_free_fn_t
void(* uq_free_fn_t)(void *data)
Definition update_queue.h:21
update_queue_thaw
void update_queue_thaw(void)
Definition update_queue.c:224
update_queue_init
void update_queue_init(void)
Definition update_queue.c:169
uq_callback_t
void(* uq_callback_t)(void *data)
Definition update_queue.h:20
update_queue_has_callback_full
bool update_queue_has_callback_full(uq_callback_t callback, const void **data, uq_free_fn_t *free_data_func)
Definition update_queue.c:378
update_queue_freeze
void update_queue_freeze(void)
Definition update_queue.c:216
update_queue_force_thaw
void update_queue_force_thaw(void)
Definition update_queue.c:242
update_queue_connect_processing_started_full
void update_queue_connect_processing_started_full(int request_id, uq_callback_t callback, void *data, uq_free_fn_t free_data_func)
Definition update_queue.c:435
update_queue_processing_finished
void update_queue_processing_finished(int request_id)
Definition update_queue.c:288
update_queue_connect_processing_finished
void update_queue_connect_processing_finished(int request_id, uq_callback_t callback, void *data)
Definition update_queue.c:450
update_queue_add
void update_queue_add(uq_callback_t callback, void *data)
Definition update_queue.c:345
update_queue_processing_started
void update_queue_processing_started(int request_id)
Definition update_queue.c:279
update_queue_has_callback
bool update_queue_has_callback(uq_callback_t callback)
Definition update_queue.c:367