66 lines
1.8 KiB
C
66 lines
1.8 KiB
C
/****************************************************************************
|
|
* Copyright (C) 2018 Maschell
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
****************************************************************************/
|
|
|
|
#ifndef _MEMORY_DEFS_H_
|
|
#define _MEMORY_DEFS_H_
|
|
|
|
#include <wut_types.h>
|
|
#include <coreinit/memheap.h>
|
|
|
|
#define MAX_USER_HEAP_INFOS 50
|
|
#define MAX_FRM_HEAP_INFOS 50
|
|
#define MAX_EXP_HEAP_INFOS 50
|
|
#define MAX_UNIT_HEAP_INFOS 50
|
|
#define MAX_ALLOCATOR_EXP_INFOS 50
|
|
#define MAX_BASE_HEAP_INFOS 50
|
|
#define MAX_BLOCK_HEAP_INFOS 50
|
|
|
|
typedef struct memHeapInfo_ {
|
|
MEMHeapHandle handle;
|
|
void * address;
|
|
uint32_t size;
|
|
uint32_t oldSize;
|
|
uint16_t flags;
|
|
} memHeapInfo;
|
|
|
|
typedef struct memUnitHeapInfo_ {
|
|
int32_t handle;
|
|
void * address;
|
|
uint32_t heapSize;
|
|
uint32_t memSize;
|
|
uint32_t align;
|
|
uint16_t flags;
|
|
} memUnitHeapInfo;
|
|
|
|
typedef struct baseHeapInfo_ {
|
|
int32_t oldHandle;
|
|
int32_t newHandle;
|
|
int32_t memArena;
|
|
} baseHeapInfo;
|
|
|
|
typedef struct blockHeapInfo_ {
|
|
int32_t handle;
|
|
void * tracking;
|
|
void * startAddress;
|
|
void * endAddress;
|
|
void * initTrackMem;
|
|
uint32_t initTrackMemBytes;
|
|
uint16_t flags;
|
|
} blockHeapInfo;
|
|
|
|
#endif
|