* add stubbed RepositoryWriter to build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40394 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,13 +6,18 @@
|
||||
#define _PACKAGE__HPKG__REPOSITORY_WRITER_H_
|
||||
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
#include <package/hpkg/ErrorOutput.h>
|
||||
|
||||
|
||||
class BEntry;
|
||||
|
||||
|
||||
namespace BPackageKit {
|
||||
|
||||
|
||||
class BPackageInfo;
|
||||
|
||||
|
||||
namespace BHPKG {
|
||||
|
||||
|
||||
@@ -30,7 +35,7 @@ public:
|
||||
virtual void OnPackageAdded(
|
||||
const BPackageInfo& packageInfo) = 0;
|
||||
|
||||
virtual void OnPackageAttributesSizeInfo(
|
||||
virtual void OnPackageAttributesSizeInfo(uint32 stringCount,
|
||||
uint32 uncompressedSize) = 0;
|
||||
virtual void OnRepositorySizeInfo(uint32 headerSize,
|
||||
uint32 packageAttributesSize,
|
||||
@@ -46,7 +51,7 @@ public:
|
||||
~BRepositoryWriter();
|
||||
|
||||
status_t Init(const char* fileName);
|
||||
status_t AddPackage(const BPackageInfo& packageInfo);
|
||||
status_t AddPackage(const BEntry& packageEntry);
|
||||
status_t Finish();
|
||||
|
||||
private:
|
||||
|
||||
@@ -6,11 +6,9 @@
|
||||
#define _PACKAGE__HPKG__PRIVATE__REPOSITORY_WRITER_IMPL_H_
|
||||
|
||||
|
||||
#include <util/DoublyLinkedList.h>
|
||||
#include <util/OpenHashTable.h>
|
||||
#include <Entry.h>
|
||||
|
||||
#include <package/PackageInfo.h>
|
||||
#include <package/hpkg/Strings.h>
|
||||
#include <package/hpkg/RepositoryWriter.h>
|
||||
#include <package/hpkg/WriterImplBase.h>
|
||||
|
||||
|
||||
@@ -35,17 +33,19 @@ public:
|
||||
~RepositoryWriterImpl();
|
||||
|
||||
status_t Init(const char* fileName);
|
||||
status_t AddPackage(const BPackageInfo& packageInfo);
|
||||
status_t AddPackage(const BEntry& packageEntry);
|
||||
status_t Finish();
|
||||
|
||||
private:
|
||||
status_t _Init(const char* fileName);
|
||||
status_t _AddPackage(const BPackageInfo& packageInfo);
|
||||
status_t _AddPackage(const BEntry& packageEntry);
|
||||
status_t _Finish();
|
||||
|
||||
off_t _WritePackageAttributes(
|
||||
hpkg_repo_header& header);
|
||||
|
||||
private:
|
||||
BRepositoryWriterListener* fListener;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user