diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-05-04 19:55:23 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-05-04 19:55:23 +0000 |
commit | a26095f8fc27eb564fd5b49c0d99e7821c21e2e8 (patch) | |
tree | e9491a2171abd4414e4a2b59ebdaec6edb85e59c /lib/libalpm/trans.c | |
parent | 14c8583ccbb9f3ff218611ca3d54d93b394b41b5 (diff) | |
download | pacman-a26095f8fc27eb564fd5b49c0d99e7821c21e2e8.tar.xz |
event transaction callback rework to prepare the introduction of a conversation callback
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r-- | lib/libalpm/trans.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |