1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     init_Allocator.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 16400 $
14  *---------------------------------------------------------------------------*/
15 
16 /*! @file
17     @brief    システムヒープに関するAPI の宣言
18 
19 */
20 #ifndef NN_INIT_INIT_ALLOCATOR_H_
21 #define NN_INIT_INIT_ALLOCATOR_H_
22 
23 #ifdef __cplusplus
24 
25 #include <nn/types.h>
26 
27 namespace nn { namespace fnd {
28     class IAllocator;
29 }}
30 
31 namespace nn { namespace init {
32 
33     /*!
34         @brief        システムヒープを初期化します。
35 
36                       システムヒープを指定したサイズで初期化します。
37 
38         @param[in]    size システムヒープのサイズ
39 
40         @return       なし。
41     */
42     void InitializeAllocator(size_t size);
43 
44     void InitializeAllocator(uptr addr, size_t size);
45 
46     /*!
47         @brief        システムヒープのアロケータを取得します。
48     */
49     nn::fnd::IAllocator* GetAllocator(void);
50 
51 }} // namespace nn::init
52 
53 
54 #endif  // ifdef __cplusplus
55 
56 #endif // NN_INIT_INIT_ALLOCATOR_H_
57