Make fingerprint struct opaque outside fprint.c
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 14 Sep 2012 06:28:50 +0000 (09:28 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 14 Sep 2012 10:41:41 +0000 (13:41 +0300)
commit3d65369920e539b51142f981fd8faff7d7dad5ed
tree2151f12a2ee791a2d7cb11e62b4051ab33f18fb1
parent9e7adb8f14303edf0262744cea7a7f0a650f8ca2
Make fingerprint struct opaque outside fprint.c

- rpmfi cannot know anything about the storage, so rpmfiFpxIndex()
  cannot be... change it to rpmfiFps() which only returns the pointer
  we got from fpLookupList()
- Change fpCacheGetByFp() to assume it gets passed an array of fps,
  and take an additional index argument. Return the fingerprint
  pointer on success, NULL on not found to allow further operations
  on the fp without knowing its internals.
lib/fprint.c
lib/fprint.h
lib/rpmfi.c
lib/rpmfi_internal.h
lib/transaction.c