Files
vitasdk-odin/Gps/Gps.odin
T

27 lines
914 B
Odin
Raw Normal View History

2024-05-11 23:24:13 +02:00
package gps
import "core:c"
import sce "../common"
foreign import gps "system:SceGps_stub"
// missing structs
SceGpsDeviceInfo :: struct{}
SceGpsSatelliteData :: struct{}
SceGpsPositionData :: struct{}
SceGpsStatus :: struct{}
foreign gps {
2024-05-13 16:04:23 +02:00
_sceGpsClose :: proc() -> c.int ---
_sceGpsGetData :: proc(pos: ^SceGpsPositionData, sat: ^SceGpsSatelliteData) -> c.int ---
_sceGpsGetDeviceInfo :: proc(dev_info: ^SceGpsDeviceInfo) -> c.int ---
_sceGpsGetState :: proc(state: ^SceGpsStatus) -> c.int ---
_sceGpsIoctl :: proc(ioctl_command: sce.UInt32, arg: rawptr, arg_size: sce.Size, a4: ^sce.Size) -> c.int ---
_sceGpsIsDevice :: proc() -> c.int ---
_sceGpsOpen :: proc(cbid: sce.UID) -> c.int ---
_sceGpsResumeCallback :: proc() -> c.int ---
_sceGpsSelectDevice :: proc(device_type: sce.UInt32) -> c.int ---
_sceGpsStart :: proc(mode: c.uint) -> c.int ---
_sceGpsStop :: proc() -> c.int ---
2024-05-11 23:24:13 +02:00
}