From aa1c0ba9f8787fc3b1a1190103e394b0c1c95922 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 20 Nov 2006 09:10:23 +0000 Subject: * 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 --- lib/libalpm/trans.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'lib/libalpm/trans.h') 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 { \ -- cgit v1.2.3-54-g00ecf