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)
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
18 #endif /* __cplusplus */
23 #define MODPACK_SUFFIX ".modpack"
25 #define MODPACK_CAPSTR "+Freeciv-2.6-modpack"
26 #define MODLIST_CAPSTR "+Freeciv-2.6-modlist"
28 #define FCMP_CONTROLD ".control"
30 typedef void (*dl_msg_callback
)(const char *msg
);
31 typedef void (*dl_pb_callback
)(int downloaded
, int max
);
33 const char *download_modpack(const char *URL
,
34 const struct fcmp_params
*fcmp
,
38 typedef void (*modpack_list_setup_cb
)(const char *name
, const char *URL
,
41 enum modpack_type type
,
45 const char *download_modpack_list(const struct fcmp_params
*fcmp
,
46 modpack_list_setup_cb cb
,
51 #endif /* __cplusplus */
53 #endif /* FC__MODPACK_DOWNLOAD_H */