summaryrefslogtreecommitdiff
path: root/rpmdb/rpmdb.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-13 19:32:37 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-13 19:32:37 +0200
commit7e56c6355bea552d89e8d5d0a317763a8cee4a4f (patch)
treec18ddebb9e8e6da144d00909c61fdcecdf718057 /rpmdb/rpmdb.h
parentcbd7a684a4cd88bfa3383658790be3c37230707a (diff)
downloadlibrpm-tizen-7e56c6355bea552d89e8d5d0a317763a8cee4a4f.tar.gz
librpm-tizen-7e56c6355bea552d89e8d5d0a317763a8cee4a4f.tar.bz2
librpm-tizen-7e56c6355bea552d89e8d5d0a317763a8cee4a4f.zip
Use rpm_tag_t everywhere for rpm (header) tag type
- typedef'ed as int32_t for now, negative values used in some places for error cases - easy to grep, easy to change... - add RPMTAG_NOT_FOUND define, used in place of -1 "magic",
Diffstat (limited to 'rpmdb/rpmdb.h')
-rw-r--r--rpmdb/rpmdb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmdb/rpmdb.h b/rpmdb/rpmdb.h
index 92b4eb7bc..4afa4117c 100644
--- a/rpmdb/rpmdb.h
+++ b/rpmdb/rpmdb.h
@@ -118,7 +118,7 @@ int rpmdbVerify(const char * prefix);
* @param rpmtag rpm tag
* @return 0 on success
*/
-int rpmdbCloseDBI(rpmdb db, int rpmtag);
+int rpmdbCloseDBI(rpmdb db, rpm_tag_t rpmtag);
/** \ingroup rpmdb
* Close all database indices and free rpmdb.
@@ -197,7 +197,7 @@ int rpmdbPruneIterator(rpmdbMatchIterator mi,
* @param pattern pattern to match
* @return 0 on success
*/
-int rpmdbSetIteratorRE(rpmdbMatchIterator mi, rpmTag tag,
+int rpmdbSetIteratorRE(rpmdbMatchIterator mi, rpm_tag_t tag,
rpmMireMode mode, const char * pattern);
/** \ingroup rpmdb
@@ -235,7 +235,7 @@ int rpmdbSetHdrChk(rpmdbMatchIterator mi, rpmts ts,
* @param keylen key data length (0 will use strlen(keyp))
* @return NULL on failure
*/
-rpmdbMatchIterator rpmdbInitIterator(rpmdb db, rpmTag rpmtag,
+rpmdbMatchIterator rpmdbInitIterator(rpmdb db, rpm_tag_t rpmtag,
const void * keyp, size_t keylen);
/** \ingroup rpmdb