Allow the FileFd to use an external Compressor to uncompress a given file
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 12 Dec 2011 23:17:30 +0000 (00:17 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 12 Dec 2011 23:17:30 +0000 (00:17 +0100)
commit699b209e5122f8fcd85fc4666c9b7020286ab0d0
tree0fca0e56e0f6bb03d4f1f8517f4c217e984875d6
parent032bd56ff86166fd4b6a8f69bd9d5d1bc57b886e
Allow the FileFd to use an external Compressor to uncompress a given file
internally so that it is exported and can be used like a "normal"
uncompressed file with FileFd

This allows us to hide th zlib usage in the implementation and use gzip
instead if we don't have zlib builtin (the same for other compressors).

The code includes quiet a few FIXME's so while all tests are working
it shouldn't be used just yet outside of libapt as it might break.
apt-pkg/contrib/fileutl.cc
apt-pkg/contrib/fileutl.h
apt-pkg/contrib/mmap.cc
apt-pkg/deb/deblistparser.cc
apt-pkg/indexcopy.cc
ftparchive/multicompress.cc
ftparchive/multicompress.h