summaryrefslogtreecommitdiff
path: root/apt-pkg/srcrecords.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:23 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:23 +0000
commit36f610f18a9a12c02ba89c6bb84726f7ed3ba7ad (patch)
treee5094eaf749d5351f213800411c5ff815d85478b /apt-pkg/srcrecords.h
parent3763d79d2322e8cd7459570b7d40395e10586550 (diff)
downloadapt-36f610f18a9a12c02ba89c6bb84726f7ed3ba7ad.tar.gz
Source record file list parsing
Author: jgg Date: 1999-04-04 08:07:39 GMT Source record file list parsing
Diffstat (limited to 'apt-pkg/srcrecords.h')
-rw-r--r--apt-pkg/srcrecords.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h
index bd39b93b..253a3283 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.1 1999/04/04 01:17:29 jgg Exp $
+// $Id: srcrecords.h,v 1.2 1999/04/04 08:07:39 jgg Exp $
/* ######################################################################
Source Package Records - Allows access to source package records
@@ -23,7 +23,16 @@
class pkgSrcRecords
{
public:
+
+ // Describes a single file
+ struct File
+ {
+ string MD5Hash;
+ unsigned long Size;
+ string Path;
+ };
+ // Abstract parser for each source record
class Parser
{
FileFd *File;
@@ -40,6 +49,7 @@ class pkgSrcRecords
virtual string Maintainer() = 0;
virtual string Section() = 0;
virtual const char **Binaries() = 0;
+ virtual bool Files(vector<File> &F) = 0;
Parser(FileFd *File) : File(File) {};
virtual ~Parser() {delete File;};