![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Include dependency graph for mpdb.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | install_info |
Macros | |
| #define | SPECLIST_TAG install_info |
| #define | SPECLIST_TYPE struct install_info |
| #define | install_info_list_iterate(ii_list, item) TYPED_LIST_ITERATE(struct install_info, ii_list, item) |
| #define | install_info_list_iterate_end LIST_ITERATE_END |
Functions | |
| void | load_install_info_list (const char *filename) |
| Construct install info list from file. More... | |
| void | create_mpdb (const char *filename, bool scenario_db) |
| Create modpack database. More... | |
| void | open_mpdb (const char *filename, bool scenario_db) |
| Open existing database. More... | |
| void | close_mpdbs () |
| Close open databases. More... | |
| bool | mpdb_update_modpack (const char *name, enum modpack_type type, const char *version) |
| Update modpack information in database. More... | |
| const char * | mpdb_installed_version (const char *name, enum modpack_type type) |
| Return version of modpack. More... | |
| #define install_info_list_iterate | ( | ii_list, | |
| item | |||
| ) | TYPED_LIST_ITERATE(struct install_info, ii_list, item) |
| #define install_info_list_iterate_end LIST_ITERATE_END |
| #define SPECLIST_TAG install_info |
| #define SPECLIST_TYPE struct install_info |
| void close_mpdbs | ( | ) |
| void create_mpdb | ( | const char * | filename, |
| bool | scenario_db | ||
| ) |
Create modpack database.
Definition at line 132 of file mpdb.cpp.
Referenced by load_install_info_lists().
| void load_install_info_list | ( | const char * | filename | ) |
Construct install info list from file.
Definition at line 39 of file mpdb.cpp.
Referenced by load_install_info_lists().
| const char* mpdb_installed_version | ( | const char * | name, |
| enum modpack_type | type | ||
| ) |
Return version of modpack.
The caller is responsible to free the returned string.
Definition at line 251 of file mpdb.cpp.
Referenced by download_modpack(), mpgui::refresh_list_versions(), mpgui::setup_list(), and setup_modpack_list().
| bool mpdb_update_modpack | ( | const char * | name, |
| enum modpack_type | type, | ||
| const char * | version | ||
| ) |
Update modpack information in database.
Definition at line 209 of file mpdb.cpp.
Referenced by download_modpack(), and load_install_info_list().
| void open_mpdb | ( | const char * | filename, |
| bool | scenario_db | ||
| ) |
Open existing database.
Definition at line 177 of file mpdb.cpp.
Referenced by load_install_info_lists().