Files

48 lines
958 B
Odin
Raw Permalink Normal View History

2024-05-11 23:24:13 +02:00
package usbstor
import "core:c"
foreign import usbstor "system:SceUsbstorVStorDriver_stub"
SceUsbstorVstorType :: enum c.int {
FAT = 0,
CDROM = 5
}
foreign usbstor {
/**
* Set image file path
*
* @param[in] path - Image file path
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceUsbstorVStorSetImgFilePath :: proc(path: cstring) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* Set USB descriptor device information
*
* @param[in] name - Name
* @param[in] version - Version
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceUsbstorVStorSetDeviceInfo :: proc(name: cstring, version: cstring) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* Start USB virtual storage
*
* @param[in] type - One of ::SceUsbstorVstorType
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceUsbstorVStorStart :: proc(type: SceUsbstorVstorType) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* Stop USB virtual storage
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceUsbstorVStorStop :: proc() -> c.int ---
2024-05-11 23:24:13 +02:00
}