BPackageWriter: Add SetCheckLicenses()

The default is still "true", but now it is possible to disable the
license check.
This commit is contained in:
Ingo Weinhold
2011-11-25 06:19:34 +01:00
parent 14f94ae7d4
commit 7efa133cb4
4 changed files with 25 additions and 4 deletions
+1
View File
@@ -48,6 +48,7 @@ public:
~BPackageWriter();
status_t Init(const char* fileName, uint32 flags = 0);
void SetCheckLicenses(bool checkLicenses);
status_t AddEntry(const char* fileName, int fd = -1);
status_t Finish();
@@ -43,6 +43,7 @@ public:
~PackageWriterImpl();
status_t Init(const char* fileName, uint32 flags);
void SetCheckLicenses(bool checkLicenses);
status_t AddEntry(const char* fileName, int fd = -1);
status_t Finish();
@@ -147,6 +148,7 @@ private:
StringCache fStringCache;
BPackageInfo fPackageInfo;
bool fCheckLicenses;
};