summaryrefslogtreecommitdiff
path: root/include/user/usbstorvstor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/user/usbstorvstor.h')
-rw-r--r--include/user/usbstorvstor.h52
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_ */