mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
27 lines
914 B
Odin
27 lines
914 B
Odin
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 {
|
|
_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 ---
|
|
}
|