summaryrefslogtreecommitdiff
path: root/src/apk_package.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2022-02-06 21:08:09 +0200
committerTimo Teräs <timo.teras@iki.fi>2022-02-21 10:24:05 +0200
commitf69ae302722d5792bc99292112abc06e1ba216c7 (patch)
tree38a30313e26ad8406aaed396f4597d34adaa89eb /src/apk_package.h
parent9089edcc44fe12003f9d13d5868fa26b2e980a18 (diff)
downloadapk-tools-f69ae302722d5792bc99292112abc06e1ba216c7.tar.gz
apk-tools-f69ae302722d5792bc99292112abc06e1ba216c7.tar.bz2
apk-tools-f69ae302722d5792bc99292112abc06e1ba216c7.tar.xz
apk-tools-f69ae302722d5792bc99292112abc06e1ba216c7.zip
db: sort world dependencies to layers
Diffstat (limited to 'src/apk_package.h')
-rw-r--r--src/apk_package.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_package.h b/src/apk_package.h
index e7e0a53..8d9cba4 100644
--- a/src/apk_package.h
+++ b/src/apk_package.h
@@ -48,6 +48,7 @@ struct apk_dependency {
unsigned conflict : 1;
unsigned result_mask : 4;
unsigned fuzzy : 1;
+ unsigned layer : 4; // solver sets for 'world' dependencies only
};
APK_ARRAY(apk_dependency_array, struct apk_dependency);
@@ -120,6 +121,8 @@ void apk_blob_push_deps(apk_blob_t *to, struct apk_database *, struct apk_depend
void apk_blob_pull_dep(apk_blob_t *from, struct apk_database *, struct apk_dependency *);
void apk_blob_pull_deps(apk_blob_t *from, struct apk_database *, struct apk_dependency_array **);
+int apk_deps_write_layer(struct apk_database *db, struct apk_dependency_array *deps,
+ struct apk_ostream *os, apk_blob_t separator, unsigned layer);
int apk_deps_write(struct apk_database *db, struct apk_dependency_array *deps,
struct apk_ostream *os, apk_blob_t separator);