rpmTagFoo() getters take arbitrary integers, not rpmTag enums
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 22 Oct 2010 06:40:43 +0000 (09:40 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 22 Oct 2010 06:40:43 +0000 (09:40 +0300)
commit935d0654a612c28494d104f168f00e18f411d247
tree735dbb0910125a8393d305b644a812a41e08e797
parent4b1e48298324cab35e5cac030dac06e7f37bf66b
rpmTagFoo() getters take arbitrary integers, not rpmTag enums
- Another step to clean up the enum braindamage...
- rpmTag values are the only values that will be found, but it doesn't
  mean the values passed are rpmTag enum members - eg anything from
  a header is not. rpmTagGetValue() does come close to returning true
  enums, but there's RPMDBI_PACKAGES and then RPMTAG_NOT_FOUND, neither
  of which are actually tags.
- Introducing a new rpmTagVal typedef. It's just an alias for the
  "lowlevel" rpm_tag_t type but visually more in line with the other
  rpmTagFoo bits - to be used with the "higher level" tags whereas
  rpm_tag_t is the "physical" type. Not that it makes any difference...
lib/rpmtag.h
lib/rpmtypes.h
lib/tagname.c