summaryrefslogtreecommitdiffstats
path: root/loader2/urls.h
blob: 49290d832e5a2bd722108a52b2a4148b21b1e868 (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
27
28
29
#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 convertURLToUI(char *url, struct iurlinfo *ui);
char *convertUIToURL(struct iurlinfo *ui);

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, 
                         char *extraHeaders, int silentErrors, int flags);
int urlinstFinishTransfer(struct iurlinfo * ui, int fd, int flags);

#endif