diff options
| author | Alexander Kaspar <alexander.kaspar@gmail.com> | 2016-12-02 09:00:27 +0100 |
|---|---|---|
| committer | Alexander Kaspar <alexander.kaspar@gmail.com> | 2016-12-02 09:00:27 +0100 |
| commit | 279f6d5830ea3f47b2f09695b6113d84083c2674 (patch) | |
| tree | 00dd4fb47bdd1da71ccd34e5c79e0d49ec90e202 /toolsrc/include | |
| parent | 0f797c7a0127e2575e3ac0ad56d829383ec5b5ae (diff) | |
| parent | 25b6ef7a9d4ad73ae6123be715a7904c101f31fc (diff) | |
| download | vcpkg-279f6d5830ea3f47b2f09695b6113d84083c2674.tar.gz vcpkg-279f6d5830ea3f47b2f09695b6113d84083c2674.zip | |
Merge branch 'master' of https://github.com/Microsoft/vcpkg into qca
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/toolsrc/include/vcpkg.h b/toolsrc/include/vcpkg.h index 832fb1920..75dc40b43 100644 --- a/toolsrc/include/vcpkg.h +++ b/toolsrc/include/vcpkg.h @@ -7,19 +7,24 @@ namespace vcpkg { - extern bool g_do_dry_run; - StatusParagraphs database_load_check(const vcpkg_paths& paths); - void install_package(const vcpkg_paths& paths, const BinaryParagraph& binary_paragraph, StatusParagraphs& status_db); - void deinstall_package(const vcpkg_paths& paths, const package_spec& spec, StatusParagraphs& status_db); + void write_update(const vcpkg_paths& paths, const StatusParagraph& p); + + struct StatusParagraph_and_associated_files + { + StatusParagraph pgh; + std::vector<std::string> files; + }; + + std::vector<StatusParagraph_and_associated_files> get_installed_files(const vcpkg_paths& paths, const StatusParagraphs& status_db); expected<SourceParagraph> try_load_port(const fs::path& control_path); + inline expected<SourceParagraph> try_load_port(const vcpkg_paths& paths, const std::string& name) { return try_load_port(paths.ports / name); } expected<BinaryParagraph> try_load_cached_package(const vcpkg_paths& paths, const package_spec& spec); - } // namespace vcpkg |
