summaryrefslogtreecommitdiff
path: root/lib/rpmdb.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-04-07 12:28:02 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-04-07 12:28:02 +0300
commite16695e932e294ec600e673d38c41bde20931204 (patch)
tree2604d05647b30a3010a34f7ec54ff0277741d4d5 /lib/rpmdb.h
parent037538f00f3801d1698a30d107cd6468d6009fde (diff)
downloadlibrpm-tizen-e16695e932e294ec600e673d38c41bde20931204.tar.gz
librpm-tizen-e16695e932e294ec600e673d38c41bde20931204.tar.bz2
librpm-tizen-e16695e932e294ec600e673d38c41bde20931204.zip
Unify rpmdbAdd/Remove() interfaces
- rpmdbRemove() takes now a header as argument too - we need both the header number and the header itself there anyway, so might as well use the header we already have instead of flipping through backwards hoops to get to it
Diffstat (limited to 'lib/rpmdb.h')
-rw-r--r--lib/rpmdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpmdb.h b/lib/rpmdb.h
index 595a6362d..489bd4b7b 100644
--- a/lib/rpmdb.h
+++ b/lib/rpmdb.h
@@ -244,10 +244,10 @@ int rpmdbAdd(rpmdb db, Header h);
/** \ingroup rpmdb
* Remove package header from rpm database and indices.
* @param db rpm database
- * @param hdrNum package instance number in database
+ * @param h header
* @return 0 on success
*/
-int rpmdbRemove(rpmdb db, unsigned int hdrNum);
+int rpmdbRemove(rpmdb db, Header h);
/** \ingroup rpmdb
* Rebuild database indices from package headers.