]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-extracttemplates.h
allow uninstalled packages to be put on hold
[apt.git] / cmdline / apt-extracttemplates.h
index d0f90d3f490fbac49cf827caf8169723bcf4d74a..829cdae755c39b5ca8eb5c1d6542c6f3589310e0 100644 (file)
 #define _APTEXTRACTTEMPLATE_H_
 
 #include <apt-pkg/fileutl.h>
-#include <apt-pkg/pkgcache.h>
 #include <apt-pkg/dirstream.h>
 
+#include <string>
+
+class pkgCache;
+
 class DebFile : public pkgDirStream
 {
        FileFd File;
-       unsigned long Size;
        char *Control;
        unsigned long ControlLen;
        
@@ -26,16 +28,16 @@ public:
        ~DebFile();
        bool DoItem(Item &I, int &fd);
        bool Process(pkgDirStream::Item &I, const unsigned char *data, 
-               unsigned long size, unsigned long pos);
+               unsigned long long size, unsigned long long pos);
 
        bool Go();
        bool ParseInfo();
 
-       static string GetInstalledVer(const string &package);
+       static std::string GetInstalledVer(const std::string &package);
 
-       string Package;
-       string Version;
-       string DepVer, PreDepVer;
+       std::string Package;
+       std::string Version;
+       std::string DepVer, PreDepVer;
        unsigned int DepOp, PreDepOp;
 
        char *Config;