Files

30 lines
1.2 KiB
Odin
Raw Permalink Normal View History

2024-05-11 23:24:13 +02:00
package netctl
import "core:c"
foreign import netctl "system:SceNetCtl_stub"
foreign netctl {
2024-05-13 16:04:23 +02:00
sceNetCtlInit :: proc() -> c.int ---
sceNetCtlTerm :: proc() ---
2024-05-11 23:24:13 +02:00
2024-05-13 16:04:23 +02:00
sceNetCtlCheckCallback :: proc() -> c.int ---
2024-05-11 23:24:13 +02:00
2024-05-13 16:04:23 +02:00
sceNetCtlInetGetResult :: proc(eventType: c.int, errorCode: ^c.int) -> c.int ---
sceNetCtlAdhocGetResult :: proc(eventType: c.int, errorCode: ^c.int) -> c.int ---
2024-05-11 23:24:13 +02:00
2024-05-13 16:04:23 +02:00
sceNetCtlInetGetInfo :: proc(code: c.int, info: ^SceNetCtlInfo) -> c.int ---
sceNetCtlInetGetState :: proc(state: ^c.int) -> c.int ---
sceNetCtlGetNatInfo :: proc(natinfo: ^SceNetCtlNatInfo) -> c.int ---
2024-05-11 23:24:13 +02:00
2024-05-13 16:04:23 +02:00
sceNetCtlInetRegisterCallback :: proc(func: SceNetCtlCallback, arg: rawptr, cid: ^c.int) -> c.int ---
sceNetCtlInetUnregisterCallback :: proc(cid: c.int) -> c.int ---
2024-05-11 23:24:13 +02:00
2024-05-13 16:04:23 +02:00
sceNetCtlAdhocRegisterCallback :: proc(func: SceNetCtlCallback, arg: rawptr, cid: ^c.int) -> c.int ---
sceNetCtlAdhocUnregisterCallback :: proc(cid: c.int) -> c.int ---
sceNetCtlAdhocGetState :: proc(state: ^c.int) -> c.int ---
sceNetCtlAdhocDisconnect :: proc() -> c.int ---
sceNetCtlAdhocGetPeerList :: proc(buflen: ^c.uint, buf: rawptr) -> c.int ---
sceNetCtlAdhocGetInAddr :: proc(inaddr: ^SceNetInAddr) -> c.int ---
2024-05-11 23:24:13 +02:00
}