Freeciv-3.3
Loading...
Searching...
No Matches
Functions
download.c File Reference
#include "fc_prehdrs.h"
#include <unistd.h>
#include <errno.h>
#include "cvercmp.h"
#include "capability.h"
#include "fcintl.h"
#include "log.h"
#include "mem.h"
#include "netfile.h"
#include "registry.h"
#include "mpdb.h"
#include "download.h"

Go to the source code of this file.

Functions

static const chardownload_modpack_recursive (const char *URL, const struct fcmp_params *fcmp, dl_msg_callback mcb, dl_pb_callback pbcb, int recursion)
 
static void nf_cb (const char *msg, void *data)
 
const chardownload_modpack (const char *URL, const struct fcmp_params *fcmp, dl_msg_callback mcb, dl_pb_callback pbcb)
 
const chardownload_modpack_list (const struct fcmp_params *fcmp, modpack_list_setup_cb cb, dl_msg_callback mcb)
 

Function Documentation

◆ download_modpack()

const char * download_modpack ( const char URL,
const struct fcmp_params fcmp,
dl_msg_callback  mcb,
dl_pb_callback  pbcb 
)

Download modpack from a given URL

Definition at line 66 of file download.c.

Referenced by download_thread(), download_thread(), download_thread(), main(), and mpqt_worker::run().

◆ download_modpack_list()

const char * download_modpack_list ( const struct fcmp_params fcmp,
modpack_list_setup_cb  cb,
dl_msg_callback  mcb 
)

Download modpack list

Definition at line 427 of file download.c.

Referenced by main(), main(), modinst_setup_widgets(), modinst_setup_widgets(), and modinst_setup_widgets().

◆ download_modpack_recursive()

static const char * download_modpack_recursive ( const char URL,
const struct fcmp_params fcmp,
dl_msg_callback  mcb,
dl_pb_callback  pbcb,
int  recursion 
)
static

Download modpack and its recursive dependencies.

Definition at line 77 of file download.c.

Referenced by download_modpack(), and download_modpack_recursive().

◆ nf_cb()

static void nf_cb ( const char msg,
void data 
)
static

Message callback called by netfile module when downloading files.

Definition at line 54 of file download.c.

Referenced by download_modpack_list(), and download_modpack_recursive().