Allow using things that were deprecated in gtk+-3.22.
[freeciv.git] / tools / mpdb.h
blob3a58e088e622d1555abb56f3bd618642b52d1c59
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__MPDB_H
14 #define FC__MPDB_H
16 /* common */
17 #include "fc_types.h"
19 /* modinst */
20 #include "download.h"
22 struct install_info
24 char name[MAX_LEN_NAME];
25 enum modpack_type type;
26 char version[MAX_LEN_NAME];
29 #define SPECLIST_TAG install_info
30 #define SPECLIST_TYPE struct install_info
31 #include "speclist.h"
33 #define install_info_list_iterate(ii_list, item) \
34 TYPED_LIST_ITERATE(struct install_info, ii_list, item)
35 #define install_info_list_iterate_end LIST_ITERATE_END
37 void load_install_info_list(const char *filename,
38 struct install_info_list *list);
39 void save_install_info_list(const char *filename,
40 struct install_info_list *list);
42 #endif /* FC__MPDB_H */