Change rpmdb internals and iterator APIs to use the appropriate tag types
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 22 Oct 2010 08:07:48 +0000 (11:07 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 22 Oct 2010 08:15:22 +0000 (11:15 +0300)
commita68f648cf1a1821924e08b8f99c14af9da216b10
tree9b47404a96c672d0287acf7c6a339e8c57605afb
parent61a764010089211209f78cf535685bc777cd3c25
Change rpmdb internals and iterator APIs to use the appropriate tag types
- The actual indexes are rpmDbiTags, and the tag passed to
  rpmtsInitIterator() and rpmdbInitIterator() always refers to a
  database index, not arbitrary header tag. The tag passed to
  rpmdbSetIteratorRE() however /does/ refer to a header tag. This rather
  important distinction can actually be expressed in the API.
- As the indexes are generated from header tags of the same value,
  most of these need to use the TagVal types instead of actual enums
  to avoid mismatches - the value is what counts, not it being an enum.
- Several places still have variables misleadingly named "rpmtag" when
  they refer to dbi tags, but leaving them for now to avoid excessive
  changes at once.
lib/backend/db3.c
lib/backend/dbconfig.c
lib/backend/dbi.h
lib/rpmdb.c
lib/rpmdb.h
lib/rpmts.c
lib/rpmts.h