summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-24 11:15:37 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-24 11:15:37 +0000
commit95fac9cdb267b6a0f2aba6684ae6f58404caf763 (patch)
tree3fcd3ad4a6a25e6a77c28d9ca158379ba7ba98c5
parent2f5060e439a4818cc8e5ef4a142df91ca2bf7b83 (diff)
downloadpacman-95fac9cdb267b6a0f2aba6684ae6f58404caf763.tar.xz
code cleanup
-rw-r--r--lib/libalpm/trans.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h
index c097d897..403cf116 100644
--- a/lib/libalpm/trans.h
+++ b/lib/libalpm/trans.h
@@ -34,13 +34,24 @@ typedef struct __pmtrans_t {
unsigned char type;
unsigned char flags;
unsigned char state;
- PMList *targets; /* PMList of (char *) */
- PMList *packages; /* PMList of (pmpkginfo_t *) */
+ PMList *targets; /* PMList of (char *) */
+ PMList *packages; /* PMList of (pmpkg_t *) or (pmsyncpkg_t *) */
alpm_trans_cb cb;
} pmtrans_t;
-#define FREETRANS(p) do { if (p) { trans_free(p); p = NULL; } } while (0)
-#define TRANS_CB(t, e, d1, d2) do { if((t) && (t)->cb) { (t)->cb(e, d1, d2); } } while(0)
+#define FREETRANS(p) \
+do { \
+ if(p) { \
+ trans_free(p); \
+ p = NULL; \
+ } \
+} while (0)
+#define TRANS_CB(t, e, d1, d2) \
+do { \
+ if((t) && (t)->cb) { \
+ (t)->cb(e, d1, d2); \
+ } \
+} while(0)
pmtrans_t *trans_new();
void trans_free(pmtrans_t *trans);