summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMichael Brown2007-01-12 09:02:27 +0100
committerMichael Brown2007-01-12 09:02:27 +0100
commit475d6d1f7c7f169a89ea363ad819b0dd2975ae10 (patch)
tree000239996a57f863fb56326ed137bf85c3517934 /src/include/usr
parentAllow "imgexec" with no arguments to boot the file that was loaded with (diff)
downloadipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.tar.gz
ipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.tar.xz
ipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.zip
fetch() now knows nothing about struct image; it simply loads a file and
returns the allocated buffer.
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/fetch.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/usr/fetch.h b/src/include/usr/fetch.h
index e7c035be..372f6f8c 100644
--- a/src/include/usr/fetch.h
+++ b/src/include/usr/fetch.h
@@ -4,10 +4,13 @@
/**
* @file
*
- * Fetch file as executable/loadable image
+ * Fetch file
*
*/
-extern int fetch ( struct image *image, const char *filename );
+#include <stdint.h>
+#include <gpxe/uaccess.h>
+
+extern int fetch ( const char *filename, userptr_t *data, size_t *len );
#endif /* _USR_FETCH_H */