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
15extern "C" {
16#endif
17
23
29
30#define SCE_NET_ADHOCCTL_ADHOCID_LEN 9
37
38#define SCE_NET_ADHOCCTL_GROUPNAME_LEN 8
43
44#define SCE_NET_ADHOCCTL_NICKNAME_LEN 128
49
58
59#define SCE_NET_ADHOCCTL_BSSID_LEN 6
65
73
74int sceNetAdhocctlInit(const struct SceNetAdhocctlAdhocId *adhocId);
77int sceNetAdhocctlGetPeerList(int *buflen, void *buf);
78int sceNetAdhocctlGetPeerInfo(const struct SceNetEtherAddr *addr, int size, struct SceNetAdhocctlPeerInfo *peerInfo);
79int sceNetAdhocctlGetAddrByName(const struct SceNetAdhocctlNickname *nickname, int *buflen, void *buf);
80int sceNetAdhocctlGetNameByAddr(const struct SceNetEtherAddr *addr, struct SceNetAdhocctlNickname *nickname);
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif /* _PSP2_PSPNET_ADHOCCTL_H_ */
89
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
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
#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