BPackageWriter::Recompress(): Change param to BPositionIO*
Besides that this is a nicer interface, it allows us to get a the HPKG header as a side effect of initializing the reader, thus preventing seeking backward in the file. This makes "package recompress - <file>" work.
This commit is contained in:
@@ -18,10 +18,6 @@ namespace BPackageKit {
|
||||
|
||||
namespace BHPKG {
|
||||
|
||||
|
||||
class BPackageReader;
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
class PackageWriterImpl;
|
||||
}
|
||||
@@ -85,7 +81,7 @@ public:
|
||||
status_t AddEntry(const char* fileName, int fd = -1);
|
||||
status_t Finish();
|
||||
|
||||
status_t Recompress(BPackageReader* reader);
|
||||
status_t Recompress(BPositionIO* inputFile);
|
||||
// to be called after Init(); no Finish()
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user