diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-22 09:48:24 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-22 09:59:56 +0300 |
commit | 757d0b443b486b8745aabc61fb6809ae1ecf14be (patch) | |
tree | 346cb461b5505dfc024c0d82ca856dba55b07a75 /lib/misc.h | |
parent | 935d0654a612c28494d104f168f00e18f411d247 (diff) | |
download | librpm-tizen-757d0b443b486b8745aabc61fb6809ae1ecf14be.tar.gz librpm-tizen-757d0b443b486b8745aabc61fb6809ae1ecf14be.tar.bz2 librpm-tizen-757d0b443b486b8745aabc61fb6809ae1ecf14be.zip |
Switch header APIs to use rpmTagVal instead of rpmTag
- The header getters are used for both signature header and the "normal"
header, and even beyond that there's no requirement for a tag in
the header to be part of rpmTag enum. The headerPutFoo() variants
technically do require the tag to be found in the tag table (ie be
an rpmTag) but they still operate on the integer value, they dont
require it to be a "true" enum.
- Inside tagexts.c there are a few "true" enum uses in the
internal helper functions, leave them be.
- While this technically changes some the most commonly used API's,
this wont affect callers really: if the callers were using an enum
before, enum can always be cast naturally to an integer. The other
way around was the problematic part (ie the braindamage we're fixing
here now...)
Diffstat (limited to 'lib/misc.h')
-rw-r--r-- | lib/misc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/misc.h b/lib/misc.h index 76c22e177..2cec97ef1 100644 --- a/lib/misc.h +++ b/lib/misc.h @@ -31,7 +31,7 @@ typedef char * (*headerTagFormatFunction) (rpmtd td, char * formatPrefix); typedef int (*headerTagTagFunction) (Header h, rpmtd td, headerGetFlags hgflags); RPM_GNUC_INTERNAL -headerTagTagFunction rpmHeaderTagFunc(rpmTag tag); +headerTagTagFunction rpmHeaderTagFunc(rpmTagVal tag); RPM_GNUC_INTERNAL headerTagFormatFunction rpmHeaderFormatFuncByName(const char *fmt); |