summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2007-06-28 20:28:26 +0200
committerMichael Brown2007-06-28 20:28:26 +0200
commitdffdc285b36c288175ffcd4d1e131465c419b859 (patch)
tree341dcca12906d475db90d2071cb37782f07bb833 /src/include
parentAdded missing config.[ch] lines for FTP protocol (diff)
downloadipxe-dffdc285b36c288175ffcd4d1e131465c419b859.tar.gz
ipxe-dffdc285b36c288175ffcd4d1e131465c419b859.tar.xz
ipxe-dffdc285b36c288175ffcd4d1e131465c419b859.zip
Obsoleted by downloader.c
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/download.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/include/gpxe/download.h b/src/include/gpxe/download.h
deleted file mode 100644
index cb58b7adc..000000000
--- a/src/include/gpxe/download.h
+++ /dev/null
@@ -1,59 +0,0 @@
-#ifndef _GPXE_DOWNLOAD_H
-#define _GPXE_DOWNLOAD_H
-
-/** @file
- *
- * Download protocols
- *
- */
-
-#include <stdint.h>
-#include <gpxe/uaccess.h>
-#include <gpxe/async.h>
-#include <gpxe/buffer.h>
-#include <gpxe/uri.h>
-#include <gpxe/tables.h>
-
-/** A download protocol */
-struct download_protocol {
- /** Protocol name (e.g. "http") */
- const char *name;
- /** Start a download via this protocol
- *
- * @v uri Uniform Resource Identifier
- * @v buffer Buffer into which to download file
- * @v parent Parent asynchronous operation
- * @ret rc Return status code
- *
- * The @c uri and @c buffer will remain persistent for the
- * duration of the asynchronous operation.
- */
- int ( * start_download ) ( struct uri *uri, struct buffer *buffer,
- struct async *parent );
-};
-
-/** Register a download protocol */
-#define __download_protocol __table ( struct download_protocol, \
- download_protocols, 01 )
-
-/** A download in progress */
-struct download {
- /** User buffer allocated for the download */
- userptr_t *data;
- /** Size of the download */
- size_t *len;
-
- /** URI being downloaded */
- struct uri *uri;
- /** Expandable buffer for this download */
- struct buffer buffer;
- /** Download protocol */
- struct download_protocol *protocol;
- /** Asynchronous operation for this download */
- struct async async;
-};
-
-extern int start_download ( const char *uri_string, struct async *parent,
- userptr_t *data, size_t *len );
-
-#endif /* _GPXE_DOWNLOAD_H */