summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/hook.h
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2015-12-06 18:35:37 +0100
committerAllan McRae <allan@archlinux.org>2015-12-15 06:09:28 +0100
commit132ec4c3b9f761fb76ff9cf567f3723db62d72df (patch)
tree0738399fbebaf4c7456446fa21110b91c53a9c6a /lib/libalpm/hook.h
parent3802cab56374b50d4775d9deaf229cdef5cdbe53 (diff)
downloadpacman-132ec4c3b9f761fb76ff9cf567f3723db62d72df.tar.gz
pacman-132ec4c3b9f761fb76ff9cf567f3723db62d72df.tar.xz
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 <jjk@jjacky.com>
Diffstat (limited to 'lib/libalpm/hook.h')
-rw-r--r--lib/libalpm/hook.h7
1 files changed, 1 insertions, 6 deletions
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 */