summaryrefslogtreecommitdiff
path: root/src/apk_package.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-06-11 14:06:06 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-06-13 18:22:00 +0300
commitb8c44536ca911418fee1c9ab4eecbb913a1ca852 (patch)
treea89e68b12f4d3daf089c475beeb71c53ffb8cc3a /src/apk_package.h
parentf292a858677ae0e1af8910ffbd4b338f4b36c18b (diff)
downloadapk-tools-b8c44536ca911418fee1c9ab4eecbb913a1ca852.tar.gz
apk-tools-b8c44536ca911418fee1c9ab4eecbb913a1ca852.tar.bz2
apk-tools-b8c44536ca911418fee1c9ab4eecbb913a1ca852.tar.xz
apk-tools-b8c44536ca911418fee1c9ab4eecbb913a1ca852.zip
solver: rewrite as deductive solver -- core features
Implementing basic dependency handling, install_if and awareness of pinning.
Diffstat (limited to 'src/apk_package.h')
-rw-r--r--src/apk_package.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apk_package.h b/src/apk_package.h
index a91e3e3..55e6ceb 100644
--- a/src/apk_package.h
+++ b/src/apk_package.h
@@ -15,6 +15,7 @@
#include "apk_version.h"
#include "apk_hash.h"
#include "apk_io.h"
+#include "apk_solver_data.h"
struct apk_database;
struct apk_name;
@@ -60,7 +61,6 @@ struct apk_sign_ctx {
struct apk_dependency {
struct apk_name *name;
apk_blob_t *version;
- unsigned solver_state : 22;
unsigned repository_tag : 6;
unsigned conflict : 1;
unsigned result_mask : 3;
@@ -86,6 +86,7 @@ struct apk_installed_package {
struct apk_package {
apk_hash_node hash_node;
union {
+ struct apk_solver_package_state ss;
int state_int;
void *state_ptr;
};
@@ -98,7 +99,6 @@ struct apk_package {
struct apk_dependency_array *depends, *install_if, *provides;
size_t installed_size, size;
time_t build_time;
- unsigned int topology_hard;
unsigned repos : APK_MAX_REPOS;
struct apk_checksum csum;
};