diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-22 09:40:43 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-22 09:40:43 +0300 |
commit | 935d0654a612c28494d104f168f00e18f411d247 (patch) | |
tree | 735dbb0910125a8393d305b644a812a41e08e797 /lib/rpmtypes.h | |
parent | 4b1e48298324cab35e5cac030dac06e7f37bf66b (diff) | |
download | librpm-tizen-935d0654a612c28494d104f168f00e18f411d247.tar.gz librpm-tizen-935d0654a612c28494d104f168f00e18f411d247.tar.bz2 librpm-tizen-935d0654a612c28494d104f168f00e18f411d247.zip |
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...
Diffstat (limited to 'lib/rpmtypes.h')
-rw-r--r-- | lib/rpmtypes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rpmtypes.h b/lib/rpmtypes.h index 5e4937528..936546a14 100644 --- a/lib/rpmtypes.h +++ b/lib/rpmtypes.h @@ -27,6 +27,7 @@ typedef struct headerIterator_s * HeaderIterator; typedef int32_t rpm_tag_t; typedef uint32_t rpm_tagtype_t; typedef uint32_t rpm_count_t; +typedef rpm_tag_t rpmTagVal; typedef void * rpm_data_t; typedef const void * rpm_constdata_t; |