From a26095f8fc27eb564fd5b49c0d99e7821c21e2e8 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 4 May 2005 19:55:23 +0000 Subject: event transaction callback rework to prepare the introduction of a conversation callback --- lib/libalpm/trans.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/trans.c') diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 7f33f13d..c7c4448f 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -48,7 +48,7 @@ pmtrans_t *trans_new() trans->packages = NULL; trans->type = 0; trans->flags = 0; - trans->cb = NULL; + trans->cb_event = NULL; trans->state = STATE_IDLE; return(trans); @@ -75,7 +75,7 @@ void trans_free(pmtrans_t *trans) free(trans); } -int trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_trans_cb cb) +int trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_trans_cb_event event) { /* Sanity checks */ if(trans == NULL) { @@ -88,7 +88,7 @@ int trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_t trans->type = type; trans->flags = flags; - trans->cb = cb; + trans->cb_event = event; trans->state = STATE_INITIALIZED; return(0); -- cgit v1.2.3