* Header cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42304 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,25 +12,31 @@
|
|||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <List.h>
|
#include <List.h>
|
||||||
|
|
||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
|
|
||||||
|
|
||||||
class ServerMemoryAllocator {
|
class ServerMemoryAllocator {
|
||||||
public:
|
public:
|
||||||
ServerMemoryAllocator();
|
ServerMemoryAllocator();
|
||||||
~ServerMemoryAllocator();
|
~ServerMemoryAllocator();
|
||||||
|
|
||||||
status_t InitCheck();
|
status_t InitCheck();
|
||||||
|
|
||||||
status_t AddArea(area_id serverArea, area_id& _localArea, uint8*& _base,
|
status_t AddArea(area_id serverArea, area_id& _localArea,
|
||||||
size_t size, bool readOnly = false);
|
uint8*& _base, size_t size,
|
||||||
void RemoveArea(area_id serverArea);
|
bool readOnly = false);
|
||||||
|
void RemoveArea(area_id serverArea);
|
||||||
|
|
||||||
status_t AreaAndBaseFor(area_id serverArea, area_id& area, uint8*& base);
|
status_t AreaAndBaseFor(area_id serverArea,
|
||||||
|
area_id& area, uint8*& base);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BList fAreas;
|
BList fAreas;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
} // namespace BPrivate
|
} // namespace BPrivate
|
||||||
|
|
||||||
#endif /* SERVER_MEMORY_ALLOCATOR_H */
|
|
||||||
|
#endif // SERVER_MEMORY_ALLOCATOR_H
|
||||||
|
|||||||
Reference in New Issue
Block a user