inspect: Abstract out db_dump code for listing RPM applications.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 14 Apr 2011 12:28:02 +0000 (13:28 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 14 Apr 2011 12:28:02 +0000 (13:28 +0100)
commita986e8dadb0c70634f6d1d89dd3e7bb5d9af3078
tree0c47b84880241960ccf6a775e8599057ad913869
parent3336b5448f12c9eb25bf7a0cecda1315c4cf07ea
inspect: Abstract out db_dump code for listing RPM applications.

There are two changes here:

(1) The code for listing RPM applications ran db_dump and parsed the
output.  We abstract out that parsing code into a separate reusable
module (src/dbdump.c).

(2) The old db_dump parsing code used db_dump -p (printable) format.
Instead use db_dump -k (hex) format so we can read binary fields.
po/POTFILES.in
src/Makefile.am
src/dbdump.c [new file with mode: 0644]
src/guestfs-internal.h
src/inspect_apps.c