From 36f610f18a9a12c02ba89c6bb84726f7ed3ba7ad Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:53:23 +0000 Subject: Source record file list parsing Author: jgg Date: 1999-04-04 08:07:39 GMT Source record file list parsing --- apt-pkg/srcrecords.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'apt-pkg/srcrecords.h') diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h index bd39b93bb..253a3283e 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 &F) = 0; Parser(FileFd *File) : File(File) {}; virtual ~Parser() {delete File;}; -- cgit v1.2.3