vitasdk
Documentation of the vitasdk
fios2.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2COMMON_FIOS2KERNEL_H_
7 #define _PSP2COMMON_FIOS2KERNEL_H_
8 
9 #include <vitasdk/build_utils.h>
10 #include <psp2common/types.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 
17 #define SCE_FIOS2_OVERLAY_PATH_SIZE (292)
18 #define SCE_FIOS2_OVERLAY_PATH_MAX_LENGTH (SCE_FIOS2_OVERLAY_PATH_SIZE - 1)
19 
20 typedef int32_t SceFiosOverlayID;
22 
23 typedef enum SceFiosOverlayType {
24  // src replaces dst. All accesses to dst are redirected to src.
26 
27  // src merges with dst. Reads check src first, then dst. Writes go to dst.
29 
30  // src merges with dst. Reads check both src and dst, and use whichever has the most recent modification time.
31  // If both src and dst have the same modification time, dst is used.
32  // If no file exists at src or dst, dst is used; if no file exists at dst, but a file exists at src, src is used. Writes go to dst.
34 
35  // src merges with dst. Reads check src first, then dst. Writes go to src.
38 
39 typedef struct SceFiosOverlay {
40  uint8_t type; // see SceFiosOverlayType
41  uint8_t order;
42  uint16_t dst_len;
43  uint16_t src_len;
44  uint16_t unk2;
48  char src[SCE_FIOS2_OVERLAY_PATH_SIZE]; // src path replaces dst path based on type policy
51 
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* _PSP2COMMON_FIOS2KERNEL_H_ */
char src[SCE_FIOS2_OVERLAY_PATH_SIZE]
Definition: fios2.h:48
SceUID pid
Definition: fios2.h:45
uint8_t type
Definition: fios2.h:40
SceFiosOverlayID id
Definition: fios2.h:46
uint16_t unk2
Definition: fios2.h:44
uint16_t src_len
Definition: fios2.h:43
SceFiosOverlayType
Definition: fios2.h:23
uint8_t order
Definition: fios2.h:41
uint16_t dst_len
Definition: fios2.h:42
char dst[SCE_FIOS2_OVERLAY_PATH_SIZE]
Definition: fios2.h:47
VITASDK_BUILD_ASSERT_EQ(4, SceFiosOverlayID)
#define SCE_FIOS2_OVERLAY_PATH_SIZE
Definition: fios2.h:17
int32_t SceFiosOverlayID
Definition: fios2.h:20
@ SCE_FIOS_OVERLAY_TYPE_TRANSLUCENT
Definition: fios2.h:28
@ SCE_FIOS_OVERLAY_TYPE_WRITABLE
Definition: fios2.h:36
@ SCE_FIOS_OVERLAY_TYPE_NEWER
Definition: fios2.h:33
@ SCE_FIOS_OVERLAY_TYPE_OPAQUE
Definition: fios2.h:25
Definition: fios2.h:39
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90