summaryrefslogtreecommitdiff
path: root/include/user/usbstorvstor.h
blob: 44713dfc42a8805dc42ae93937b9836b9079e57c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
	Vita Development Suite Libraries
*/

#ifndef _VDSUITE_USER_USBSTORVSTOR_H
#define _VDSUITE_USER_USBSTORVSTOR_H

#ifdef __cplusplus
extern "C" {
#endif

typedef enum SceUsbstorVstorType {
	SCE_USBSTOR_VSTOR_TYPE_FAT     = 0,
	SCE_USBSTOR_VSTOR_TYPE_CDROM   = 5
} SceUsbstorVstorType;

/**
 * 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 ::SceUsbstorVstorType
 *
 * @return 0 on success, < 0 on error.
*/
int sceUsbstorVStorStart(SceUsbstorVstorType type);

/**
 * Stop USB virtual storage
 *
 * @return 0 on success, < 0 on error.
*/
int sceUsbstorVStorStop(void);

#ifdef __cplusplus
}
#endif

#endif /* _VDSUITE_USER_USBSTORVSTOR_H */