00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __PSPNETMATCHING_ADHOC_H__
00015 #define __PSPNETMATCHING_ADHOC_H__
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00021 #define MATCHING_JOINED 0x1 // Another PSP has joined
00022 #define MATCHING_SELECTED 0x2 // Another PSP selected to match
00023 #define MATCHING_REJECTED 0x4 // The request has been rejected
00024 #define MATCHING_CANCELED 0x5 // The request has been cancelled
00025 #define MATCHING_ESTABLISHED 0x7 // Both PSP's have agreed to connect, at this point Lumines
00026
00027
00028 #define MATCHING_DISCONNECT 0xa // A PSP has quit, this does not include when the PSP crashes
00029
00037 int sceNetAdhocMatchingInit(int unk1);
00038
00044 int sceNetAdhocMatchingTerm(void);
00045
00047 typedef void (*MatchingCallback)(int unk1, int event, char *mac2, int optLen, char *optData);
00048
00049
00065 int sceNetAdhocMatchingCreate(int unk1, int unk2, int port, int unk4, int unk5, int unk6, int unk7, int unk8, MatchingCallback callback);
00066
00074 int sceNetAdhocMatchingDelete(int matchingId);
00075
00089 int sceNetAdhocMatchingStart(int matchingId, int unk1, int unk2, int unk3, int unk4, int usrDataSize, char *usrData);
00090
00098 int sceNetAdhocMatchingStop(int matchingId);
00099
00110 int sceNetAdhocMatchingSelectTarget(int matchingId, char *mac, int unk3, int unk4);
00111
00120 int sceNetAdhocMatchingCancelTarget(int matchingId, char *mac);
00121
00122 #ifdef __cplusplus
00123 }
00124 #endif
00125
00126 #endif