aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-01-26 17:53:45 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-01-30 21:52:41 -0800
commit33b46b1fee70996a23a7860f853e95ef80ff3978 (patch)
tree985a5833c2c48cc9ccb9ec3e40139948e731ba03 /toolsrc/include
parentcc81c3de6c74837dc146d7d3de73e4388cfc14dc (diff)
downloadvcpkg-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.h16
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);
}