[flashrom] [PATCH]Hide hwaccess.h from public API

Patrick Georgi patrick at georgi-clan.de
Fri Jul 20 20:51:52 CEST 2012


Hi,

attached patch hides hwaccess.h (which is usually not necessary to use 
flashrom as library) from the public interface at flash.h.
For the most part, this simply adds the header to driver .c files, but 
it also required a small workaround to handle libpci types used in a 
bunch of prototypes.

Rationale: hwaccess.h at that place conflicts with libpayload which 
brings its own hardware access functions (which are wrapped properly to 
match flashrom's expectations in hwaccess.h already). They should also 
not matter in other contexts (and if someone requires them, they can 
still include hwaccess.h where needed).

Librarification of flashrom requires some more patches, like pulling 
out some functions of the CLI code - even if doit() is by no means a 
pretty interface, it makes things simpler. But one step after the 
other...


Signed-off-by: Patrick Georgi <patrick.georgi at secunet.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20120720-1-flashrom-no-hwaccess.h
Type: text/x-c
Size: 8238 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20120720/a643d08e/attachment.h>


More information about the flashrom mailing list