rpcs3/rpcs3/Emu/ARMv7/Modules/sceNet.cpp
2015-01-30 13:48:12 +03:00

364 lines
7.9 KiB
C++

#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/ARMv7/PSVFuncList.h"
#include "sceNet.h"
s32 sceNetSetDnsInfo(vm::psv::ptr<SceNetDnsInfo> info, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetClearDnsCache(s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetDumpCreate(vm::psv::ptr<const char> name, s32 len, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetDumpRead(s32 id, vm::psv::ptr<void> buf, s32 len, vm::psv::ptr<s32> pflags)
{
throw __FUNCTION__;
}
s32 sceNetDumpDestroy(s32 id)
{
throw __FUNCTION__;
}
s32 sceNetDumpAbort(s32 id, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetEpollCreate(vm::psv::ptr<const char> name, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetEpollControl(s32 eid, s32 op, s32 id, vm::psv::ptr<SceNetEpollEvent> event)
{
throw __FUNCTION__;
}
s32 sceNetEpollWait(s32 eid, vm::psv::ptr<SceNetEpollEvent> events, s32 maxevents, s32 timeout)
{
throw __FUNCTION__;
}
s32 sceNetEpollWaitCB(s32 eid, vm::psv::ptr<SceNetEpollEvent> events, s32 maxevents, s32 timeout)
{
throw __FUNCTION__;
}
s32 sceNetEpollDestroy(s32 eid)
{
throw __FUNCTION__;
}
s32 sceNetEpollAbort(s32 eid, s32 flags)
{
throw __FUNCTION__;
}
vm::psv::ptr<s32> sceNetErrnoLoc()
{
throw __FUNCTION__;
}
s32 sceNetEtherStrton(vm::psv::ptr<const char> str, vm::psv::ptr<SceNetEtherAddr> n)
{
throw __FUNCTION__;
}
s32 sceNetEtherNtostr(vm::psv::ptr<const SceNetEtherAddr> n, vm::psv::ptr<char> str, u32 len)
{
throw __FUNCTION__;
}
s32 sceNetGetMacAddress(vm::psv::ptr<SceNetEtherAddr> addr, s32 flags)
{
throw __FUNCTION__;
}
vm::psv::ptr<const char> sceNetInetNtop(s32 af, vm::psv::ptr<const void> src, vm::psv::ptr<char> dst, SceNetSocklen_t size)
{
throw __FUNCTION__;
}
s32 sceNetInetPton(s32 af, vm::psv::ptr<const char> src, vm::psv::ptr<void> dst)
{
throw __FUNCTION__;
}
u64 sceNetHtonll(u64 host64)
{
throw __FUNCTION__;
}
u32 sceNetHtonl(u32 host32)
{
throw __FUNCTION__;
}
u16 sceNetHtons(u16 host16)
{
throw __FUNCTION__;
}
u64 sceNetNtohll(u64 net64)
{
throw __FUNCTION__;
}
u32 sceNetNtohl(u32 net32)
{
throw __FUNCTION__;
}
u16 sceNetNtohs(u16 net16)
{
throw __FUNCTION__;
}
s32 sceNetInit(vm::psv::ptr<SceNetInitParam> param)
{
throw __FUNCTION__;
}
s32 sceNetTerm()
{
throw __FUNCTION__;
}
s32 sceNetShowIfconfig()
{
throw __FUNCTION__;
}
s32 sceNetShowRoute()
{
throw __FUNCTION__;
}
s32 sceNetShowNetstat()
{
throw __FUNCTION__;
}
s32 sceNetEmulationSet(vm::psv::ptr<SceNetEmulationParam> param, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetEmulationGet(vm::psv::ptr<SceNetEmulationParam> param, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetResolverCreate(vm::psv::ptr<const char> name, vm::psv::ptr<SceNetResolverParam> param, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetResolverStartNtoa(s32 rid, vm::psv::ptr<const char> hostname, vm::psv::ptr<SceNetInAddr> addr, s32 timeout, s32 retry, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetResolverStartAton(s32 rid, vm::psv::ptr<const SceNetInAddr> addr, vm::psv::ptr<char> hostname, s32 len, s32 timeout, s32 retry, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetResolverGetError(s32 rid, vm::psv::ptr<s32> result)
{
throw __FUNCTION__;
}
s32 sceNetResolverDestroy(s32 rid)
{
throw __FUNCTION__;
}
s32 sceNetResolverAbort(s32 rid, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetSocket(vm::psv::ptr<const char> name, s32 domain, s32 type, s32 protocol)
{
throw __FUNCTION__;
}
s32 sceNetAccept(s32 s, vm::psv::ptr<SceNetSockaddr> addr, vm::psv::ptr<SceNetSocklen_t> addrlen)
{
throw __FUNCTION__;
}
s32 sceNetBind(s32 s, vm::psv::ptr<const SceNetSockaddr> addr, SceNetSocklen_t addrlen)
{
throw __FUNCTION__;
}
s32 sceNetConnect(s32 s, vm::psv::ptr<const SceNetSockaddr> name, SceNetSocklen_t namelen)
{
throw __FUNCTION__;
}
s32 sceNetGetpeername(s32 s, vm::psv::ptr<SceNetSockaddr> name, vm::psv::ptr<SceNetSocklen_t> namelen)
{
throw __FUNCTION__;
}
s32 sceNetGetsockname(s32 s, vm::psv::ptr<SceNetSockaddr> name, vm::psv::ptr<SceNetSocklen_t> namelen)
{
throw __FUNCTION__;
}
s32 sceNetGetsockopt(s32 s, s32 level, s32 optname, vm::psv::ptr<void> optval, vm::psv::ptr<SceNetSocklen_t> optlen)
{
throw __FUNCTION__;
}
s32 sceNetListen(s32 s, s32 backlog)
{
throw __FUNCTION__;
}
s32 sceNetRecv(s32 s, vm::psv::ptr<void> buf, u32 len, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetRecvfrom(s32 s, vm::psv::ptr<void> buf, u32 len, s32 flags, vm::psv::ptr<SceNetSockaddr> from, vm::psv::ptr<SceNetSocklen_t> fromlen)
{
throw __FUNCTION__;
}
s32 sceNetRecvmsg(s32 s, vm::psv::ptr<SceNetMsghdr> msg, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetSend(s32 s, vm::psv::ptr<const void> msg, u32 len, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetSendto(s32 s, vm::psv::ptr<const void> msg, u32 len, s32 flags, vm::psv::ptr<const SceNetSockaddr> to, SceNetSocklen_t tolen)
{
throw __FUNCTION__;
}
s32 sceNetSendmsg(s32 s, vm::psv::ptr<const SceNetMsghdr> msg, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetSetsockopt(s32 s, s32 level, s32 optname, vm::psv::ptr<const void> optval, SceNetSocklen_t optlen)
{
throw __FUNCTION__;
}
s32 sceNetShutdown(s32 s, s32 how)
{
throw __FUNCTION__;
}
s32 sceNetSocketClose(s32 s)
{
throw __FUNCTION__;
}
s32 sceNetSocketAbort(s32 s, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetGetSockInfo(s32 s, vm::psv::ptr<SceNetSockInfo> info, s32 n, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetGetSockIdInfo(vm::psv::ptr<SceNetFdSet> fds, s32 sockinfoflags, s32 flags)
{
throw __FUNCTION__;
}
s32 sceNetGetStatisticsInfo(vm::psv::ptr<SceNetStatisticsInfo> info, s32 flags)
{
throw __FUNCTION__;
}
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceNet, #name, name)
psv_log_base sceNet("SceNet", []()
{
sceNet.on_load = nullptr;
sceNet.on_unload = nullptr;
sceNet.on_stop = nullptr;
REG_FUNC(0xD62EF218, sceNetSetDnsInfo);
REG_FUNC(0xFEC1166D, sceNetClearDnsCache);
REG_FUNC(0xAFF9FA4D, sceNetDumpCreate);
REG_FUNC(0x04042925, sceNetDumpRead);
REG_FUNC(0x82DDCF63, sceNetDumpDestroy);
REG_FUNC(0x3B24E75F, sceNetDumpAbort);
REG_FUNC(0xF9D102AE, sceNetEpollCreate);
REG_FUNC(0x4C8764AC, sceNetEpollControl);
REG_FUNC(0x45CE337D, sceNetEpollWait);
REG_FUNC(0x92D3E767, sceNetEpollWaitCB);
REG_FUNC(0x7915CAF3, sceNetEpollDestroy);
REG_FUNC(0x93FCC4E8, sceNetEpollAbort);
REG_FUNC(0xE37F34AA, sceNetErrnoLoc);
REG_FUNC(0xEEC6D75F, sceNetEtherStrton);
REG_FUNC(0x84334EB2, sceNetEtherNtostr);
REG_FUNC(0x06C05518, sceNetGetMacAddress);
REG_FUNC(0x98839B74, sceNetInetNtop);
REG_FUNC(0xD5EEB048, sceNetInetPton);
REG_FUNC(0x12C19209, sceNetHtonll);
REG_FUNC(0x4C30B03C, sceNetHtonl);
REG_FUNC(0x9FA3207B, sceNetHtons);
REG_FUNC(0xFB3336A6, sceNetNtohll);
REG_FUNC(0xD2EAA645, sceNetNtohl);
REG_FUNC(0x07845128, sceNetNtohs);
REG_FUNC(0xEB03E265, sceNetInit);
REG_FUNC(0xEA3CC286, sceNetTerm);
REG_FUNC(0x658B903B, sceNetShowIfconfig);
REG_FUNC(0x6AB3B74B, sceNetShowRoute);
REG_FUNC(0x338EDC2E, sceNetShowNetstat);
REG_FUNC(0x561DFD03, sceNetEmulationSet);
REG_FUNC(0xAE3F4AC6, sceNetEmulationGet);
REG_FUNC(0x6DA29319, sceNetResolverCreate);
REG_FUNC(0x1EB11857, sceNetResolverStartNtoa);
REG_FUNC(0x0424AE26, sceNetResolverStartAton);
REG_FUNC(0x874EF500, sceNetResolverGetError);
REG_FUNC(0x3559F098, sceNetResolverDestroy);
REG_FUNC(0x38EBBD57, sceNetResolverAbort);
REG_FUNC(0xF084FCE3, sceNetSocket);
REG_FUNC(0x1ADF9BB1, sceNetAccept);
REG_FUNC(0x1296A94B, sceNetBind);
REG_FUNC(0x11E5B6F6, sceNetConnect);
REG_FUNC(0x2348D353, sceNetGetpeername);
REG_FUNC(0x1C66A6DB, sceNetGetsockname);
REG_FUNC(0xBA652062, sceNetGetsockopt);
REG_FUNC(0x7A8DA094, sceNetListen);
REG_FUNC(0x023643B7, sceNetRecv);
REG_FUNC(0xB226138B, sceNetRecvfrom);
REG_FUNC(0xDE94C6FE, sceNetRecvmsg);
REG_FUNC(0xE3DD8CD9, sceNetSend);
REG_FUNC(0x52DB31D5, sceNetSendto);
REG_FUNC(0x99C579AE, sceNetSendmsg);
REG_FUNC(0x065505CA, sceNetSetsockopt);
REG_FUNC(0x69E50BB5, sceNetShutdown);
REG_FUNC(0x29822B4D, sceNetSocketClose);
REG_FUNC(0x891C1B9B, sceNetSocketAbort);
REG_FUNC(0xB1AF6840, sceNetGetSockInfo);
REG_FUNC(0x138CF1D6, sceNetGetSockIdInfo);
REG_FUNC(0xA86F8FE5, sceNetGetStatisticsInfo);
});