summaryrefslogtreecommitdiff
path: root/include/kernel/sblacmgr.h
blob: 115832a6dbc5bdf9226c4254bd34a50d0b5215f9 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
	Vita Development Suite Libraries
*/

#ifndef _VDSUITE_KERNEL_SBLACMGR_H
#define _VDSUITE_KERNEL_SBLACMGR_H

#include <scetypes.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief Get process type state
 *
 * @param[in]  pid - The target process id
 *
 * @return If root mode process, 1. else 0.
 */
int sceSblACMgrIsRootProgram(SceUID pid);

/**
 * @brief Get process type state
 *
 * @param[in]  pid - The target process id
 *
 * @return If system mode process, 1. else 0.
 */
int sceSblACMgrIsSystemProgram(SceUID pid);

/**
 * @brief Get process type state
 *
 * @param[in]  pid - The target process id
 *
 * @return If pspemu process, 1. else 0.
 */
int sceSblACMgrIsPspEmu(SceUID pid);

/**
 * @brief Get process type state
 *
 * @param[in]  pid - The target process id
 *
 * @return If game mode process, 1. else 0.
 */
int sceSblACMgrIsGameProgram(SceUID pid);

/**
 * @brief Get process type state
 *
 * @param[in]  pid - The target process id
 *
 * @return If non game mode process, 1. else 0.
 */
int sceSblACMgrIsNonGameProgram(SceUID pid);

/**
 * @brief Get process type state
 *
 * @param[in]  pid - The target process id
 *
 * @return If SceShell process(authid:0x2800000000000001), 1. else 0.
 */
int sceSblACMgrIsSceShell(SceUID pid);

/**
 * @brief Get process type state
 *
 * @param[in]  pid - The target process id
 *
 * @return If fake self process, 1. else 0.
 */
int sceSblACMgrIsFself(SceUID pid);

/**
 * @brief Get process authority id
 *
 * @param[in]  pid    - The target process id
 * @param[out] authid - The authid output pointer
 *
 * @return 0 on success, < 0 on error.
 */
int sceSblACMgrGetProcessProgramAuthId(SceUID pid, SceUInt64 *authid);

/**
 * @brief Get development mode state
 *
 * @return If development mode, 1. else 0.
 */
int sceSblACMgrIsDevelopmentMode(void);

#ifdef __cplusplus
}
#endif

#endif /* _VDSUITE_KERNEL_SBLACMGR_H */