diff options
author | TheOfficialFloW | 2017-01-12 17:55:47 +0100 |
---|---|---|
committer | Sunguk Lee | 2017-01-13 01:55:47 +0900 |
commit | 48c0c2da0b94b7e63677471cbeeaa1006ea6fd2d (patch) | |
tree | 2a2849ebce6c1e3a61bb41051eb11c3881969080 /include/user/usbstorvstor.h | |
parent | Add SceMtpIfDriver::SceMtpIf NIDs (diff) | |
download | vds-libraries-48c0c2da0b94b7e63677471cbeeaa1006ea6fd2d.tar.gz |
Added usb nids and headers (#120)
Diffstat (limited to 'include/user/usbstorvstor.h')
-rw-r--r-- | include/user/usbstorvstor.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/include/user/usbstorvstor.h b/include/user/usbstorvstor.h new file mode 100644 index 0000000..c71eb66 --- /dev/null +++ b/include/user/usbstorvstor.h @@ -0,0 +1,52 @@ +#ifndef _PSP2_USBSTORVSTOR_H_ +#define _PSP2_USBSTORVSTOR_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +enum { + SCE_USBSTOR_VSTOR_TYPE_FAT = 0, + SCE_USBSTOR_VSTOR_TYPE_CDROM = 5, +}; + +/** + * Set image file path + * + * @param[in] path - Image file path + * + * @return 0 on success, < 0 on error. +*/ +int sceUsbstorVStorSetImgFilePath(const char *path); + +/** + * Set USB descriptor device information + * + * @param[in] name - Name + * @param[in] version - Version + * + * @return 0 on success, < 0 on error. +*/ +int sceUsbstorVStorSetDeviceInfo(const char *name, const char *version); + +/** + * Start USB virtual storage + * + * @param[in] type - One of ::UsbStorVstorType + * + * @return 0 on success, < 0 on error. +*/ +int sceUsbstorVStorStart(int type); + +/** + * Stop USB virtual storage + * + * @return 0 on success, < 0 on error. +*/ +int sceUsbstorVStorStop(void); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_USBSTORVSTOR_H_ */ |