diff options
author | Olivier Brunel <jjk@jjacky.com> | 2014-06-15 19:42:40 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-06-24 05:52:15 +0200 |
commit | f1fadecfb34555cfac1c47f217253a535d64a28b (patch) | |
tree | 4221201d464af1d0ca234ef05cfd629c00a466e8 /src/pacman/callback.h | |
parent | d06d993d56bda499be31042bd39aaea9b8b11e3d (diff) | |
download | pacman-f1fadecfb34555cfac1c47f217253a535d64a28b.tar.gz pacman-f1fadecfb34555cfac1c47f217253a535d64a28b.tar.xz |
Update the question callback
Much like with events, instead of using a bunch of void* arguments for
all questions, we now send one pointer to an alpm_question_t union.
This contains the type of question that was triggered.
With this information, a question-specific struct can be accessed in
order to get additional arguments.
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/callback.h')
-rw-r--r-- | src/pacman/callback.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pacman/callback.h b/src/pacman/callback.h index f16f7fc8..e4941fc7 100644 --- a/src/pacman/callback.h +++ b/src/pacman/callback.h @@ -28,8 +28,7 @@ void cb_event(alpm_event_t *event); /* callback to handle questions from libalpm (yes/no) */ -void cb_question(alpm_question_t event, void *data1, void *data2, - void *data3, int *response); +void cb_question(alpm_question_t* question); /* callback to handle display of progress */ void cb_progress(alpm_progress_t event, const char *pkgname, int percent, |