Freeciv-3.2
|
#include "fc_prehdrs.h"
#include <string.h>
#include "shared.h"
#include "support.h"
#include "capability.h"
Go to the source code of this file.
Macros | |
#define | GET_TOKEN(start, end) |
Functions | |
static bool | fc_has_capability (const char *cap, const char *capstr, const size_t cap_len) |
bool | has_capability (const char *cap, const char *capstr) |
bool | has_capabilities (const char *us, const char *them) |
#define GET_TOKEN | ( | start, | |
end | |||
) |
Definition at line 28 of file capability.c.
|
static |
This routine returns TRUE if the capability in cap appears in the capability list in capstr. The capabilities in capstr are allowed to start with a "+", but the capability in cap must not.
Definition at line 46 of file capability.c.
Referenced by has_capabilities(), and has_capability().
This routine returns TRUE if all the mandatory capabilities in us appear in them.
Definition at line 86 of file capability.c.
Referenced by check_audiofile_capstr(), check_themespec_capabilities(), check_tilespec_capabilities(), download_modpack_list(), download_modpack_recursive(), handle_login_request(), load_install_info_list(), modpack_check_capabilities(), rscompat_check_capabilities(), savegame_load(), script_fcdb_capstr(), sg_load_savefile(), theme_read_toplevel(), and tileset_read_toplevel().
Wrapper for fc_has_capability() for NULL terminated strings.
Definition at line 77 of file capability.c.
Referenced by compat_load_020400(), packet_handlers_get(), and sg_load_map().