The Battle for Wesnoth  1.19.5+dev
Namespaces | Macros | Functions | Variables
network_download_file.cpp File Reference
#include "network_download_file.hpp"
#include "filesystem.hpp"
#include "gettext.hpp"
#include "gui/dialogs/message.hpp"
#include "log.hpp"
#include <curl/curl.h>
Include dependency graph for network_download_file.cpp:

Go to the source code of this file.

Namespaces

 network
 High level network layer for config object transport.
 

Macros

#define ERR_NW   LOG_STREAM(err, log_network)
 
#define DBG_NW   LOG_STREAM(debug, log_network)
 

Functions

static size_t network::write_callback (char *contents, size_t size, size_t nmemb, void *buffer)
 
void network::download (const std::string &url, const std::string &local_path)
 Initiates a standalone download of a single file from an HTTPS URL. More...
 

Variables

static lg::log_domain log_network ("network")
 

Macro Definition Documentation

◆ DBG_NW

#define DBG_NW   LOG_STREAM(debug, log_network)

Definition at line 26 of file network_download_file.cpp.

◆ ERR_NW

#define ERR_NW   LOG_STREAM(err, log_network)

Definition at line 25 of file network_download_file.cpp.

Variable Documentation

◆ log_network

lg::log_domain log_network("network") ( "network"  )
static