]> git.saurik.com Git - apt-legacy.git/blobdiff - apt-pkg/pkgrecords.h
This cache limit patch was a year old :/.
[apt-legacy.git] / apt-pkg / pkgrecords.h
index 17f3b1569e2ed6444d5e5ad81141c481d2623c3b..a8bc293187b6f79af3e68d5bf577bccb8915ee01 100644 (file)
@@ -22,7 +22,7 @@
 #include <apt-pkg/fileutl.h>
 #include <vector>
 
-class pkgRecords
+class pkgRecords                                                       /*{{{*/
 {
    public:
    class Parser;
@@ -42,8 +42,8 @@ class pkgRecords
    pkgRecords(pkgCache &Cache);
    ~pkgRecords();
 };
-
-class pkgRecords::Parser
+                                                                       /*}}}*/
+class pkgRecords::Parser                                               /*{{{*/
 {
    protected:
    
@@ -61,6 +61,9 @@ class pkgRecords::Parser
    virtual string SourcePkg() {return string();};
    virtual string SourceVer() {return string();};
 
+   virtual bool ShortDesc(const char *&Start,const char *&End) {return false;}
+   virtual bool LongDesc(const char *&Start,const char *&End) {return false;}
+
    // These are some general stats about the package
    virtual string Maintainer() {return string();};
    virtual string ShortDesc() {return string();};
@@ -70,8 +73,9 @@ class pkgRecords::Parser
    
    // The record in binary form
    virtual void GetRec(const char *&Start,const char *&Stop) {Start = Stop = 0;};
+   virtual bool Find(const char *Tag,const char *&Start, const char *&End) {Start = End = 0; return false;};
    
    virtual ~Parser() {};
 };
-
+                                                                       /*}}}*/
 #endif