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:
authorAllan McRae <allan@archlinux.org>2015-12-14 13:39:58 +1000
committerAllan McRae <allan@archlinux.org>2015-12-15 15:12:32 +1000
commit8d3bd4ec13940da70f946e6e63d59a05c89cbb50 (patch)
treefe1d4e60c27d4f2797b1517aae8f88c722339d33 /lib/libalpm/alpm.h
parent132ec4c3b9f761fb76ff9cf567f3723db62d72df (diff)
Add ALPM_EVENT_TRANSACTION_{START,DONE} events
This provides a way to detect when the processing of package changes starts, allowing pacman to delineate hook output and package installation/removal output. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index f8e1f254..8fcdfdfc 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -384,6 +384,10 @@ typedef enum _alpm_event_type_t {
ALPM_EVENT_INTERCONFLICTS_START,
/** Inter-conflicts were checked for target package. */
ALPM_EVENT_INTERCONFLICTS_DONE,
+ /** Processing the package transaction is starting. */
+ ALPM_EVENT_TRANSACTION_START,
+ /** Processing the package transaction is finished. */
+ ALPM_EVENT_TRANSACTION_DONE,
/** Package will be installed/upgraded/downgraded/re-installed/removed; See
* alpm_event_package_operation_t for arguments. */
ALPM_EVENT_PACKAGE_OPERATION_START,