The Battle for Wesnoth  1.19.7+dev
Macros | Functions | Variables
state.cpp File Reference
#include "addon/state.hpp"
#include "config.hpp"
#include "addon/manager.hpp"
#include "log.hpp"
Include dependency graph for state.cpp:

Go to the source code of this file.

Macros

#define LOG_AC   LOG_STREAM(info, log_addons_client)
 

Functions

addon_tracking_info get_addon_tracking_info (const addon_info &addon)
 Get information about an add-on comparing its local state with the add-ons server entry. More...
 

Variables

static lg::log_domain log_addons_client ("addons-client")
 

Macro Definition Documentation

◆ LOG_AC

#define LOG_AC   LOG_STREAM(info, log_addons_client)

Definition at line 23 of file state.cpp.

Function Documentation

◆ get_addon_tracking_info()

addon_tracking_info get_addon_tracking_info ( const addon_info addon)

Get information about an add-on comparing its local state with the add-ons server entry.

The add-on doesn't need to be locally installed; this is part of the retrieved information.

Parameters
addonThe add-ons server entry information.
Returns
The local tracking status information.

Definition at line 25 of file state.cpp.

References ADDON_INSTALLED, ADDON_INSTALLED_LOCAL_ONLY, ADDON_INSTALLED_OUTDATED, ADDON_INSTALLED_UPGRADABLE, ADDON_NONE, addon_info::current_version, get_addon_pbl_info(), get_addon_version_info(), config::has_attribute(), have_addon_in_vcs_tree(), have_addon_pbl_info(), addon_info::id, is_addon_installed(), addon_info::local_only, t, and addon_info::versions.

Referenced by addons_client::do_resolve_addon_dependencies(), gui2::addon_list::get_remote_addon_id(), gui2::dialogs::addon_manager::load_addon_list(), and gui2::addon_list::set_addons().

Variable Documentation

◆ log_addons_client

lg::log_domain log_addons_client("addons-client") ( "addons-client"  )
static