Document our supported rpmdb indexes in the API via an enum of their own
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 22 Oct 2010 07:17:55 +0000 (10:17 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 22 Oct 2010 07:17:55 +0000 (10:17 +0300)
commit61a764010089211209f78cf535685bc777cd3c25
tree99d77b064e842862c64e2de890529c338557c440
parenta4bca08ae1541c2b45faa09c313ec2ae0bfe875b
Document our supported rpmdb indexes in the API via an enum of their own
- Now that our indexes are actually hardwired in the code we can
  properly separate rpmtag vs db index names.
- Defined similarly to rpmTags, with rpmDbiTag being the "true enum"
  and rpmDbiTagVal the integral type they present. As many of the
  indexes are defined via RPMTAG values (and need to remain that
  way to avoid breaking every single API user) we need to have a
  compatible type with rpmTags.
- These would logically belong to rpmdb.h but keeping in rpmtag.h
  to have them available "everywhere", we can't go including rpmdb.h
  from rpmtag.h so keeping them here avoids potential unnecessary breakage.
lib/rpmtag.h
lib/rpmtypes.h