summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.h
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-04-26 11:30:49 +0200
committerDan McGee <dan@archlinux.org>2008-04-26 18:15:09 +0200
commitff9744aa1f9d3da380e722fd44a07b8c8a68d101 (patch)
treeb8d65bf6d02688e9a49e712e9a4ffde206502f11 /src/pacman/util.h
parent1b5a851851cce4ae53e82fdec128ff6d6f73393b (diff)
downloadpacman-ff9744aa1f9d3da380e722fd44a07b8c8a68d101.tar.gz
pacman-ff9744aa1f9d3da380e722fd44a07b8c8a68d101.tar.xz
Refactor the trans init and release code.
The calls to alpm_trans_init and alpm_trans_release (+ error checking) were duplicated between remove.c, sync.c and upgrade.c This patch introduces trans_init and trans_release functions in util.c to have this code just once. So instead of having to do the same change 3 times for fixing FS#10273, I just had to do it once (so I did it too :)) Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r--src/pacman/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h
index f2facbfc..722e4ab6 100644
--- a/src/pacman/util.h
+++ b/src/pacman/util.h
@@ -36,6 +36,8 @@
/* update speed for the fill_progress based functions */
#define UPDATE_SPEED_SEC 0.2f
+int trans_init(pmtranstype_t type, pmtransflag_t flags);
+int trans_release();
int needs_transaction();
int getcols();
int makepath(const char *path);