Define NetEpoll structures

This commit is contained in:
Marcin Mikołajczyk 2025-07-11 18:51:31 +01:00
parent bae3dc8997
commit 85a96d9ab9

View File

@ -81,6 +81,20 @@ enum OrbisNetSocketOption : u32 {
ORBIS_NET_SO_PRIORITY = 0x1203
};
enum OrbisNetEpollFlag : u32 {
ORBIS_NET_EPOLL_CTL_ADD = 1,
ORBIS_NET_EPOLL_CTL_MOD = 2,
ORBIS_NET_EPOLL_CTL_DEL = 3,
};
enum OrbisNetEpollEvents : u32 {
ORBIS_NET_EPOLLIN = 0x1,
ORBIS_NET_EPOLLOUT = 0x2,
ORBIS_NET_EPOLLERR = 0x8,
ORBIS_NET_EPOLLHUP = 0x10,
ORBIS_NET_EPOLLDESCID = 0x10000,
};
using OrbisNetId = s32;
struct OrbisNetSockaddr {
@ -113,6 +127,20 @@ struct OrbisNetMsghdr {
int msg_flags;
};
union OrbisNetEpollData {
void* ptr;
u32 u32;
int fd;
u64 u64;
};
struct OrbisNetEpollEvent {
u32 events;
u32 pad;
u64 ident;
OrbisNetEpollData data;
};
int PS4_SYSV_ABI in6addr_any();
int PS4_SYSV_ABI in6addr_loopback();
int PS4_SYSV_ABI sce_net_dummy();