Removed silencing of gtk warning logs from gtk3.22-client.
[freeciv.git] / client / repodlgs_common.h
blob3330727e977724db23d7119ceba1e555e2a69d44
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.
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 ***********************************************************************/
14 #ifndef FC__REPODLGS_COMMON_H
15 #define FC__REPODLGS_COMMON_H
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
21 #include "fc_types.h"
22 #include "improvement.h"
23 #include "unittype.h"
25 #include "citydlg_common.h" /* for city request functions */
27 struct improvement_entry
29 struct impr_type *type;
30 int count, redundant, cost, total_cost;
33 struct unit_entry
35 struct unit_type *type;
36 int count, cost, total_cost;
39 void get_economy_report_data(struct improvement_entry *entries,
40 int *num_entries_used, int *total_cost,
41 int *total_income);
42 /* This function returns an array with the gold upkeeped units.
43 * FIXME: Many clients doesn't yet use this function and show also only the
44 * buildings in the economy reports
45 * I think that there should be only one function which returns an array of
46 * char* arrays like some other common functions but that means updating all
47 * client simultaneously and I simply can't */
48 void get_economy_report_units_data(struct unit_entry *entries,
49 int *num_entries_used, int *total_cost);
51 void sell_all_improvements(struct impr_type *pimprove, bool redundant_only,
52 char *message, size_t message_sz);
53 void disband_all_units(struct unit_type *punittype, bool in_cities_only,
54 char *message, size_t message_sz);
56 #ifdef __cplusplus
58 #endif /* __cplusplus */
60 #endif /* FC__REPODLGS_COMMON_H */