1 // -*- mode: cpp; mode: fold -*-
3 // $Id: extracttar.h,v 1.2 2001/02/20 07:03:17 jgg Exp $
4 /* ######################################################################
6 Extract a Tar - Tar Extractor
8 The tar extractor takes an ordinary gzip compressed tar stream from
9 the given file and explodes it, passing the individual items to the
10 given Directory Stream for processing.
12 ##################################################################### */
14 #ifndef PKGLIB_EXTRACTTAR_H
15 #define PKGLIB_EXTRACTTAR_H
17 #include <apt-pkg/fileutl.h>
18 #include <apt-pkg/macros.h>
22 #ifndef APT_8_CLEANER_HEADERS
23 #include <apt-pkg/dirstream.h>
36 // The varios types items can be
37 enum ItemType
{NormalFile0
= '\0',NormalFile
= '0',HardLink
= '1',
38 SymbolicLink
= '2',CharacterDevice
= '3',
39 BlockDevice
= '4',Directory
= '5',FIFO
= '6',
40 GNU_LongLink
= 'K',GNU_LongName
= 'L'};
43 unsigned long long MaxInSize
;
47 std::string DecompressProg
;
52 APT_DEPRECATED_MSG("Parameter Force is ignored, use Done() instead.") bool Done(bool Force
);
56 bool Go(pkgDirStream
&Stream
);
58 ExtractTar(FileFd
&Fd
,unsigned long long Max
,std::string DecompressionProgram
);
59 virtual ~ExtractTar();