mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
initial
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
package usbstor
|
||||
|
||||
import "core:c"
|
||||
|
||||
foreign import usbstor "system:SceUsbstorVStorDriver_stub"
|
||||
|
||||
SceUsbstorVstorType :: enum c.int {
|
||||
FAT = 0,
|
||||
CDROM = 5
|
||||
}
|
||||
|
||||
@(link_prefix = "sceUsbstorVStor")
|
||||
foreign usbstor {
|
||||
/**
|
||||
* Set image file path
|
||||
*
|
||||
* @param[in] path - Image file path
|
||||
*
|
||||
* @return 0 on success, < 0 on error.
|
||||
*/
|
||||
SetImgFilePath :: proc(path: cstring) -> c.int ---
|
||||
|
||||
/**
|
||||
* Set USB descriptor device information
|
||||
*
|
||||
* @param[in] name - Name
|
||||
* @param[in] version - Version
|
||||
*
|
||||
* @return 0 on success, < 0 on error.
|
||||
*/
|
||||
SetDeviceInfo :: proc(name: cstring, version: cstring) -> c.int ---
|
||||
|
||||
/**
|
||||
* Start USB virtual storage
|
||||
*
|
||||
* @param[in] type - One of ::SceUsbstorVstorType
|
||||
*
|
||||
* @return 0 on success, < 0 on error.
|
||||
*/
|
||||
Start :: proc(type: SceUsbstorVstorType) -> c.int ---
|
||||
|
||||
/**
|
||||
* Stop USB virtual storage
|
||||
*
|
||||
* @return 0 on success, < 0 on error.
|
||||
*/
|
||||
Stop :: proc() -> c.int ---
|
||||
}
|
||||
Reference in New Issue
Block a user