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.3-2024.Sep.18"
26#define MODLIST_CAPSTR "+Freeciv-modlist-Devel-3.3-2024.Sep.18"
27
28#define FCMP_CONTROLD ".control"
29
30typedef void (*dl_msg_callback)(const char *msg);
31typedef void (*dl_pb_callback)(int downloaded, int max);
32
33const char *download_modpack(const char *URL,
34 const struct fcmp_params *fcmp,
37
38typedef 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,
48
49#ifdef __cplusplus
50}
51#endif /* __cplusplus */
52
53#endif /* FC__MODPACK_DOWNLOAD_H */
char * incite_cost
Definition comments.c:76
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
void(* dl_msg_callback)(const char *msg)
Definition download.h:30
void(* dl_pb_callback)(int downloaded, int max)
Definition download.h:31
const char * download_modpack(const char *URL, const struct fcmp_params *fcmp, dl_msg_callback mcb, dl_pb_callback pbcb)
Definition download.c:66
const char * download_modpack_list(const struct fcmp_params *fcmp, modpack_list_setup_cb cb, dl_msg_callback mcb)
Definition download.c:427
GType type
Definition repodlgs.c:1313
const char * name
Definition inputfile.c:127
struct fcmp_params fcmp
Definition mpcli.c:37