summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2014-01-10 16:25:16 +0100
committerAllan McRae <allan@archlinux.org>2014-03-03 11:25:54 +1000
commit01cc55a1f47c99d3f296e710904b5f3fc31e0b1d (patch)
tree2e7336fe68a057544c4deb817460369de9eb0c60 /lib/libalpm/alpm.h
parentcd793c5ab7689cc8cbc18277375b368060e5acfe (diff)
downloadpacman-01cc55a1f47c99d3f296e710904b5f3fc31e0b1d.tar.xz
Add events ALPM_EVENT_RETRIEVE_{DONE, FAILED}
To go along with RETRIEVE_START, one other event will be emmitted once the downloads are done: RETRIEVE_DONE if all files were successfully downloaded, else RETRIEVE_FAILED. Signed-off-by: Olivier Brunel <jjk@jjacky.com> 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 4aa092d0..b129ff9b 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -318,6 +318,10 @@ typedef enum _alpm_event_type_t {
ALPM_EVENT_SCRIPTLET_INFO,
/** Files will be downloaded from a repository. */
ALPM_EVENT_RETRIEVE_START,
+ /** Files were downloaded from a repository. */
+ ALPM_EVENT_RETRIEVE_DONE,
+ /** Not all files were successfully downloaded from a repository. */
+ ALPM_EVENT_RETRIEVE_FAILED,
/** Disk space usage will be computed for a package. */
ALPM_EVENT_DISKSPACE_START,
/** Disk space usage was computed for a package. */