X-Git-Url: https://git.saurik.com/apt-legacy.git/blobdiff_plain/00ec24d01361c416e4f6c5e7d2698d9912f82ee2..691a36e9117d6baa7fe8ff685d2a749f780134e0:/apt-pkg/pkgrecords.h diff --git a/apt-pkg/pkgrecords.h b/apt-pkg/pkgrecords.h index 17f3b15..a8bc293 100644 --- a/apt-pkg/pkgrecords.h +++ b/apt-pkg/pkgrecords.h @@ -22,7 +22,7 @@ #include #include -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