summaryrefslogtreecommitdiff
path: root/src/apk_state.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-01-07 21:45:11 +0200
committerTimo Teras <timo.teras@iki.fi>2009-01-07 21:45:11 +0200
commit052fbe3f86eaab1940f25824705d809cd9af59e5 (patch)
tree248d8da56e8660db2aa09a17bd52d25e0256cf29 /src/apk_state.h
parentc7ffc96a16c6963fe0a07be7ee75e8f1f7426882 (diff)
downloadapk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.gz
apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.bz2
apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.xz
apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.zip
various: make fancy progress bar and update todo
Diffstat (limited to 'src/apk_state.h')
-rw-r--r--src/apk_state.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/apk_state.h b/src/apk_state.h
index 0e95475..ac51e5b 100644
--- a/src/apk_state.h
+++ b/src/apk_state.h
@@ -19,8 +19,15 @@
#define APK_STATE_INSTALL 2
#define APK_STATE_NO_INSTALL 3
+struct apk_change {
+ struct list_head change_list;
+ struct apk_package *oldpkg;
+ struct apk_package *newpkg;
+};
+
struct apk_state {
int refs;
+ struct list_head change_list_head;
unsigned char bitarray[];
};
@@ -39,9 +46,9 @@ int apk_state_commit(struct apk_state *state, struct apk_database *db);
int apk_state_satisfy_deps(struct apk_state *state,
struct apk_dependency_array *deps);
+int apk_state_purge_unneeded(struct apk_state *state,
+ struct apk_database *db);
-void apk_state_pkg_set(struct apk_state *state,
- struct apk_package *pkg);
int apk_state_pkg_install(struct apk_state *state,
struct apk_package *pkg);
int apk_state_pkg_is_installed(struct apk_state *state,