From 539b1b91a89e6e0cbe83a2f238125d10ad6fe5c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Miko=C5=82ajczyk?= Date: Thu, 24 Jul 2025 09:57:55 +0200 Subject: [PATCH] Define NetEpoll structures (#3311) --- src/core/libraries/network/net.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/core/libraries/network/net.h b/src/core/libraries/network/net.h index 7b6a5680c..02c30c015 100644 --- a/src/core/libraries/network/net.h +++ b/src/core/libraries/network/net.h @@ -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();