From: Patrick Georgi Date: Thu, 18 Aug 2011 09:36:03 +0000 (+0200) Subject: libpayload: export get_cbfs_header() X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=commitdiff_plain;h=b09e748f87c1a4a0b2ea2603fb5135afce006daa libpayload: export get_cbfs_header() Keep in sync with coreboot's version. Change-Id: I8a253446bd3b2ce9d05c6076a3f49f0260ecd5f9 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/158 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- diff --git a/payloads/libpayload/include/cbfs_core.h b/payloads/libpayload/include/cbfs_core.h index fbe008151..70368f8a7 100644 --- a/payloads/libpayload/include/cbfs_core.h +++ b/payloads/libpayload/include/cbfs_core.h @@ -176,5 +176,6 @@ void *cbfs_find_file(const char *name, int type); /* returns 0 on success, -1 on failure */ int cbfs_decompress(int algo, void *src, void *dst, int len); +struct cbfs_header *get_cbfs_header(void); #endif diff --git a/payloads/libpayload/libcbfs/cbfs_core.c b/payloads/libpayload/libcbfs/cbfs_core.c index 52ba58ded..596fa3ff7 100644 --- a/payloads/libpayload/libcbfs/cbfs_core.c +++ b/payloads/libpayload/libcbfs/cbfs_core.c @@ -55,7 +55,7 @@ /* returns pointer to master header or 0xffffffff if not found */ -static struct cbfs_header *get_cbfs_header(void) +struct cbfs_header *get_cbfs_header(void) { struct cbfs_header *header;