#define PKGLIB_SRCRECORDS_H
#include <apt-pkg/macros.h>
+#include <apt-pkg/hashes.h>
#include <string>
#include <vector>
{
public:
+APT_IGNORE_DEPRECATED_PUSH
// Describes a single file
struct File
{
- std::string MD5Hash;
- unsigned long Size;
std::string Path;
std::string Type;
+ unsigned long long Size;
+ HashStringList Hashes;
+ APT_DEPRECATED std::string MD5Hash;
};
-
+APT_IGNORE_DEPRECATED_POP
+
// Abstract parser for each source record
class Parser
{
// Step to the next SourcePackage and return pointer to the
// next SourceRecord. The pointer is owned by libapt.
- const Parser* Next();
+ const Parser* Step();
// Locate a package by name and return pointer to the Parser.
// The pointer is owned by libapt.