This is an attempt to add a libflashrom interface like the one described
in the wiki (http://flashrom.org/Libflashrom). It's not complete but
functional.
To keep the impact on existing code low, some glue code is added in a
new file libflashrom.c. The first commit changes some internal pointers
to const, to make the glue code a little smaller. The second commit adds
the interface (libflashrom.h), and the glue. The third adds a Doxyfile
for doxygen documentation. The fourth commit adapts the cli code to use
the new message output interface.
The last two commits fix two issues that we encountered when a client
wants to restart things after calling programmer_shutdown().
Nico Huber (6):
Make some char pointers const
Add a convenient libflashrom interface
Add Doxyfile for libflashrom documentation
Adapt CLI to use new libflashrom interface' print callback
On shutdown, reset count of registered programmers
Cleanup ichspi opcode settings on shutdown
Doxyfile | 1781 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Makefile | 8 +-
cli_classic.c | 3 +
cli_output.c | 7 +-
flash.h | 6 +-
flashrom.c | 12 +-
ichspi.c | 14 +
libflashrom.c | 443 ++++++++++++++
libflashrom.h | 55 ++
programmer.h | 2 +-
10 files changed, 2317 insertions(+), 14 deletions(-)
Kind regards,
Nico Huber
_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom