aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PS3/PS3Extras/HeapInspector/Server/HeapInspectorServer.h
blob: 974bdae9ec0a89a935a6ea4651bdcafb202af332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _HEAPINSPECTORSERVER_PLATFORMINTERFACES_HEAPINSPECTORSERVER_H_
#define _HEAPINSPECTORSERVER_PLATFORMINTERFACES_HEAPINSPECTORSERVER_H_

#include "HeapInfo.h"
#include <vector>

BEGIN_NAMESPACE(HeapInspectorServer)

enum EWaitForConnection
{
	WaitForConnection_Disabled,
	WaitForConnection_Enabled
};

std::vector<HeapInfo> GetDefaultHeapInfo();
bool Initialise(const std::vector<HeapInfo>& a_HeapInfo, int a_Port, EWaitForConnection a_WaitForConnection);
bool IsInitialised();
void Shutdown();

typedef int Mutation;

Mutation BeginAlloc();
void EndAlloc(Mutation a_Mutation, uint16 a_HeapID, void* a_Address, uint32 a_SizeRequested, uint32 a_SizeReceived);

Mutation BeginReAlloc();
void EndReAlloc(Mutation a_Mutation, uint16 a_HeapID, void* a_OldAddress, void* a_NewAddress, uint32 a_SizeRequested, uint32 a_SizeReceived);

Mutation BeginFree();
void EndFree(Mutation a_Mutation, uint16 a_HeapID, void* a_Address);

END_NAMESPACE(HeapInspectorServer)

#endif // _HEAPINSPECTORSERVER_PLATFORMINTERFACES_HEAPINSPECTORSERVER_H_