25 lines
803 B
C
Raw Normal View History

2016-09-18 20:50:08 -07:00
#pragma once
#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);
struct StatusParagraphAndAssociatedFiles
{
StatusParagraph pgh;
SortedVector<std::string> files;
};
std::vector<InstalledPackageView> get_installed_ports(const StatusParagraphs& status_db);
std::vector<StatusParagraphAndAssociatedFiles> get_installed_files(const VcpkgPaths& paths,
const StatusParagraphs& status_db);
std::string shorten_text(const std::string& desc, const size_t length);
2016-09-18 20:50:08 -07:00
} // namespace vcpkg