Freeciv-3.3
|
#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) fc__attribute((nonnull(1 |
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 32 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 50 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 88 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 nullptr terminated strings.
Definition at line 79 of file capability.c.
Referenced by compat_load_020400(), packet_handlers_get(), and sg_load_map().