#ifndef GAME_CLIENT_COMPONENTS_MUMBLE_LINKEDMEM_H
#define GAME_CLIENT_COMPONENTS_MUMBLE_LINKEDMEM_H

// building fails if windows.h is included with everything else, so just keep this separate

#ifdef _WIN32
#include <windows.h>
#else
#include <fcntl.h> /* For O_* constants */
#include <sys/mman.h>
#endif // _WIN32

struct LinkedMem
{
#ifdef _WIN32
	UINT32 uiVersion;
	DWORD uiTick;
#else
	uint32_t uiVersion;
	uint32_t uiTick;
#endif
	float fAvatarPosition[3];
	float fAvatarFront[3];
	float fAvatarTop[3];
	wchar_t name[256];
	float fCameraPosition[3];
	float fCameraFront[3];
	float fCameraTop[3];
	wchar_t identity[256];
#ifdef _WIN32
	UINT32 context_len;
#else
	uint32_t context_len;
#endif
	unsigned char context[256];
	wchar_t description[2048];
};

#endif
