Allow using things that were deprecated in gtk+-3.22.
[freeciv.git] / tools / modinst.h
blob853aa22e64b08be198a2a0a16cf3d67dbcf65c00
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 ***********************************************************************/
13 #ifndef FC__MODINST_H
14 #define FC__MODINST_H
16 struct fcmp_params
18 const char *list_url;
19 const char *inst_prefix;
20 const char *autoinstall;
23 #if IS_DEVEL_VERSION && ! IS_FREEZE_VERSION
24 #ifndef MODPACK_LIST_URL
25 #define MODPACK_LIST_URL "http://www.cazfi.net/freeciv/modinst/" DATASUBDIR "/modpack.list"
26 #endif
27 #define DEFAULT_URL_START "http://www.cazfi.net/freeciv/modinst/" DATASUBDIR "/"
28 #else /* IS_DEVEL_VERSION */
29 #ifndef MODPACK_LIST_URL
30 #define MODPACK_LIST_URL "http://modpack.freeciv.org/" DATASUBDIR "/modpack.list"
31 #endif
32 #define DEFAULT_URL_START "http://modpack.freeciv.org/" DATASUBDIR "/"
33 #endif /* IS_DEVEL_VERSION */
35 #define EXAMPLE_URL DEFAULT_URL_START "ancients.modpack"
37 #define SPECENUM_NAME modpack_type
38 #define SPECENUM_VALUE0 MPT_RULESET
39 #define SPECENUM_VALUE0NAME N_("Ruleset")
40 #define SPECENUM_VALUE1 MPT_TILESET
41 #define SPECENUM_VALUE1NAME N_("Tileset")
42 #define SPECENUM_VALUE2 MPT_MODPACK
43 #define SPECENUM_VALUE2NAME N_("Modpack")
44 #define SPECENUM_VALUE3 MPT_SCENARIO
45 #define SPECENUM_VALUE3NAME N_("Scenario")
46 #define SPECENUM_VALUE4 MPT_SOUNDSET
47 #define SPECENUM_VALUE4NAME N_("Soundset")
48 #define SPECENUM_VALUE5 MPT_MUSICSET
49 #define SPECENUM_VALUE5NAME N_("Musicset")
50 #include "specenum_gen.h"
52 void fcmp_init(void);
53 void fcmp_deinit(void);
55 void load_install_info_lists(struct fcmp_params *fcmp);
56 void save_install_info_lists(struct fcmp_params *fcmp);
57 void update_install_info_lists(const char *name,
58 enum modpack_type type,
59 const char *version);
60 const char *get_installed_version(const char *name, enum modpack_type type);
62 #endif /* FC__MODINST_H */