X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/36f610f18a9a12c02ba89c6bb84726f7ed3ba7ad..17c0e8e1f979c0638c354614b29a8ec484e8f44e:/apt-pkg/srcrecords.h diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h index 253a3283e..17297a60e 100644 --- a/apt-pkg/srcrecords.h +++ b/apt-pkg/srcrecords.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: srcrecords.h,v 1.2 1999/04/04 08:07:39 jgg Exp $ +// $Id: srcrecords.h,v 1.4 1999/07/20 05:53:33 jgg Exp $ /* ###################################################################### Source Package Records - Allows access to source package records @@ -36,9 +36,12 @@ class pkgSrcRecords class Parser { FileFd *File; - + pkgSourceList::const_iterator SrcItem; + public: + inline pkgSourceList::const_iterator Source() const {return SrcItem;}; + virtual bool Restart() = 0; virtual bool Step() = 0; virtual bool Jump(unsigned long Off) = 0; @@ -49,9 +52,10 @@ class pkgSrcRecords virtual string Maintainer() = 0; virtual string Section() = 0; virtual const char **Binaries() = 0; - virtual bool Files(vector &F) = 0; + virtual bool Files(vector &F) = 0; - Parser(FileFd *File) : File(File) {}; + Parser(FileFd *File,pkgSourceList::const_iterator SrcItem) : File(File), + SrcItem(SrcItem) {}; virtual ~Parser() {delete File;}; };