update to latest vita-headers

This commit is contained in:
2025-06-22 21:02:09 +02:00
parent e0258aa945
commit 3c273d6daf
18 changed files with 1171 additions and 28 deletions
+23
View File
@@ -0,0 +1,23 @@
package net
import "core:c"
import sce "../common"
foreign import adhoc "system:SceNetAdhocMatching_stub"
foreign adhoc {
sceNetAdhocMatchingInit :: proc(pool_size: c.uint, pool_ptr: rawptr) -> c.int ---
sceNetAdhocMatchingTerm :: proc() -> c.int ---
sceNetAdhocMatchingStart :: proc(id: c.int, thread_priority: c.int, thread_stack_size: c.int, thread_cpu_affinity_mask: c.int, hello_opt_len: c.int, hello_opt: rawptr) -> c.int ---
sceNetAdhocMatchingCreate :: proc(mode: SceNetAdhocMatchingMode, max_members: c.int, port: sce.UShort16, rx_buffer_len: c.int, hello_interval: c.uint, keep_alive_interval: c.uint, retry_count: c.int, rexmt_interval: c.uint, handler_callback: SceNetAdhocMatchingCallback) -> c.int ---
sceNetAdhocMatchingStop :: proc(id: c.int) -> c.int ---
sceNetAdhocMatchingDelete :: proc(id: c.int) -> c.int ---
sceNetAdhocMatchingAbortSendData :: proc(id: c.int, addr: ^SceNetInAddr) -> c.int ---
sceNetAdhocMatchingCancelTargetWithOpt :: proc(id: c.int, target: ^SceNetInAddr, opt_len: c.int, opt: ^c.char) -> c.int ---
sceNetAdhocMatchingCancelTarget :: proc(id: c.int, target: ^SceNetInAddr) -> c.int ---
sceNetAdhocMatchingSetHelloOpt :: proc(id: c.int, opt_len: c.int, opt: rawptr) -> c.int ---
sceNetAdhocMatchingGetHelloOpt :: proc(id: c.int, opt_len: ^c.uint, opt: rawptr) -> c.int ---
sceNetAdhocMatchingGetMembers :: proc(id: c.int, members_count: ^c.uint, members: ^SceNetAdhocMatchingMember) -> c.int ---
sceNetAdhocMatchingSelectTarget :: proc(id: c.int, target: ^SceNetInAddr, opt_len: c.int, opt: rawptr) -> c.int ---
sceNetAdhocMatchingSendData :: proc(id: c.int, addr: ^SceNetInAddr, data_len: c.int, data: rawptr) -> c.int ---
}
+46
View File
@@ -1,6 +1,7 @@
package net
import "core:c"
import sce "../common"
/** Resolver specific error codes */
SceNetResolverErrorCode :: enum c.int {
@@ -549,6 +550,40 @@ SceNetIcmpCode :: enum c.int {
TIME_EXCEEDED_FRT_EXCEEDED = 1
}
SceNetAdhocMatchingErrorCode :: enum {
INVALID_MODE = 0x80413101,
INVALID_PORT = 0x80413102,
INVALID_MAXNUM = 0x80413103,
RXBUF_TOO_SHORT = 0x80413104,
INVALID_OPTLEN = 0x80413105,
INVALID_ARG = 0x80413106,
INVALID_ID = 0x80413107,
ID_NOT_AVAIL = 0x80413108,
NO_SPACE = 0x80413109,
IS_RUNNING = 0x8041310a,
NOT_RUNNING = 0x8041310b,
UNKNOWN_TARGET = 0x8041310c,
TARGET_NOT_READY = 0x8041310d,
EXCEED_MAXNUM = 0x8041310e,
REQUEST_IN_PROGRESS = 0x8041310f,
ALREADY_ESTABLISHED = 0x80413110,
BUSY = 0x80413111,
ALREADY_INITIALIZED = 0x80413112,
NOT_INITIALIZED = 0x80413113,
PORT_IN_USE = 0x80413114,
STACKSIZE_TOO_SHORT = 0x80413115,
INVALID_DATALEN = 0x80413116,
NOT_ESTABLISHED = 0x80413117,
DATA_BUSY = 0x80413118,
INVALID_ALIGNMENT = 0x80413119
}
SceNetAdhocMatchingMode :: enum {
PARENT = 1,
CHILD,
P2P,
}
SCE_NET_IP_DEFAULT_MULTICAST_TTL :: 1
SCE_NET_IP_DEFAULT_MULTICAST_LOOP :: 1
@@ -577,6 +612,17 @@ SCE_NET_DEBUG_NAME_LEN_MAX :: 31
SCE_NET_ID_SOCKET_MIN :: 0
SCE_NET_ID_SOCKET_MAX :: 1023
SceNetAdhocMatchingCallback :: #type proc "c" (
id: c.int,
type: c.int,
addr: ^SceNetInAddr,
opt_len: sce.Size,
opt: rawptr)
SceNetAdhocMatchingMember :: struct {
addr: SceNetInAddr,
}
SceNetFdSet :: struct {
bits: [32]c.uint,
}