summaryrefslogtreecommitdiffstats
path: root/loader/urls.h
blob: 29cd4679820d4c38dfd366b5de1df4753d17ccd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef H_LOADER_URLS
#define H_LOADER_URLS

enum urlprotocol_t { URL_METHOD_FTP, URL_METHOD_HTTP };
typedef enum urlprotocol_t urlprotocol;

struct iurlinfo {
    urlprotocol protocol;
    char * address;
    char * login;
    char * password;
    char * prefix;
    char * proxy;
    char * proxyPort;
    int ftpPort;
};

int setupRemote(struct iurlinfo * ui);
int urlMainSetupPanel(struct iurlinfo * ui, urlprotocol protocol,
		      char * doSecondarySetup);
int urlSecondarySetupPanel(struct iurlinfo * ui, urlprotocol protocol);
int urlinstStartTransfer(struct iurlinfo * ui, char * filename,
			 int silentErrors);
int urlinstFinishTransfer(struct iurlinfo * ui, int fd);

#endif