summaryrefslogtreecommitdiff
path: root/src/apk_package.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-08-05 11:53:26 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-08-05 14:34:58 +0300
commit48d368e7d53ebdfd7ec0abcdd8340ae339de6030 (patch)
tree6f610183ec408ffa6dcd63abbbba0276341dbd18 /src/apk_package.h
parenta5146f1b6cb5bb0cf56c6aa8293e26302e5d0ee2 (diff)
downloadapk-tools-48d368e7d53ebdfd7ec0abcdd8340ae339de6030.tar.gz
apk-tools-48d368e7d53ebdfd7ec0abcdd8340ae339de6030.tar.bz2
apk-tools-48d368e7d53ebdfd7ec0abcdd8340ae339de6030.tar.xz
apk-tools-48d368e7d53ebdfd7ec0abcdd8340ae339de6030.zip
solver: move topology sorting to solver code
this allows quite some optimizations to running time and memory requirements.
Diffstat (limited to 'src/apk_package.h')
-rw-r--r--src/apk_package.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/apk_package.h b/src/apk_package.h
index 6c6c1bf..51d251b 100644
--- a/src/apk_package.h
+++ b/src/apk_package.h
@@ -80,7 +80,10 @@ struct apk_installed_package {
struct apk_package {
apk_hash_node hash_node;
- unsigned int topology_sort;
+ union {
+ int state_int;
+ void *state_ptr;
+ };
struct apk_name *name;
struct apk_installed_package *ipkg;
apk_blob_t *version, *arch, *license;