X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/462557017a0d8be321ca7d3eb96072f4db6a92ec..b0be0e09cfbbcb033eb0b92eaf17ac31a6b9f423:/apt-pkg/srcrecords.h diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h index 82460d70f..de2b6ff64 100644 --- a/apt-pkg/srcrecords.h +++ b/apt-pkg/srcrecords.h @@ -14,6 +14,7 @@ #define PKGLIB_SRCRECORDS_H #include +#include #include #include @@ -29,15 +30,18 @@ class pkgSrcRecords { 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 { @@ -97,7 +101,7 @@ class pkgSrcRecords // 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.