1 /*---------------------------------------------------------------------------*
2   Project:  NET Initialize demo
3   File:     heap.h
4 
5   Copyright 2006 Nintendo.  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   $Log: heap.h,v $
14   Revision 1.1  2007/06/23 12:21:28  seiki_masashi
15   Added REXDEMOCreateMEM1Heap, and so on.
16 
17   $NoKeywords: $
18  *---------------------------------------------------------------------------*/
19 
20 #ifndef __DEMOS_SHARED_HEAP_H__
21 #define __DEMOS_SHARED_HEAP_H__
22 
23 #include <revolution/types.h>
24 #include <revolution/ncd.h>
25 #include <revolution/so.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 /*===========================================================================*/
31 
32 #define REXDEMO_SOCKET_HEAPSIZE_DEFAULT     (1024*128)
33 
34 void*   REXDEMOAllocForSocket( u32 name, s32 size );
35 void    REXDEMOFreeForSocket( u32 name, void* ptr, s32 size );
36 BOOL    REXDEMOCreateHeapForSocket(u32 size);
37 void    REXDEMODestroyHeapForSocket( void );
38 SOLibraryConfig* REXDEMOGetSOLibConfig( void );
39 
40 BOOL REXDEMOCreateMEM1Heap( u32 size );
41 void REXDEMODestroyMEM1Heap( void );
42 void* REXDEMOMEM1Alloc( s32 size );
43 void REXDEMOMEM1Free( void* ptr );
44 
45 /*===========================================================================*/
46 #ifdef __cplusplus
47 }
48 #endif
49 #endif  /* __DEMOS_SHARED_HEAP_H__ */
50 
51 /*---------------------------------------------------------------------------*
52   End of file
53  *---------------------------------------------------------------------------*/
54