Freeciv-3.3: /fast/freeciv/nightly/main/common/modpack.h Source File

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
34struct fileinfo_list *get_modpacks_list(void);
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
45 typedef 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 */
incite_cost
char * incite_cost
Definition comments.c:74
name
const char * name
Definition inputfile.c:127
modpack_file_from_tileset_cache
const char * modpack_file_from_tileset_cache(const char *name)
Definition modpack.c:312
modpacks_free
void modpacks_free(void)
Definition modpack.c:62
modpack_has_ruleset
const char * modpack_has_ruleset(struct section_file *sf)
Definition modpack.c:144
mrc_cb
void(* mrc_cb)(const char *, const char *, void *data)
Definition modpack.h:45
modpack_tileset_target
const char * modpack_tileset_target(const char *name)
Definition modpack.c:329
modpack_tileset_cache_iterate
void modpack_tileset_cache_iterate(mrc_cb cb, void *data)
Definition modpack.c:360
modpack_ruleset_cache_iterate
void modpack_ruleset_cache_iterate(mrc_cb cb, void *data)
Definition modpack.c:346
modpack_check_capabilities
bool modpack_check_capabilities(struct section_file *file, const char *us_capstr, const char *filename, bool verbose)
Definition modpack.c:92
modpack_has_tileset
const char * modpack_has_tileset(struct section_file *sf)
Definition modpack.c:167
modpack_file_from_ruleset_cache
const char * modpack_file_from_ruleset_cache(const char *name)
Definition modpack.c:295
modpack_serv_file
const char * modpack_serv_file(struct section_file *sf)
Definition modpack.c:189
modpacks_init
void modpacks_init(void)
Definition modpack.c:50
modpack_rulesetdir
const char * modpack_rulesetdir(struct section_file *sf)
Definition modpack.c:204
get_modpacks_list
struct fileinfo_list * get_modpacks_list(void)
Definition modpack.c:127
modpack_cache_ruleset
const char * modpack_cache_ruleset(struct section_file *sf)
Definition modpack.c:235
modpack_cache_tileset
const char * modpack_cache_tileset(struct section_file *sf)
Definition modpack.c:262
modpack_tilespec
const char * modpack_tilespec(struct section_file *sf)
Definition modpack.c:219
section_file
Definition section_file.h:36