summaryrefslogtreecommitdiff
path: root/src/solver.h
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-04-03 13:08:08 +0200
committerMichael Schroeder <mls@suse.de>2014-04-03 13:08:08 +0200
commitb2ef9eb3b18a0b543f7011ed33165b7ff6e7f425 (patch)
treeec58234512c0883e638562875f7ce5fd58beb2c0 /src/solver.h
parente020dfa80052de2a2f89ff3f9dd2baaff1924f3f (diff)
downloadlibsolv-b2ef9eb3b18a0b543f7011ed33165b7ff6e7f425.tar.gz
libsolv-b2ef9eb3b18a0b543f7011ed33165b7ff6e7f425.tar.bz2
libsolv-b2ef9eb3b18a0b543f7011ed33165b7ff6e7f425.zip
add pool_add_userinstalled_jobs and solver_get_userinstalled functions
Diffstat (limited to 'src/solver.h')
-rw-r--r--src/solver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/solver.h b/src/solver.h
index b14e367..daa0e08 100644
--- a/src/solver.h
+++ b/src/solver.h
@@ -280,6 +280,9 @@ typedef struct _Solver Solver;
#define SOLVER_FLAG_DUP_ALLOW_VENDORCHANGE 16
#define SOLVER_FLAG_DUP_ALLOW_NAMECHANGE 17
+#define GET_USERINSTALLED_NAMES (1 << 0) /* package names instead if ids */
+#define GET_USERINSTALLED_INVERTED (1 << 1) /* autoinstalled */
+
extern Solver *solver_create(Pool *pool);
extern void solver_free(Solver *solv);
extern int solver_solve(Solver *solv, Queue *job);
@@ -295,6 +298,8 @@ extern void solver_get_decisionblock(Solver *solv, int level, Queue *decisionq);
extern void solver_get_orphaned(Solver *solv, Queue *orphanedq);
extern void solver_get_recommendations(Solver *solv, Queue *recommendationsq, Queue *suggestionsq, int noselected);
extern void solver_get_unneeded(Solver *solv, Queue *unneededq, int filtered);
+extern void solver_get_userinstalled(Solver *solv, Queue *q, int flags);
+extern void pool_add_userinstalled_jobs(Pool *pool, Queue *q, Queue *job, int flags);
extern int solver_describe_decision(Solver *solv, Id p, Id *infop);
extern void solver_describe_weakdep_decision(Solver *solv, Id p, Queue *whyq);