6d5488e18a
read-only area shared between the Desktop and all applications. * Right now, this area only contains the desktop colors, ie. B_PANEL_BACKGROUND_COLOR etc.; ui_color() no longer needs to ask the server for these colors. * The ui_colors are now maintained by DesktopSettings, though ColorSet is still there. * The default colors are now hardcoded once and for everyone in InterfaceDefs.h, ie. the app_server uses them as well. * Desktop::Init() can now also return an error (but that is not yet accounted for). * Cleaned up InterfaceDefs.h. * Fixed wrong include in moreUTF8.h. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17232 a95241bf-73f2-0310-859d-f6bbb57e9c96
37 lines
729 B
C++
37 lines
729 B
C++
/*
|
|
* Copyright 2006, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Axel Dörfler, axeld@pinc-software.de
|
|
*/
|
|
#ifndef SERVER_MEMORY_ALLOCATOR_H
|
|
#define SERVER_MEMORY_ALLOCATOR_H
|
|
|
|
|
|
#include <OS.h>
|
|
#include <List.h>
|
|
|
|
namespace BPrivate {
|
|
|
|
class ServerMemoryAllocator {
|
|
public:
|
|
ServerMemoryAllocator();
|
|
~ServerMemoryAllocator();
|
|
|
|
status_t InitCheck();
|
|
|
|
status_t AddArea(area_id serverArea, area_id& _localArea, uint8*& _base,
|
|
bool readOnly = false);
|
|
void RemoveArea(area_id serverArea);
|
|
|
|
status_t AreaAndBaseFor(area_id serverArea, area_id& area, uint8*& base);
|
|
|
|
private:
|
|
BList fAreas;
|
|
};
|
|
|
|
} // namespace BPrivate
|
|
|
|
#endif /* SERVER_MEMORY_ALLOCATOR_H */
|