Freeciv-3.3
Loading...
Searching...
No Matches
modpack.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__MODPACK_H
14#define FC__MODPACK_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20#define MODPACK_CAPSTR "+Freeciv-modpack-3.3-Devel-2024.Apr.14"
21
22#define MODPACK_SUFFIX ".modpack"
23
24void modpacks_init(void);
25void modpacks_free(void);
26
27const char *modpack_cache_ruleset(struct section_file *sf);
28const char *modpack_file_from_ruleset_cache(const char *name);
29
30const char *modpack_cache_tileset(struct section_file *sf);
31const char *modpack_file_from_tileset_cache(const char *name);
32const char *modpack_tileset_target(const char *name);
33
35const char *modpack_has_ruleset(struct section_file *sf);
36const char *modpack_has_tileset(struct section_file *sf);
37
38bool modpack_check_capabilities(struct section_file *file, const char *us_capstr,
39 const char *filename, bool verbose);
40
41const char *modpack_serv_file(struct section_file *sf);
42const char *modpack_rulesetdir(struct section_file *sf);
43const char *modpack_tilespec(struct section_file *sf);
44
45typedef void (*mrc_cb)(const char *, const char *, void *data);
46void modpack_ruleset_cache_iterate(mrc_cb cb, void *data);
47void modpack_tileset_cache_iterate(mrc_cb cb, void *data);
48
49#ifdef __cplusplus
50}
51#endif /* __cplusplus */
52
53#endif /* FC__MODPACK_H */
char * incite_cost
Definition comments.c:76
const char * name
Definition inputfile.c:127
const char * modpack_file_from_tileset_cache(const char *name)
Definition modpack.c:312
void modpacks_free(void)
Definition modpack.c:62
const char * modpack_has_ruleset(struct section_file *sf)
Definition modpack.c:144
void(* mrc_cb)(const char *, const char *, void *data)
Definition modpack.h:45
const char * modpack_tileset_target(const char *name)
Definition modpack.c:329
void modpack_tileset_cache_iterate(mrc_cb cb, void *data)
Definition modpack.c:360
void modpack_ruleset_cache_iterate(mrc_cb cb, void *data)
Definition modpack.c:346
bool modpack_check_capabilities(struct section_file *file, const char *us_capstr, const char *filename, bool verbose)
Definition modpack.c:92
const char * modpack_has_tileset(struct section_file *sf)
Definition modpack.c:167
const char * modpack_file_from_ruleset_cache(const char *name)
Definition modpack.c:295
const char * modpack_serv_file(struct section_file *sf)
Definition modpack.c:189
void modpacks_init(void)
Definition modpack.c:50
const char * modpack_rulesetdir(struct section_file *sf)
Definition modpack.c:204
struct fileinfo_list * get_modpacks_list(void)
Definition modpack.c:127
const char * modpack_cache_ruleset(struct section_file *sf)
Definition modpack.c:235
const char * modpack_cache_tileset(struct section_file *sf)
Definition modpack.c:262
const char * modpack_tilespec(struct section_file *sf)
Definition modpack.c:219