]>
git.saurik.com Git - apt.git/blob - apt-inst/contrib/arfile.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: arfile.h,v 1.2 2001/02/20 07:03:16 jgg Exp $
4 /* ######################################################################
6 AR File - Handle an 'AR' archive
8 This is a reader for the usual 4.4 BSD AR format. It allows raw
9 stream access to a single member at a time. Basically all this class
10 provides is header parsing and verification. It is up to the client
11 to correctly make use of the stream start/stop points.
13 ##################################################################### */
15 #ifndef PKGLIB_ARFILE_H
16 #define PKGLIB_ARFILE_H
20 #include <apt-pkg/fileutl.h>
30 // Linked list of members
40 // Locate a member by name
41 const Member
*FindMember(const char *Name
) const;
42 inline Member
*Members() { return List
; }
44 ARArchive(FileFd
&File
);
48 // A member of the archive
49 struct ARArchive::Member
51 // Fields from the header
59 // Location of the data.
63 Member() : Start(0), Next(0) {};