2024-05-11 23:24:13 +02:00
|
|
|
package pspnetadhoc
|
|
|
|
|
|
|
|
|
|
import "core:c"
|
|
|
|
|
import sce "../common"
|
|
|
|
|
import sceNet "../Net"
|
|
|
|
|
|
|
|
|
|
foreign import pspnetadhoc "system:ScePspnetAdhoc_stub"
|
|
|
|
|
|
|
|
|
|
foreign pspnetadhoc {
|
2024-05-13 16:04:23 +02:00
|
|
|
sceNetAdhocInit :: proc() -> c.int ---
|
|
|
|
|
sceNetAdhocTerm :: proc() -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
2024-05-13 16:04:23 +02:00
|
|
|
sceNetAdhocPollSocket :: proc(sds: ^SceNetAdhocPollSd, nsds: c.int, timeout: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocSetSocketAlert :: proc(id: c.int, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocGetSocketAlert :: proc(id: c.int, flag: ^c.int) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
2024-05-13 16:04:23 +02:00
|
|
|
sceNetAdhocPdpCreate :: proc(#by_ptr saddr: sceNet.SceNetEtherAddr, sport: sce.UShort16, bufsize: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPdpSend :: proc(id: c.int, #by_ptr daddr: sceNet.SceNetEtherAddr, dport: sce.UShort16, data: rawptr, len: c.int, timeout: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPdpRecv :: proc(id: c.int, saddr: ^sceNet.SceNetEtherAddr, sport: ^sce.UShort16, buf: rawptr, len: ^c.int, timeout: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPdpDelete :: proc(id: c.int, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocGetPdpStat :: proc(buflen: ^c.int, buf: rawptr) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
2024-05-13 16:04:23 +02:00
|
|
|
sceNetAdhocPtpOpen :: proc(#by_ptr saddr: sceNet.SceNetEtherAddr, sport: sce.UShort16, #by_ptr daddr: sceNet.SceNetEtherAddr, dport: sce.UShort16, bufsize: c.uint, rexmt_int: c.uint, rexmt_cnt: c.int, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPtpConnect :: proc(id: c.int, timeout: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPtpListen :: proc(#by_ptr saddr: sceNet.SceNetEtherAddr, sport: sce.UShort16, bufsize: c.uint, rexmt_int: c.uint, rexmt_cnt: c.int, backlog: c.int, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPtpAccept :: proc(id: c.int, addr: ^sceNet.SceNetEtherAddr, port: ^sce.UShort16, timeout: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPtpSend :: proc(id: c.int, data: rawptr, len: ^c.int, timeout: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPtpRecv :: proc(id: c.int, buf: rawptr, len: ^c.int, timeout: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPtpFlush :: proc(id: c.int, timeout: c.uint, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocPtpClose :: proc(id: c.int, flag: c.int) -> c.int ---
|
|
|
|
|
sceNetAdhocGetPtpStat :: proc(buflen: ^c.int, buf: rawptr) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
2024-05-13 16:04:23 +02:00
|
|
|
sceNetAdhocctlInit :: proc(#by_ptr adhocId: SceNetAdhocctlAdhocId) -> c.int ---
|
|
|
|
|
sceNetAdhocctlTerm :: proc() -> c.int ---
|
|
|
|
|
sceNetAdhocctlGetAdhocId :: proc(adhocId: ^SceNetAdhocctlAdhocId) -> c.int ---
|
|
|
|
|
sceNetAdhocctlGetPeerList :: proc(buflen: ^c.int, buf: rawptr) -> c.int ---
|
|
|
|
|
sceNetAdhocctlGetPeerInfo :: proc(#by_ptr addr: sceNet.SceNetEtherAddr, size: c.int, peerInfo: ^SceNetAdhocctlPeerInfo) -> c.int ---
|
|
|
|
|
sceNetAdhocctlGetAddrByName :: proc(#by_ptr nickname: SceNetAdhocctlNickname, buflen: ^c.int, buf: rawptr) -> c.int ---
|
|
|
|
|
sceNetAdhocctlGetNameByAddr :: proc(#by_ptr addr: sceNet.SceNetEtherAddr, nickname: ^SceNetAdhocctlNickname) -> c.int ---
|
|
|
|
|
sceNetAdhocctlGetParameter :: proc(parameter: ^SceNetAdhocctlParameter) -> c.int ---
|
|
|
|
|
sceNetAdhocctlGetEtherAddr :: proc(addr: ^sceNet.SceNetEtherAddr) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
}
|