X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b84fa7158d04f8b2136f01dda106ba0272027887..baec76f5f0f9fcbd71f6e2afaa7fc85543bd624c:/apt-inst/contrib/arfile.h diff --git a/apt-inst/contrib/arfile.h b/apt-inst/contrib/arfile.h index 96e18bc60..297303a9d 100644 --- a/apt-inst/contrib/arfile.h +++ b/apt-inst/contrib/arfile.h @@ -17,7 +17,12 @@ #include +#include +#ifndef APT_8_CLEANER_HEADERS #include +#endif + +class FileFd; class ARArchive { @@ -39,6 +44,7 @@ class ARArchive // Locate a member by name const Member *FindMember(const char *Name) const; + inline Member *Members() { return List; } ARArchive(FileFd &File); ~ARArchive(); @@ -48,15 +54,15 @@ class ARArchive struct ARArchive::Member { // Fields from the header - string Name; + std::string Name; unsigned long MTime; unsigned long UID; unsigned long GID; unsigned long Mode; - unsigned long Size; + unsigned long long Size; // Location of the data. - unsigned long Start; + unsigned long long Start; Member *Next; Member() : Start(0), Next(0) {};