diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-22 11:27:01 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-22 11:27:01 +0300 |
commit | 73c079735a2af231ff63e7150fdee3b33bacbae6 (patch) | |
tree | 3426386cdbed3b4f99130beff13d61ee116366e3 /lib/rpmds.h | |
parent | a68f648cf1a1821924e08b8f99c14af9da216b10 (diff) | |
download | librpm-tizen-73c079735a2af231ff63e7150fdee3b33bacbae6.tar.gz librpm-tizen-73c079735a2af231ff63e7150fdee3b33bacbae6.tar.bz2 librpm-tizen-73c079735a2af231ff63e7150fdee3b33bacbae6.zip |
Switch rpmds API and internals to use rpmTagVal instead of rpmTag
- None of these require passing "true enum", the value is what counts.
In general, enums as function argument types are just a royal PITA
from C++, avoid when not strictly necessary.
Diffstat (limited to 'lib/rpmds.h')
-rw-r--r-- | lib/rpmds.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rpmds.h b/lib/rpmds.h index 7d5a95115..5a91ba167 100644 --- a/lib/rpmds.h +++ b/lib/rpmds.h @@ -102,7 +102,7 @@ rpmds rpmdsFree(rpmds ds); * @param flags unused * @return new dependency set */ -rpmds rpmdsNew(Header h, rpmTag tagN, int flags); +rpmds rpmdsNew(Header h, rpmTagVal tagN, int flags); /** \ingroup rpmds * Return new formatted dependency string. @@ -119,7 +119,7 @@ char * rpmdsNewDNEVR(const char * dspfx, const rpmds ds); * @param Flags comparison flags * @return new dependency set */ -rpmds rpmdsThis(Header h, rpmTag tagN, rpmsenseFlags Flags); +rpmds rpmdsThis(Header h, rpmTagVal tagN, rpmsenseFlags Flags); /** \ingroup rpmds * Create, load and initialize a dependency set of size 1. @@ -129,7 +129,7 @@ rpmds rpmdsThis(Header h, rpmTag tagN, rpmsenseFlags Flags); * @param Flags comparison flags * @return new dependency set */ -rpmds rpmdsSingle(rpmTag tagN, const char * N, const char * EVR, rpmsenseFlags Flags); +rpmds rpmdsSingle(rpmTagVal tagN, const char * N, const char * EVR, rpmsenseFlags Flags); /** \ingroup rpmds * Return a new dependency set of size 1 from the current iteration index @@ -193,7 +193,7 @@ rpmsenseFlags rpmdsFlags(const rpmds ds); * @param ds dependency set * @return current dependency type, 0 on invalid */ -rpmTag rpmdsTagN(const rpmds ds); +rpmTagVal rpmdsTagN(const rpmds ds); /** \ingroup rpmds * Return dependency header instance, ie whether the dependency comes from |