Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorSimon Gomizelj <simongmzlj@gmail.com>2013-03-07 01:32:41 -0500
committerAllan McRae <allan@archlinux.org>2013-03-10 09:01:56 +1000
commitce9fd69eba44d997a660c982a8149fae7acb6a29 (patch)
treedf011f59761e8a9352e323c184ed14be23b612ff /lib/libalpm/alpm.h
parent9876d9783979ec031d673e9a6df845e52fd2febb (diff)
make status/log messages reflect version change
Currently pacman either prints 'adding' or 'upgrading' when installing a package. This make pacman print and log the other possible actions: 'downgrade' and 'reinstall' Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index afa5cd7d..ccbdd1c6 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -321,6 +321,24 @@ typedef enum _alpm_event_t {
* to the callback, respectively.
*/
ALPM_EVENT_UPGRADE_DONE,
+ /** Package will be downgraded.
+ * A pointer to the downgraded package is passed to the callback.
+ */
+ ALPM_EVENT_DOWNGRADE_START,
+ /** Package was downgraded.
+ * A pointer to the new package, and a pointer to the old package is passed
+ * to the callback, respectively.
+ */
+ ALPM_EVENT_DOWNGRADE_DONE,
+ /** Package will be reinstalled.
+ * A pointer to the reinstalled package is passed to the callback.
+ */
+ ALPM_EVENT_REINSTALL_START,
+ /** Package was reinstalled.
+ * A pointer to the new package, and a pointer to the old package is passed
+ * to the callback, respectively.
+ */
+ ALPM_EVENT_REINSTALL_DONE,
/** Target package's integrity will be checked. */
ALPM_EVENT_INTEGRITY_START,
/** Target package's integrity was checked. */
@@ -400,6 +418,8 @@ typedef void (*alpm_cb_question)(alpm_question_t, void *, void *, void *, int *)
typedef enum _alpm_progress_t {
ALPM_PROGRESS_ADD_START,
ALPM_PROGRESS_UPGRADE_START,
+ ALPM_PROGRESS_DOWNGRADE_START,
+ ALPM_PROGRESS_REINSTALL_START,
ALPM_PROGRESS_REMOVE_START,
ALPM_PROGRESS_CONFLICTS_START,
ALPM_PROGRESS_DISKSPACE_START,