Freeciv-3.3: /fast/freeciv/nightly/main/tools/fcmp/download.h Source File

Freeciv-3.3

Loading...
Searching...
No Matches
download.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__MODPACK_DOWNLOAD_H
14#define FC__MODPACK_DOWNLOAD_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/* modinst */
21#include "modinst.h"
22
23#define MODPACKDL_SUFFIX ".mpdl"
24
25#define MODPACK_CAPSTR "+Freeciv-mpdl-Devel-3.2-2023.Sep.17"
26#define MODLIST_CAPSTR "+Freeciv-modlist-Devel-3.2-2022.Jul.14"
27
28#define FCMP_CONTROLD ".control"
29
30 typedef void (*dl_msg_callback)(const char *msg);
31 typedef void (*dl_pb_callback)(int downloaded, int max);
32
33const char *download_modpack(const char *URL,
34 const struct fcmp_params *fcmp,
35 dl_msg_callback mcb,
36 dl_pb_callback pbcb);
37
38 typedef void (*modpack_list_setup_cb)(const char *name, const char *URL,
39 const char *version,
40 const char *license,
41 enum modpack_type type,
42 const char *subtype,
43 const char *notes);
44
45const char *download_modpack_list(const struct fcmp_params *fcmp,
46 modpack_list_setup_cb cb,
47 dl_msg_callback mcb);
48
49#ifdef __cplusplus
50}
51#endif /* __cplusplus */
52
53#endif /* FC__MODPACK_DOWNLOAD_H */
incite_cost
char * incite_cost
Definition comments.c:74
modpack_list_setup_cb
void(* modpack_list_setup_cb)(const char *name, const char *URL, const char *version, const char *license, enum modpack_type type, const char *subtype, const char *notes)
Definition download.h:38
dl_msg_callback
void(* dl_msg_callback)(const char *msg)
Definition download.h:30
dl_pb_callback
void(* dl_pb_callback)(int downloaded, int max)
Definition download.h:31
download_modpack
const char * download_modpack(const char *URL, const struct fcmp_params *fcmp, dl_msg_callback mcb, dl_pb_callback pbcb)
Definition download.c:66
download_modpack_list
const char * download_modpack_list(const struct fcmp_params *fcmp, modpack_list_setup_cb cb, dl_msg_callback mcb)
Definition download.c:427
type
GType type
Definition repodlgs.c:1313
name
const char * name
Definition inputfile.c:127
modinst.h
fcmp
struct fcmp_params fcmp
Definition mpcli.c:37
fcmp_params
Definition modinst.h:17