From a36ded25eb9bdea5b73c33f993820b657f9e6623 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sun, 9 Oct 2005 06:09:57 +0000 Subject: added conversation callback support for transactions --- lib/libalpm/trans.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libalpm/trans.c') diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 43f134e0..12d35806 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -50,6 +50,7 @@ pmtrans_t *trans_new() trans->type = 0; trans->flags = 0; trans->cb_event = NULL; + trans->cb_conv = NULL; trans->state = STATE_IDLE; return(trans); @@ -77,7 +78,7 @@ void trans_free(pmtrans_t *trans) free(trans); } -int trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_trans_cb_event event) +int trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_trans_cb_event event, alpm_trans_cb_conv conv) { /* Sanity checks */ if(trans == NULL) { @@ -91,6 +92,7 @@ int trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_t trans->type = type; trans->flags = flags; trans->cb_event = event; + trans->cb_conv = conv; trans->state = STATE_INITIALIZED; return(0); -- cgit v1.2.3