summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/bootstrap.h
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-02-22 22:03:26 +0000
committerian <ian@FreeBSD.org>2014-02-22 22:03:26 +0000
commitf462797a7d2b0afc9492194e33457e4887fcee49 (patch)
tree1ec255766dc52457cbda3322d6a06feba1ddcaf7 /sys/boot/common/bootstrap.h
parentfc6685cd75dceda6659773d1b991a614236555ab (diff)
downloadFreeBSD-src-f462797a7d2b0afc9492194e33457e4887fcee49.zip
FreeBSD-src-f462797a7d2b0afc9492194e33457e4887fcee49.tar.gz
Change file_loadraw() from static to public. Change the order of its
arguments from type,filename to filename,type to be consistant with other public file_whatever() functions, and change it to return a pointer to the preloaded_file struct describing the file. Adjust existing callers.
Diffstat (limited to 'sys/boot/common/bootstrap.h')
-rw-r--r--sys/boot/common/bootstrap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h
index 516b8a5..c9bcc52 100644
--- a/sys/boot/common/bootstrap.h
+++ b/sys/boot/common/bootstrap.h
@@ -233,6 +233,7 @@ int mod_loadkld(const char *name, int argc, char *argv[]);
struct preloaded_file *file_alloc(void);
struct preloaded_file *file_findfile(char *name, char *type);
struct file_metadata *file_findmetadata(struct preloaded_file *fp, int type);
+struct preloaded_file *file_loadraw(char *name, char *type);
void file_discard(struct preloaded_file *fp);
void file_addmetadata(struct preloaded_file *fp, int type, size_t size, void *p);
int file_addmodule(struct preloaded_file *fp, char *modname, int version,
OpenPOWER on IntegriCloud