summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-16 16:42:43 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-16 16:42:43 +0000
commit89f0ccc3ccb6de1037ee5a74bdb18c064e5c2d01 (patch)
tree800a6e6b6a832cbde427245dc9c447f234766d8d /lib/libalpm/add.c
parent31da982deb9155ffa99d066a9575fa72aa1f77f5 (diff)
downloadpacman-89f0ccc3ccb6de1037ee5a74bdb18c064e5c2d01.tar.xz
reworked transaction prototypes
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 15ebd089..268be3e3 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -48,7 +48,7 @@
extern pmhandle_t *handle;
-int add_loadtarget(pmdb_t *db, pmtrans_t *trans, char *name)
+int add_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name)
{
pmpkg_t *info, *dummy;
PMList *j;
@@ -116,7 +116,7 @@ error:
return(-1);
}
-int add_prepare(pmdb_t *db, pmtrans_t *trans, PMList **data)
+int add_prepare(pmtrans_t *trans, pmdb_t *db, PMList **data)
{
PMList *lp;
@@ -213,7 +213,7 @@ int add_prepare(pmdb_t *db, pmtrans_t *trans, PMList **data)
return(0);
}
-int add_commit(pmdb_t *db, pmtrans_t *trans)
+int add_commit(pmtrans_t *trans, pmdb_t *db)
{
int i, ret = 0, errors = 0;
TAR *tar = NULL;
@@ -277,11 +277,11 @@ int add_commit(pmdb_t *db, pmtrans_t *trans)
/* copy over the install reason */
/* ORE?
info->reason = oldpkg->reason; */
- if(remove_loadtarget(db, tr, info->name) == -1) {
+ if(remove_loadtarget(tr, db, info->name) == -1) {
FREETRANS(tr);
RET_ERR(PM_ERR_TRANS_ABORT, -1);
}
- if(remove_commit(db, tr) == -1) {
+ if(remove_commit(tr, db) == -1) {
FREETRANS(tr);
RET_ERR(PM_ERR_TRANS_ABORT, -1);
}