summaryrefslogtreecommitdiff
path: root/src/apk_solver.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-09-14 11:30:02 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-09-14 11:30:35 +0300
commite34d2ed5fdec628936711517612a0fe643ed6d33 (patch)
tree2f4dc066ecfd77de2bd641793c6bb6d55c5c8511 /src/apk_solver.h
parentf95e7e585087aa6677978205f4ae8ebb9dfd1851 (diff)
downloadapk-tools-e34d2ed5fdec628936711517612a0fe643ed6d33.tar.gz
apk-tools-e34d2ed5fdec628936711517612a0fe643ed6d33.tar.bz2
apk-tools-e34d2ed5fdec628936711517612a0fe643ed6d33.tar.xz
apk-tools-e34d2ed5fdec628936711517612a0fe643ed6d33.zip
solver, db: run triggers in dependency order
fixes #738
Diffstat (limited to 'src/apk_solver.h')
-rw-r--r--src/apk_solver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_solver.h b/src/apk_solver.h
index 29961d0..3c14094 100644
--- a/src/apk_solver.h
+++ b/src/apk_solver.h
@@ -25,6 +25,7 @@ struct apk_changeset {
#define APK_SOLVERF_UPGRADE 0x0001
#define APK_SOLVERF_AVAILABLE 0x0002
#define APK_SOLVERF_REINSTALL 0x0004
+#define APK_SOLVERF_KEEP_STATE 0x8000
void apk_solver_set_name_flags(struct apk_name *name,
unsigned short solver_flags);
@@ -33,6 +34,7 @@ int apk_solver_solve(struct apk_database *db,
struct apk_dependency_array *world,
struct apk_package_array **solution,
struct apk_changeset *changeset);
+void apk_solver_free(struct apk_database *db);
int apk_solver_commit_changeset(struct apk_database *db,
struct apk_changeset *changeset,
struct apk_dependency_array *world);