vitasdk
Documentation of the vitasdk
misc.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_PAF_MISC_H_
8 #define _PSP2_PAF_MISC_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/types.h>
12 #include <psp2/kernel/threadmgr.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct ScePafDateTime {
20  int data_0x10;
21  int data_0x14;
24 
26 
27 typedef struct ScePafSha1Context { // size is 0x68
28  uint32_t h[5];
29  char unk[0x54];
32 
34 int scePafSha1Update(ScePafSha1Context *context, const void *data, SceSize length);
35 int scePafSha1Result(ScePafSha1Context *context, void *dst);
36 
37 typedef struct ScePafHeapContext { // size is 0x60-bytes
38  void *vtable;
39  void *heap;
40  void *membase;
42  char name[0x20];
45  char data_0x32;
46  char data_0x33; // maybe unused. just for align.
47  int data_0x34; // maybe unused. just for align.
50 
51  /*
52  * !1 : Game
53  * 1 : CDialog
54  */
58 
59 typedef struct ScePafHeapOpt { // size is 0x14-bytes
60  int a1;
61  int a2;
63  char a3[3];
65  int a5;
68 
69 void scePafCreateHeap(ScePafHeapContext *context, void *membase, SceSize size, const char *name, ScePafHeapOpt *opt);
71 
73 void scePafFreeWithContext(ScePafHeapContext *context, void *ptr);
74 
76 void *scePafReallocWithContext(ScePafHeapContext *context, void *ptr, SceSize len);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* _PSP2_PAF_MISC_H_ */
uint32_t length
Definition: bt.h:7
SceSize size
struct size(variable size)
Definition: debug.h:0
void scePafFreeWithContext(ScePafHeapContext *context, void *ptr)
int scePafSha1Update(ScePafSha1Context *context, const void *data, SceSize length)
int scePafSha1Result(ScePafSha1Context *context, void *dst)
SceKernelLwMutexWork lw_mtx
Definition: misc.h:48
SceUID memblk_id
Definition: misc.h:49
void * vtable
Definition: misc.h:38
char data_0x32
Definition: misc.h:45
SceChar8 is_import_membase
Definition: misc.h:43
SceSize size
Definition: misc.h:41
int scePafGetCurrentClockLocalTime(ScePafDateTime *data)
int a2
Definition: misc.h:61
int a5
Definition: misc.h:65
void scePafCreateHeap(ScePafHeapContext *context, void *membase, SceSize size, const char *name, ScePafHeapOpt *opt)
void * membase
Definition: misc.h:40
int data_0x10
Definition: misc.h:20
void * scePafMallocWithContext(ScePafHeapContext *context, SceSize len)
void * scePafMallocAlignWithContext(ScePafHeapContext *context, SceUInt32 align, SceSize len)
SceInt32 mode
Definition: misc.h:64
char unk[0x54]
Definition: misc.h:29
SceChar8 is_skip_debug_msg
Definition: misc.h:62
int data_0x34
Definition: misc.h:47
SceChar8 is_skip_debug_msg
Definition: misc.h:44
VITASDK_BUILD_ASSERT_EQ(0x18, ScePafDateTime)
void * scePafReallocWithContext(ScePafHeapContext *context, void *ptr, SceSize len)
char data_0x33
Definition: misc.h:46
void * heap
Definition: misc.h:39
char name[0x20]
Definition: misc.h:42
char a3[3]
Definition: misc.h:63
int scePafSha1Init(ScePafSha1Context *context)
SceDateTime data
Definition: misc.h:19
int data_0x14
Definition: misc.h:21
void scePafDeleteHeap(ScePafHeapContext *context)
SceInt32 mode
Definition: misc.h:55
uint32_t h[5]
Definition: misc.h:28
int a1
Definition: misc.h:60
Definition: misc.h:18
Definition: misc.h:37
Definition: misc.h:59
Definition: misc.h:27
Definition: threadmgr.h:255
int8_t SceChar8
Definition: types.h:32
int32_t SceInt32
Definition: types.h:44
unsigned int SceSize
Definition: types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
uint32_t SceUInt32
Definition: types.h:45
Definition: types.h:213