From 132ec4c3b9f761fb76ff9cf567f3723db62d72df Mon Sep 17 00:00:00 2001 From: Olivier Brunel Date: Sun, 6 Dec 2015 18:35:37 +0100 Subject: Add events ALPM_EVENT_HOOK_{START,DONE} Add events to let frontends know when hooks are being processed (and when it's done), as that might be useful to update the UI. Signed-off-by: Olivier Brunel --- lib/libalpm/hook.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/libalpm/hook.h') diff --git a/lib/libalpm/hook.h b/lib/libalpm/hook.h index 4894a192..3f05b31d 100644 --- a/lib/libalpm/hook.h +++ b/lib/libalpm/hook.h @@ -22,12 +22,7 @@ #include "alpm.h" -enum _alpm_hook_when_t { - ALPM_HOOK_PRE_TRANSACTION = 1, - ALPM_HOOK_POST_TRANSACTION -}; - -int _alpm_hook_run(alpm_handle_t *handle, enum _alpm_hook_when_t when); +int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when); #endif /* _ALPM_HOOK_H */ -- cgit v1.2.3-24-g4f1b