index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2006-11-20 09:10:23 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-11-20 09:10:23 +0000 |
commit | aa1c0ba9f8787fc3b1a1190103e394b0c1c95922 (patch) | |
tree | ed0c9675f7fc5da043a69b36e0b8c6c8e05cb583 /lib/libalpm/trans.h | |
parent | b8b9596b13de957566211b0e1db3e473ed66e147 (diff) |
-rw-r--r-- | lib/libalpm/trans.h | 25 |
diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h index 95e672b6..49bcceb3 100644 --- a/lib/libalpm/trans.h +++ b/lib/libalpm/trans.h @@ -24,19 +24,10 @@ #ifndef _ALPM_TRANS_H #define _ALPM_TRANS_H -enum { - STATE_IDLE = 0, - STATE_INITIALIZED, - STATE_PREPARED, - STATE_DOWNLOADING, - STATE_COMMITING, - STATE_COMMITED, - STATE_INTERRUPTED -}; - #include "alpm.h" -typedef struct __pmtrans_t { +/* Transaction */ +struct __pmtrans_t { unsigned char type; unsigned int flags; unsigned char state; @@ -46,7 +37,17 @@ typedef struct __pmtrans_t { alpm_trans_cb_event cb_event; alpm_trans_cb_conv cb_conv; alpm_trans_cb_progress cb_progress; -} pmtrans_t; +}; + +enum { + STATE_IDLE = 0, + STATE_INITIALIZED, + STATE_PREPARED, + STATE_DOWNLOADING, + STATE_COMMITING, + STATE_COMMITED, + STATE_INTERRUPTED +}; #define FREETRANS(p) \ do { \ |