Freeciv-3.3: /fast/freeciv/nightly/main/tools/fcmp/mpcli.c File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Functions | Variables
mpcli.c File Reference
`#include <stdlib.h>`
`#include "fc_cmdline.h"`
`#include "fciconv.h"`
`#include "fcintl.h"`
`#include "log.h"`
`#include "mem.h"`
`#include "version.h"`
`#include "download.h"`
`#include "mpcmdline.h"`
`#include "mpdb.h"`
`#include "modinst.h"`

Go to the source code of this file.

## Functions

static void | msg_callback (const char *msg)
static void | setup_modpack_list (const char *name, const char *URL, const char *version, const char *license, enum modpack_type type, const char *subtype, const char *notes)
int | main (int argc, char *argv[])

## Variables

struct fcmp_params | fcmp

## Function Documentation

## ◆ main()

int main | ( | int | argc,
|  | char * | argv[]
| ) |  |

Entry point of the freeciv-modpack program

Definition at line 97 of file mpcli.c.

## ◆ msg_callback()

static void msg_callback | ( | const char * | msg | ) |

static

Progress indications from downloader

Definition at line 46 of file mpcli.c.

Referenced by main().

## ◆ setup_modpack_list()

static void setup_modpack_list | ( | const char * | name,
|  | const char * | URL,
|  | const char * | version,
|  | const char * | license,
|  | enum modpack_type | type,
|  | const char * | subtype,
|  | const char * | notes
| ) |  |

static

Build main modpack list view

Definition at line 54 of file mpcli.c.

Referenced by main().

## Variable Documentation

## ◆ fcmp

struct fcmp_params fcmp

Initial value:
= {
.list_url = MODPACK_LIST_URL,
.inst_prefix = NULL,
.autoinstall = NULL
}
incite_cost
char * incite_cost
Definition comments.c:74
MODPACK_LIST_URL
#define MODPACK_LIST_URL
Definition modinst.h:30

Definition at line 37 of file mpcli.c.

Referenced by download_modpack(), download_modpack_list(), download_modpack_recursive(), load_install_info_lists(), and main().