Freeciv-3.2
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-3.2-modpack"
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
31const char *modpack_has_ruleset(struct section_file *sf);
32
33bool modpack_check_capabilities(struct section_file *file, const char *us_capstr,
34 const char *filename, bool verbose);
35
36const char *modpack_serv_file(struct section_file *sf);
37const char *modpack_rulesetdir(struct section_file *sf);
38
39typedef void (*mrc_cb)(const char*, const char *, void *data);
40void modpack_ruleset_cache_iterate(mrc_cb cb, void *data);
41
42#ifdef __cplusplus
43}
44#endif /* __cplusplus */
45
46#endif /* FC__MODPACK_H */
char * incite_cost
Definition comments.c:75
const char * name
Definition inputfile.c:127
void modpacks_free(void)
Definition modpack.c:58
const char * modpack_has_ruleset(struct section_file *sf)
Definition modpack.c:121
void(* mrc_cb)(const char *, const char *, void *data)
Definition modpack.h:39
void modpack_ruleset_cache_iterate(mrc_cb cb, void *data)
Definition modpack.c:202
bool modpack_check_capabilities(struct section_file *file, const char *us_capstr, const char *filename, bool verbose)
Definition modpack.c:74
const char * modpack_file_from_ruleset_cache(const char *name)
Definition modpack.c:188
const char * modpack_serv_file(struct section_file *sf)
Definition modpack.c:140
void modpacks_init(void)
Definition modpack.c:48
const char * modpack_rulesetdir(struct section_file *sf)
Definition modpack.c:152
struct fileinfo_list * get_modpacks_list(void)
Definition modpack.c:107
const char * modpack_cache_ruleset(struct section_file *sf)
Definition modpack.c:165