#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/PSP2/ARMv7Module.h"

#include "sceNetCtl.h"

logs::channel sceNetCtl("sceNetCtl", logs::level::notice);

s32 sceNetCtlInit()
{
	throw EXCEPTION("");
}

void sceNetCtlTerm()
{
	throw EXCEPTION("");
}

s32 sceNetCtlCheckCallback()
{
	throw EXCEPTION("");
}

s32 sceNetCtlInetGetResult(s32 eventType, vm::ptr<s32> errorCode)
{
	throw EXCEPTION("");
}

s32 sceNetCtlAdhocGetResult(s32 eventType, vm::ptr<s32> errorCode)
{
	throw EXCEPTION("");
}

s32 sceNetCtlInetGetInfo(s32 code, vm::ptr<SceNetCtlInfo> info)
{
	throw EXCEPTION("");
}

s32 sceNetCtlInetGetState(vm::ptr<s32> state)
{
	throw EXCEPTION("");
}

s32 sceNetCtlGetNatInfo(vm::ptr<SceNetCtlNatInfo> natinfo)
{
	throw EXCEPTION("");
}

s32 sceNetCtlInetRegisterCallback(vm::ptr<SceNetCtlCallback> func, vm::ptr<void> arg, vm::ptr<s32> cid)
{
	throw EXCEPTION("");
}

s32 sceNetCtlInetUnregisterCallback(s32 cid)
{
	throw EXCEPTION("");
}

s32 sceNetCtlAdhocRegisterCallback(vm::ptr<SceNetCtlCallback> func, vm::ptr<void> arg, vm::ptr<s32> cid)
{
	throw EXCEPTION("");
}

s32 sceNetCtlAdhocUnregisterCallback(s32 cid)
{
	throw EXCEPTION("");
}

s32 sceNetCtlAdhocGetState(vm::ptr<s32> state)
{
	throw EXCEPTION("");
}

s32 sceNetCtlAdhocDisconnect()
{
	throw EXCEPTION("");
}

s32 sceNetCtlAdhocGetPeerList(vm::ptr<u32> buflen, vm::ptr<void> buf)
{
	throw EXCEPTION("");
}

s32 sceNetCtlAdhocGetInAddr(vm::ptr<SceNetInAddr> inaddr)
{
	throw EXCEPTION("");
}

#define REG_FUNC(nid, name) REG_FNID(SceNetCtl, nid, name)

DECLARE(arm_module_manager::SceNetCtl)("SceNetCtl", []()
{
	REG_FUNC(0x495CA1DB, sceNetCtlInit);
	REG_FUNC(0xCD188648, sceNetCtlTerm);
	REG_FUNC(0xDFFC3ED4, sceNetCtlCheckCallback);
	REG_FUNC(0x6B20EC02, sceNetCtlInetGetResult);
	REG_FUNC(0x7AE0ED19, sceNetCtlAdhocGetResult);
	REG_FUNC(0xB26D07F3, sceNetCtlInetGetInfo);
	REG_FUNC(0x6D26AC68, sceNetCtlInetGetState);
	REG_FUNC(0xEAEE6185, sceNetCtlInetRegisterCallback);
	REG_FUNC(0xD0C3BF3F, sceNetCtlInetUnregisterCallback);
	REG_FUNC(0x4DDD6149, sceNetCtlGetNatInfo);
	REG_FUNC(0x0961A561, sceNetCtlAdhocGetState);
	REG_FUNC(0xFFA9D594, sceNetCtlAdhocRegisterCallback);
	REG_FUNC(0xA4471E10, sceNetCtlAdhocUnregisterCallback);
	REG_FUNC(0xED43B79A, sceNetCtlAdhocDisconnect);
	REG_FUNC(0x77586C59, sceNetCtlAdhocGetPeerList);
	REG_FUNC(0x7118C99D, sceNetCtlAdhocGetInAddr);
});
