diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-03-15 16:57:34 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-03-15 16:57:34 -0700 |
commit | 848a2eb821894491a4a5d357717d144a4b15d9af (patch) | |
tree | 86c6b31b4f098e8d8f021fe83e1a57db7cc0b5ec /src/generic/apt/aptitude_resolver.h | |
parent | 5e4eccdf24b8c46410290e1fe2186801cfffca2a (diff) | |
download | aptitude-848a2eb821894491a4a5d357717d144a4b15d9af.tar.gz |
Write the backend half of the code to support customizable cost components.
Still needed: a parser, unit tests, documentation, and the final
tying-together code in resolver_manager.
Diffstat (limited to 'src/generic/apt/aptitude_resolver.h')
-rw-r--r-- | src/generic/apt/aptitude_resolver.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/generic/apt/aptitude_resolver.h b/src/generic/apt/aptitude_resolver.h index d970c3a9..c37e566d 100644 --- a/src/generic/apt/aptitude_resolver.h +++ b/src/generic/apt/aptitude_resolver.h @@ -25,6 +25,7 @@ #ifndef APTITUDE_RESOLVER_H #define APTITUDE_RESOLVER_H +#include "aptitude_resolver_cost_settings.h" #include "aptitude_resolver_universe.h" #include <generic/apt/matching/pattern.h> @@ -64,6 +65,8 @@ class aptitude_resolver:public generic_problem_resolver<aptitude_universe> choice_set keep_all_solution; pkgPolicy *policy; + aptitude_resolver_cost_settings cost_settings; + void add_full_replacement_score(const pkgCache::VerIterator &src, const pkgCache::PkgIterator &real_target, const pkgCache::VerIterator &provider, @@ -288,7 +291,8 @@ public: hint(hint_type _type, int _amt, const cwidget::util::ref_ptr<aptitude::matching::pattern> &_target, - version_selection _selection, const std::string &_component_name) + version_selection _selection, + const std::string &_component_name) : type(_type), amt(_amt), target(_target), selection(_selection), component_name() { @@ -429,6 +433,7 @@ public: int infinity, int resolution_score, int future_horizon, + const aptitude_resolver_cost_settings &_cost_settings, const imm::map<aptitude_resolver_package, aptitude_resolver_version> &initial_installations, aptitudeDepCache *cache, pkgPolicy *_policy); |