aboutsummaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfstool.h
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-04-20 21:38:11 +0000
committerMyles Watson <mylesgw@gmail.com>2009-04-20 21:38:11 +0000
commitfeaaedc1cf99c12b8d1ab4bb233a311044d7f8b0 (patch)
tree0cfe0d7189dbc3351ac08daae8422246a1bf7012 /util/cbfstool/cbfstool.h
parent2cecce5740a23327a1095c6cba6e295e4b4d2963 (diff)
This patch adds
cbfstool extract [FILE] [NAME] It also factors out the csize calculation in rom_add, and fixes rom_delete so that it can handle deleting the last entry. Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4144 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/cbfstool/cbfstool.h')
-rw-r--r--util/cbfstool/cbfstool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cbfstool/cbfstool.h b/util/cbfstool/cbfstool.h
index 43abb6cb17..f36b28684c 100644
--- a/util/cbfstool/cbfstool.h
+++ b/util/cbfstool/cbfstool.h
@@ -70,6 +70,7 @@ struct cbfs_file *rom_find(struct rom *rom, unsigned int offset);
struct cbfs_file *rom_find_first(struct rom *);
struct cbfs_file *rom_find_next(struct rom *, struct cbfs_file *);
int rom_add(struct rom *rom, const char *name, void *, int size, int type);
+int rom_extract(struct rom *rom, const char *name, void **buf, unsigned long *size);
int rom_remove(struct rom *rom, const char *name);
unsigned int rom_used_space(struct rom *rom);
int rom_exists(struct rom *rom);