summaryrefslogtreecommitdiffstats
path: root/src/transaction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transaction.h')
-rw-r--r--src/transaction.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transaction.h b/src/transaction.h
index 4324cd0..5f5e0ec 100644
--- a/src/transaction.h
+++ b/src/transaction.h
@@ -24,11 +24,22 @@ struct suggests {
};
typedef struct {
+ union { pkg_info_t *i; pkg_upgrade_t *u; } pkg;
+ unsigned int type;
+} queue_i;
+
+typedef struct {
+ queue_i **pkgs;
+ unsigned int count;
+} queue_t;
+
+typedef struct {
struct pkg_list *install_pkgs;
struct pkg_upgrade_list *upgrade_pkgs;
struct pkg_list *remove_pkgs;
struct pkg_list *exclude_pkgs;
struct suggests *suggests;
+ queue_t *queue;
} transaction_t;
void init_transaction(transaction_t *);