summaryrefslogtreecommitdiffstats
path: root/heimdall-frontend/Source/Packaging.h
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-07-07 21:02:18 +0200
committerBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-07-07 21:02:18 +0200
commit5ce92c078692bb7fb5020d9ddec7ade6dacac1e9 (patch)
tree7fd4b4cecb9e222b11fd5927b6f30155dd3815fc /heimdall-frontend/Source/Packaging.h
parentMajor 1.3 updates (diff)
downloadHeimdall-5ce92c078692bb7fb5020d9ddec7ade6dacac1e9.tar
Heimdall-5ce92c078692bb7fb5020d9ddec7ade6dacac1e9.tar.gz
Heimdall-5ce92c078692bb7fb5020d9ddec7ade6dacac1e9.tar.bz2
Heimdall-5ce92c078692bb7fb5020d9ddec7ade6dacac1e9.tar.lz
Heimdall-5ce92c078692bb7fb5020d9ddec7ade6dacac1e9.tar.xz
Heimdall-5ce92c078692bb7fb5020d9ddec7ade6dacac1e9.tar.zst
Heimdall-5ce92c078692bb7fb5020d9ddec7ade6dacac1e9.zip
Diffstat (limited to '')
-rwxr-xr-xheimdall-frontend/Source/Packaging.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/heimdall-frontend/Source/Packaging.h b/heimdall-frontend/Source/Packaging.h
index c341f0f..97637de 100755
--- a/heimdall-frontend/Source/Packaging.h
+++ b/heimdall-frontend/Source/Packaging.h
@@ -93,17 +93,25 @@ namespace HeimdallFrontend
class Packaging
{
private:
+
+ enum
+ {
+ kExtractBufferLength = 262144,
+ kCompressBufferLength = 262144
+ };
// TODO: Add support for sparse files to both methods.
- static bool ExtractTar(QTemporaryFile& tarFile, PackageData *outputPackageData);
- static bool CreateTar(const PackageData& packageData, QTemporaryFile *outputTarFile); // Uses original TAR format.
+ static bool ExtractTar(QTemporaryFile& tarFile, PackageData *packageData);
+
+ static bool WriteTarEntry(const QString& filename, QTemporaryFile *tarFile, bool firmwareXml = false);
+ static bool CreateTar(const FirmwareInfo& firmwareInfo, QTemporaryFile *tarFile); // Uses original TAR format.
public:
static const char *ustarMagic;
- static bool ExtractPackage(const QString& packagePath, PackageData *outputPackageData);
- static bool BuildPackage(const QString& packagePath, const PackageData& packageData);
+ static bool ExtractPackage(const QString& packagePath, PackageData *packageData);
+ static bool BuildPackage(const QString& packagePath, const FirmwareInfo& firmwareInfo);
};
}