Debian Codegraph @

Descent3/mission_download.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/mission_download.h $
21 * $Revision: 5 $
22 * $Date: 3/26/00 10:29p $
23 * $Author: Kevin $
24 *
25 * Mission file downloading system
26 *
27 *
28 * $Log: /DescentIII/Main/mission_download.h $
29 *
30 * 5 3/26/00 10:29p Kevin
31 * MOD Downloader for 1.4 patch.
32 *
33 * 4 4/15/99 1:40a Jeff
34 * changes for linux compile
35 *
36 * 3 12/30/98 12:15p Kevin
37 * Auto Mission Download system
38 *
39 * 2 12/28/98 2:22p Kevin
40 * Initial mission downloading system
41 *
42 * 1 12/28/98 11:42a Kevin
43 *
44 *
45 */
46
47 #define MAX_MISSION_URL_LEN 300
48 #define MAX_MISSION_URL_COUNT 5
49
50 #define URL_ASK_POLL_TIME 2
51
52 extern int Got_url;
53
54 struct msn_urls {
55 char msnname[_MAX_PATH];
56 char URL[MAX_MISSION_URL_COUNT][MAX_MISSION_URL_LEN];
57 // Possibly some quality of service flags
58 };
59
60 // Function prototypes
61 void msn_DoAskForURL(uint8_t *indata, network_address *net_addr);
62 void msn_DoCurrMsnURLs(uint8_t *data, network_address *net_addr);
63 int msn_CheckGetMission(network_address *net_addr, char *filename);
64 int msn_ShowDownloadChoices(msn_urls *urls);
65 int msn_DownloadWithStatus(char *url, char *filename);
66 void msn_ClipURLToWidth(int width, char *string);
67 char *msn_SecondsToString(int time_sec);
68
69 int ModDownloadWithStatus(char *url, char *filename);
70 int CheckGetD3M(char *d3m);