summaryrefslogtreecommitdiff
path: root/apt-pkg/srcrecords.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:24 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:24 +0000
commit36375005d9e971d2fdfc62224671f009ce7adaf9 (patch)
tree4793d82c73be374f8f7a629237af2d73874fb468 /apt-pkg/srcrecords.h
parent36f610f18a9a12c02ba89c6bb84726f7ed3ba7ad (diff)
working apt-get source
Author: jgg Date: 1999-04-07 05:30:17 GMT working apt-get source
Diffstat (limited to 'apt-pkg/srcrecords.h')
-rw-r--r--apt-pkg/srcrecords.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h
index 253a3283e..c7ff17fc2 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.3 1999/04/07 05:30:18 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;
@@ -51,7 +54,8 @@ class pkgSrcRecords
virtual const char **Binaries() = 0;
virtual bool Files(vector<File> &F) = 0;
- Parser(FileFd *File) : File(File) {};
+ Parser(FileFd *File,pkgSourceList::const_iterator SrcItem) : File(File),
+ SrcItem(SrcItem) {};
virtual ~Parser() {delete File;};
};