mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-09-19 07:48:34 +00:00
Define NetEpoll structures (#3311)
Some checks are pending
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Some checks are pending
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
This commit is contained in:
parent
fb5ac912cd
commit
539b1b91a8
1 changed files with 28 additions and 0 deletions
|
@ -81,6 +81,20 @@ enum OrbisNetSocketOption : u32 {
|
||||||
ORBIS_NET_SO_PRIORITY = 0x1203
|
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;
|
using OrbisNetId = s32;
|
||||||
|
|
||||||
struct OrbisNetSockaddr {
|
struct OrbisNetSockaddr {
|
||||||
|
@ -113,6 +127,20 @@ struct OrbisNetMsghdr {
|
||||||
int msg_flags;
|
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_any();
|
||||||
int PS4_SYSV_ABI in6addr_loopback();
|
int PS4_SYSV_ABI in6addr_loopback();
|
||||||
int PS4_SYSV_ABI sce_net_dummy();
|
int PS4_SYSV_ABI sce_net_dummy();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue