diff options
author | Olivier Brunel <jjk@jjacky.com> | 2015-12-06 18:35:37 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-12-15 15:09:28 +1000 |
commit | 132ec4c3b9f761fb76ff9cf567f3723db62d72df (patch) | |
tree | 0738399fbebaf4c7456446fa21110b91c53a9c6a /lib/libalpm/hook.h | |
parent | 3802cab56374b50d4775d9deaf229cdef5cdbe53 (diff) | |
download | 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.h | 7 |
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 */ |