summaryrefslogtreecommitdiffstats
path: root/loader2/urls.h
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-11-26 19:59:19 +0000
committerJeremy Katz <katzj@redhat.com>2002-11-26 19:59:19 +0000
commit32d18cdb5603ba71a27661cc59d78bfaf43a36cc (patch)
treecbef628263c93aba4f3dbb99573f0dc538db714f /loader2/urls.h
parent48ad552b63a95aec286aba9cd91ec0a745152e95 (diff)
downloadanaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.tar.gz
anaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.tar.xz
anaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.zip
restructuring and clean up of some of the older unused code in the loader.
still a lot to do, but this gets to stage2 for cd, nfs, http, and ftp booting from either the cd initrd or the pxe initrd
Diffstat (limited to 'loader2/urls.h')
-rw-r--r--loader2/urls.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/loader2/urls.h b/loader2/urls.h
new file mode 100644
index 000000000..29cd46798
--- /dev/null
+++ b/loader2/urls.h
@@ -0,0 +1,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