mirror of
https://review.haiku-os.org/haiku
synced 2025-01-23 23:04:48 +01:00
46 lines
783 B
C
46 lines
783 B
C
|
/*
|
||
|
* Copyright 2011, Haiku, Inc.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*/
|
||
|
#ifndef _PACKAGE__HPKG__REPOSITORY_READER_H_
|
||
|
#define _PACKAGE__HPKG__REPOSITORY_READER_H_
|
||
|
|
||
|
|
||
|
#include <SupportDefs.h>
|
||
|
|
||
|
|
||
|
namespace BPackageKit {
|
||
|
|
||
|
namespace BHPKG {
|
||
|
|
||
|
|
||
|
namespace BPrivate {
|
||
|
class RepositoryReaderImpl;
|
||
|
}
|
||
|
using BPrivate::RepositoryReaderImpl;
|
||
|
|
||
|
class BErrorOutput;
|
||
|
class BRepositoryContentHandler;
|
||
|
|
||
|
|
||
|
class BRepositoryReader {
|
||
|
public:
|
||
|
BRepositoryReader(BErrorOutput* errorOutput);
|
||
|
~BRepositoryReader();
|
||
|
|
||
|
status_t Init(const char* fileName);
|
||
|
status_t ParseContent(
|
||
|
BPackageContentHandler* contentHandler);
|
||
|
|
||
|
private:
|
||
|
RepositoryReaderImpl* fImpl;
|
||
|
};
|
||
|
|
||
|
|
||
|
} // namespace BHPKG
|
||
|
|
||
|
} // namespace BPackageKit
|
||
|
|
||
|
|
||
|
#endif // _PACKAGE__HPKG__REPOSITORY_READER_H_
|