Freeciv-3.3
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/* utility */
21#include "support.h" /* bool */
22
23typedef void (*uq_callback_t) (void *data);
24typedef void (*uq_free_fn_t) (void *data);
25#define UQ_FREEDATA(fn) ((uq_free_fn_t) fn)
26
27/* General update queue. */
28void update_queue_init(void);
29void update_queue_free(void);
30
31void update_queue_freeze(void);
32void update_queue_thaw(void);
34bool update_queue_is_frozen(void);
35
38
39/* User interface. */
42 uq_free_fn_t free_data_func);
45 const void **data,
46 uq_free_fn_t *free_data_func);
47
50 void *data);
53 void *data,
55 free_data_func);
58 void *data);
61 void *data,
63 free_data_func);
64
66
70
71/**************************************************************************
72 Toplevel window pages modes.
73**************************************************************************/
74#define SPECENUM_NAME client_pages
75#define SPECENUM_VALUE0 PAGE_MAIN /* Main menu, aka intro page. */
76#define SPECENUM_VALUE1 PAGE_START /* Start new game page. */
77#define SPECENUM_VALUE2 PAGE_SCENARIO /* Start new scenario page. */
78#define SPECENUM_VALUE3 PAGE_LOAD /* Load saved game page. */
79#define SPECENUM_VALUE4 PAGE_NETWORK /* Connect to network page. */
80#define SPECENUM_VALUE5 PAGE_GAME /* In game page. */
81#include "specenum_gen.h"
82
83void set_client_page(enum client_pages page);
86
87#ifdef __cplusplus
88}
89#endif /* __cplusplus */
90
91#endif /* FC__UPDATE_QUEUE_H */
char * incite_cost
Definition comments.c:76
bool update_queue_is_switching_page(void)
void update_queue_free(void)
void client_start_server_and_set_page(enum client_pages page)
bool update_queue_is_frozen(void)
void economy_report_dialog_update(void)
void set_client_page(enum client_pages page)
void update_queue_connect_processing_finished_full(int request_id, uq_callback_t callback, void *data, uq_free_fn_t free_data_func)
void update_queue_add_full(uq_callback_t callback, void *data, uq_free_fn_t free_data_func)
void update_queue_connect_processing_started(int request_id, uq_callback_t callback, void *data)
void(* uq_free_fn_t)(void *data)
void science_report_dialog_update(void)
void update_queue_thaw(void)
void update_queue_init(void)
void(* uq_callback_t)(void *data)
bool update_queue_has_callback_full(uq_callback_t callback, const void **data, uq_free_fn_t *free_data_func)
void update_queue_freeze(void)
void update_queue_force_thaw(void)
void update_queue_connect_processing_started_full(int request_id, uq_callback_t callback, void *data, uq_free_fn_t free_data_func)
void update_queue_processing_finished(int request_id)
void units_report_dialog_update(void)
void update_queue_connect_processing_finished(int request_id, uq_callback_t callback, void *data)
void update_queue_add(uq_callback_t callback, void *data)
void update_queue_processing_started(int request_id)
bool update_queue_has_callback(uq_callback_t callback)
enum client_pages get_client_page(void)