From 98fdfa1968f81596acd25ed5b77cc968dcd97ead Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 1 Sep 2011 17:35:50 -0500 Subject: Former transaction callback rename refactor Put all the callback stuff in alpm.h in one spot, and make the following renames for clarity with the new structure: ALPM_TRANS_EVT_* --> ALPM_EVENT_* ALPM_TRANS_CONV_* --> ALPM_QUESTION_* ALPM_TRANS_PROGRESS_* --> ALPM_PROGRESS_* alpm_option_get_convcb() --> alpm_option_get_questioncb() alpm_option_set_convcb() --> alpm_option_set_questioncb() Signed-off-by: Dan McGee --- src/pacman/callback.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/pacman/callback.h') diff --git a/src/pacman/callback.h b/src/pacman/callback.h index 30b5a71a..e328a22a 100644 --- a/src/pacman/callback.h +++ b/src/pacman/callback.h @@ -24,15 +24,15 @@ #include -/* callback to handle messages/notifications from libalpm transactions */ -void cb_trans_evt(alpm_transevt_t event, void *data1, void *data2); +/* callback to handle messages/notifications from libalpm */ +void cb_event(alpm_event_t event, void *data1, void *data2); -/* callback to handle questions from libalpm transactions (yes/no) */ -void cb_trans_conv(alpm_transconv_t event, void *data1, void *data2, +/* callback to handle questions from libalpm (yes/no) */ +void cb_question(alpm_question_t event, void *data1, void *data2, void *data3, int *response); -/* callback to handle display of transaction progress */ -void cb_trans_progress(alpm_transprog_t event, const char *pkgname, int percent, +/* callback to handle display of progress */ +void cb_progress(alpm_progress_t event, const char *pkgname, int percent, size_t howmany, size_t remain); /* callback to handle receipt of total download value */ -- cgit v1.2.3-54-g00ecf