vitasdk
Documentation of the vitasdk
pspnet_adhocctl.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_PSPNET_ADHOCCTL_H_
8 #define _PSP2_PSPNET_ADHOCCTL_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/types.h>
12 #include <psp2/net/net.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
23 
29 
30 #define SCE_NET_ADHOCCTL_ADHOCID_LEN 9
31 typedef struct SceNetAdhocctlAdhocId {
32  int type;
37 
38 #define SCE_NET_ADHOCCTL_GROUPNAME_LEN 8
39 typedef struct SceNetAdhocctlGroupName {
43 
44 #define SCE_NET_ADHOCCTL_NICKNAME_LEN 128
45 typedef struct SceNetAdhocctlNickname {
49 
50 typedef struct SceNetAdhocctlPeerInfo {
53  struct SceNetEtherAddr macAddr;
58 
59 #define SCE_NET_ADHOCCTL_BSSID_LEN 6
60 typedef struct SceNetAdhocctlBSSId {
65 
66 typedef struct SceNetAdhocctlParameter {
67  int channel;
73 
74 int sceNetAdhocctlInit(const struct SceNetAdhocctlAdhocId *adhocId);
77 int sceNetAdhocctlGetPeerList(int *buflen, void *buf);
78 int sceNetAdhocctlGetPeerInfo(const struct SceNetEtherAddr *addr, int size, struct SceNetAdhocctlPeerInfo *peerInfo);
79 int sceNetAdhocctlGetAddrByName(const struct SceNetAdhocctlNickname *nickname, int *buflen, void *buf);
80 int sceNetAdhocctlGetNameByAddr(const struct SceNetEtherAddr *addr, struct SceNetAdhocctlNickname *nickname);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* _PSP2_PSPNET_ADHOCCTL_H_ */
89 
SceSize size
struct size(variable size)
Definition: debug.h:0
Definition: net.h:435
int sceNetAdhocctlGetParameter(struct SceNetAdhocctlParameter *parameter)
int channel
Definition: pspnet_adhocctl.h:67
SceChar8 data[SCE_NET_ADHOCCTL_NICKNAME_LEN]
Definition: pspnet_adhocctl.h:46
int sceNetAdhocctlInit(const struct SceNetAdhocctlAdhocId *adhocId)
SceChar8 data[SCE_NET_ADHOCCTL_ADHOCID_LEN]
Definition: pspnet_adhocctl.h:33
int sceNetAdhocctlGetAddrByName(const struct SceNetAdhocctlNickname *nickname, int *buflen, void *buf)
int sceNetAdhocctlGetPeerList(int *buflen, void *buf)
int sceNetAdhocctlGetPeerInfo(const struct SceNetEtherAddr *addr, int size, struct SceNetAdhocctlPeerInfo *peerInfo)
int type
Definition: pspnet_adhocctl.h:32
struct SceNetAdhocctlGroupName groupName
Definition: pspnet_adhocctl.h:68
SceUChar8 padding[3]
Definition: pspnet_adhocctl.h:34
struct SceNetAdhocctlNickname nickname
Definition: pspnet_adhocctl.h:52
#define SCE_NET_ADHOCCTL_GROUPNAME_LEN
Definition: pspnet_adhocctl.h:38
int sceNetAdhocctlGetAdhocId(struct SceNetAdhocctlAdhocId *adhocId)
struct SceNetAdhocctlBSSId bssid
Definition: pspnet_adhocctl.h:70
VITASDK_BUILD_ASSERT_EQ(0x10, SceNetAdhocctlAdhocId)
#define SCE_NET_ADHOCCTL_ADHOCID_LEN
Definition: pspnet_adhocctl.h:30
SceChar8 data[SCE_NET_ADHOCCTL_GROUPNAME_LEN]
Definition: pspnet_adhocctl.h:40
#define SCE_NET_ADHOCCTL_BSSID_LEN
Definition: pspnet_adhocctl.h:59
int sceNetAdhocctlTerm(void)
SceUChar8 data[SCE_NET_ADHOCCTL_BSSID_LEN]
Definition: pspnet_adhocctl.h:61
struct SceNetEtherAddr macAddr
Definition: pspnet_adhocctl.h:53
struct SceNetAdhocctlNickname nickname
Definition: pspnet_adhocctl.h:69
SceUChar8 padding[2]
Definition: pspnet_adhocctl.h:62
ScePspnetAdhocctlAdhocType
Definition: pspnet_adhocctl.h:24
int sceNetAdhocctlGetEtherAddr(struct SceNetEtherAddr *addr)
#define SCE_NET_ADHOCCTL_NICKNAME_LEN
Definition: pspnet_adhocctl.h:44
SceUInt64 lastRecv
Definition: pspnet_adhocctl.h:55
int sceNetAdhocctlGetNameByAddr(const struct SceNetEtherAddr *addr, struct SceNetAdhocctlNickname *nickname)
struct SceNetAdhocctlPeerInfo * next
Definition: pspnet_adhocctl.h:51
SceUChar8 padding[6]
Definition: pspnet_adhocctl.h:54
ScePspnetAdhocctlErrorCode
Definition: pspnet_adhocctl.h:18
@ SCE_NET_ADHOCCTL_ADHOCTYPE_RESERVED
Definition: pspnet_adhocctl.h:26
@ SCE_NET_ADHOCCTL_ADHOCTYPE_SYSTEM
Definition: pspnet_adhocctl.h:27
@ SCE_NET_ADHOCCTL_ADHOCTYPE_PRODUCT_ID
Definition: pspnet_adhocctl.h:25
@ SCE_ERROR_NET_ADHOCCTL_INVALID_ARG
Definition: pspnet_adhocctl.h:19
@ SCE_ERROR_NET_ADHOCCTL_NOT_INITIALIZED
Definition: pspnet_adhocctl.h:21
@ SCE_ERROR_NET_ADHOCCTL_ALREADY_INITIALIZED
Definition: pspnet_adhocctl.h:20
Definition: pspnet_adhocctl.h:31
Definition: pspnet_adhocctl.h:60
Definition: pspnet_adhocctl.h:39
Definition: pspnet_adhocctl.h:45
Definition: pspnet_adhocctl.h:66
Definition: pspnet_adhocctl.h:50
int8_t SceChar8
Definition: types.h:32
uint64_t SceUInt64
Definition: types.h:51
uint8_t SceUChar8
Definition: types.h:33