vitasdk
Documentation of the vitasdk
netcheck_dialog.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_NETCHECK_DIALOG_H_
8 #define _PSP2_NETCHECK_DIALOG_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/types.h>
12 #include <psp2/common_dialog.h>
13 #include <psp2/pspnet_adhocctl.h>
14 #include <psp2/kernel/clib.h>
15 #include <psp2/net/net.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
32 
33 #define SCE_NETCHECK_DIALOG_LEAST_HTTP_POOL_SIZE (36 * 1024)
34 #define SCE_NETCHECK_DIALOG_LEAST_SSL_POOL_SIZE (96 * 1024)
35 #define SCE_NETCHECK_DIALOG_INITIAL_AGE_RESTRICTION (-1)
36 #define SCE_NETCHECK_DIALOG_COUNTRY_CODE_LEN (2)
37 #define SCE_NETCHECK_DIALOG_AGE_RESTRICTION_COUNT_MAX (200)
38 
39 typedef enum SceNetCheckDialogMode {
49 
54 
55 typedef struct SceNpCommunicationId {
56  char data[9];
57  char term;
59  char dummy;
62 
65  char ssid[32 + 1];
66  char wpaKey[64 + 1];
67  char titleId[9 + 1];
70 
77 
78 typedef struct SceNetCheckDialogParam {
93 
94 typedef struct SceNetCheckDialogResult {
100 
108 
109 static inline
110 void sceNetCheckDialogParamInit(SceNetCheckDialogParam *param)
111 {
112  sceClibMemset(param, 0x0, sizeof(SceNetCheckDialogParam));
113  _sceCommonDialogSetMagicNumber(&param->commonParam);
114  param->sdkVersion = PSP2_SDK_VERSION;
116 }
117 
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif /* _PSP2_NETCHECK_DIALOG_H_ */
130 
void * sceClibMemset(void *dst, int ch, SceSize len)
SceCommonDialogStatus
Definition: common_dialog.h:56
Definition: common_dialog.h:106
#define PSP2_SDK_VERSION
Definition: defs.h:11
char dummy
Definition: netcheck_dialog.h:59
SceNetCheckDialogMode
Definition: netcheck_dialog.h:39
SceInt32 sceNetCheckDialogGetResult(SceNetCheckDialogResult *result)
char countryCode[SCE_NETCHECK_DIALOG_COUNTRY_CODE_LEN]
Definition: netcheck_dialog.h:72
SceInt32 sceNetCheckDialogTerm(void)
SceInt8 padding
Definition: netcheck_dialog.h:74
SceBool psnModeSucceeded
Definition: netcheck_dialog.h:96
SceInt32 sceNetCheckDialogGetPS3ConnectInfo(SceNetCheckDialogPS3ConnectInfo *info)
SceNetCheckDialogPS3ConnectAction
Definition: netcheck_dialog.h:50
SceUInt8 macAddress[6]
Definition: netcheck_dialog.h:104
#define SCE_NETCHECK_DIALOG_INITIAL_AGE_RESTRICTION
Definition: netcheck_dialog.h:35
SceInt32 result
Definition: netcheck_dialog.h:95
SceNetInAddr inaddr
Definition: netcheck_dialog.h:102
char data[9]
Definition: netcheck_dialog.h:56
SceInt32 ageRestrictionCount
Definition: netcheck_dialog.h:88
SceUChar8 num
Definition: netcheck_dialog.h:58
char wpaKey[64+1]
Definition: netcheck_dialog.h:66
SceCommonDialogStatus sceNetCheckDialogGetStatus(void)
SceInt8 padding[3]
Definition: netcheck_dialog.h:87
const SceNetCheckDialogAgeRestriction * ageRestriction
Definition: netcheck_dialog.h:89
SceInt32 sceNetCheckDialogAbort(void)
#define SCE_NETCHECK_DIALOG_COUNTRY_CODE_LEN
Definition: netcheck_dialog.h:36
SceUInt8 reserved[104]
Definition: netcheck_dialog.h:90
SceInt32 sceNetCheckDialogInit(SceNetCheckDialogParam *param)
char term
Definition: netcheck_dialog.h:57
SceCommonDialogParam commonParam
Definition: netcheck_dialog.h:80
SceUInt32 timeoutUs
Definition: netcheck_dialog.h:85
SceNpCommunicationId npCommunicationId
Definition: netcheck_dialog.h:82
SceUInt8 reserved[6]
Definition: netcheck_dialog.h:105
SceUInt8 nickname[128]
Definition: netcheck_dialog.h:103
SceInt8 defaultAgeRestriction
Definition: netcheck_dialog.h:86
SceInt32 mode
Definition: netcheck_dialog.h:81
char titleId[9+1]
Definition: netcheck_dialog.h:67
char ssid[32+1]
Definition: netcheck_dialog.h:65
VITASDK_BUILD_ASSERT_EQ(0xC, SceNpCommunicationId)
SceNetCheckDialogPS3ConnectParam * ps3ConnectParam
Definition: netcheck_dialog.h:83
SceInt8 age
Definition: netcheck_dialog.h:73
SceNetAdhocctlGroupName * groupName
Definition: netcheck_dialog.h:84
SceInt32 action
Definition: netcheck_dialog.h:64
SceNetCheckDialoErrorCode
Definition: netcheck_dialog.h:21
SceUInt32 sdkVersion
Definition: netcheck_dialog.h:79
SceUInt8 reserved[124]
Definition: netcheck_dialog.h:97
@ SCE_NETCHECK_DIALOG_MODE_INVALID
Definition: netcheck_dialog.h:40
@ SCE_NETCHECK_DIALOG_MODE_PSN
Definition: netcheck_dialog.h:42
@ SCE_NETCHECK_DIALOG_MODE_PSP_ADHOC_CREATE
Definition: netcheck_dialog.h:46
@ SCE_NETCHECK_DIALOG_MODE_PSP_ADHOC_JOIN
Definition: netcheck_dialog.h:47
@ SCE_NETCHECK_DIALOG_MODE_PS3_CONNECT
Definition: netcheck_dialog.h:44
@ SCE_NETCHECK_DIALOG_MODE_PSP_ADHOC_CONN
Definition: netcheck_dialog.h:45
@ SCE_NETCHECK_DIALOG_MODE_ADHOC_CONN
Definition: netcheck_dialog.h:41
@ SCE_NETCHECK_DIALOG_MODE_PSN_ONLINE
Definition: netcheck_dialog.h:43
@ SCE_NETCHECK_DIALOG_PS3_CONNECT_ACTION_ENTER
Definition: netcheck_dialog.h:51
@ SCE_NETCHECK_DIALOG_PS3_CONNECT_ACTION_LEAVE
Definition: netcheck_dialog.h:52
@ SCE_NETCHECK_DIALOG_ERROR_INVALID_MODE
Definition: netcheck_dialog.h:23
@ SCE_NETCHECK_DIALOG_ERROR_SIGN_OUT
Definition: netcheck_dialog.h:27
@ SCE_NETCHECK_DIALOG_ERROR_LATEST_PATCH_PKG_EXIST
Definition: netcheck_dialog.h:26
@ SCE_NETCHECK_DIALOG_ERROR_PARAM
Definition: netcheck_dialog.h:22
@ SCE_NETCHECK_DIALOG_ERROR_INVALID_PSPADHOC_PARAM
Definition: netcheck_dialog.h:28
@ SCE_NETCHECK_DIALOG_ERROR_INVALID_TIMEOUT_PARAM
Definition: netcheck_dialog.h:29
@ SCE_NETCHECK_DIALOG_ERROR_PSN_AGE_RESTRICTION
Definition: netcheck_dialog.h:30
@ SCE_NETCHECK_DIALOG_ERROR_LACK_OF_LIBSSL_POOL_SIZE
Definition: netcheck_dialog.h:25
@ SCE_NETCHECK_DIALOG_ERROR_LACK_OF_LIBHTTP_POOL_SIZE
Definition: netcheck_dialog.h:24
Definition: netcheck_dialog.h:71
Definition: netcheck_dialog.h:101
Definition: netcheck_dialog.h:63
Definition: netcheck_dialog.h:78
Definition: netcheck_dialog.h:94
Definition: netcheck_dialog.h:55
Definition: net.h:414
Definition: pspnet_adhocctl.h:39
int SceBool
Definition: types.h:59
int32_t SceInt32
Definition: types.h:44
uint32_t SceUInt32
Definition: types.h:45
int8_t SceInt8
Definition: types.h:35
uint8_t SceUInt8
Definition: types.h:36
uint8_t SceUChar8
Definition: types.h:33