diff options
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) | |
download | pacman-aa1c0ba9f8787fc3b1a1190103e394b0c1c95922.tar.xz |
* repo-add script - to add entries to a db file directly from package data (no PKGBUILD)
* libalpm api changes - move from a _getinfo(p, WHAT_WE_WANT) scheme to a
typesafe _get_what_we_want(p) scheme [not 100% complete yet]
* some const correctness changes
* removal of PM_* types in alpm.h in favor of the pm*_t types used throughout
libalpm
Diffstat (limited to 'lib/libalpm/trans.h')
-rw-r--r-- | lib/libalpm/trans.h | 25 |
1 files changed, 13 insertions, 12 deletions
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 { \ |