Define NetEpoll structures (#3311)

This commit is contained in:
Marcin Mikołajczyk 2025-07-24 09:57:55 +02:00 committed by GitHub
parent fb5ac912cd
commit 539b1b91a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 data_u32;
int fd;
u64 data_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();