diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-26 17:53:45 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-30 21:52:41 -0800 |
| commit | 33b46b1fee70996a23a7860f853e95ef80ff3978 (patch) | |
| tree | 985a5833c2c48cc9ccb9ec3e40139948e731ba03 /toolsrc/include | |
| parent | cc81c3de6c74837dc146d7d3de73e4388cfc14dc (diff) | |
| download | vcpkg-33b46b1fee70996a23a7860f853e95ef80ff3978.tar.gz vcpkg-33b46b1fee70996a23a7860f853e95ef80ff3978.zip | |
Create a remove plan. NOT used yet
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg_Dependencies.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg_Dependencies.h b/toolsrc/include/vcpkg_Dependencies.h index 1c49ccafd..528abedfb 100644 --- a/toolsrc/include/vcpkg_Dependencies.h +++ b/toolsrc/include/vcpkg_Dependencies.h @@ -30,9 +30,23 @@ namespace vcpkg::Dependencies { NOT_INSTALLED, DEPENDENCIES_NOT_SATISFIED, - SHOULD_REMOVE + REMOVE, + REMOVE_USER_REQUESTED }; + struct remove_plan_action + { + remove_plan_type type; + std::unique_ptr<BinaryParagraph> bpgh; + }; + + struct package_spec_with_remove_plan + { + package_spec spec; + remove_plan_action plan; + }; std::vector<package_spec_with_install_plan> create_install_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db); + + std::vector<package_spec_with_remove_plan> create_remove_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db); } |
