2016-09-18 20:50:08 -07:00
|
|
|
#pragma once
|
|
|
|
|
2017-10-13 18:37:41 -07:00
|
|
|
#include <vcpkg/base/sortedvector.h>
|
|
|
|
#include <vcpkg/statusparagraphs.h>
|
|
|
|
#include <vcpkg/vcpkgpaths.h>
|
2016-09-18 20:50:08 -07:00
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
2017-04-03 16:29:11 -07:00
|
|
|
StatusParagraphs database_load_check(const VcpkgPaths& paths);
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2017-04-03 16:29:11 -07:00
|
|
|
void write_update(const VcpkgPaths& paths, const StatusParagraph& p);
|
2016-11-15 11:56:46 -08:00
|
|
|
|
2017-04-03 16:32:14 -07:00
|
|
|
struct StatusParagraphAndAssociatedFiles
|
2016-12-01 15:36:39 -08:00
|
|
|
{
|
|
|
|
StatusParagraph pgh;
|
2017-04-01 03:30:52 -07:00
|
|
|
SortedVector<std::string> files;
|
2016-12-01 15:36:39 -08:00
|
|
|
};
|
|
|
|
|
2018-04-10 04:48:02 -07:00
|
|
|
std::vector<InstalledPackageView> get_installed_ports(const StatusParagraphs& status_db);
|
2017-04-27 17:56:06 -07:00
|
|
|
std::vector<StatusParagraphAndAssociatedFiles> get_installed_files(const VcpkgPaths& paths,
|
|
|
|
const StatusParagraphs& status_db);
|
2017-03-10 16:39:04 -08:00
|
|
|
|
2017-11-20 18:17:24 -08:00
|
|
|
std::string shorten_text(const std::string& desc, const size_t length);
|
2016-09-18 20:50:08 -07:00
|
|
|
} // namespace vcpkg
|