pspnet_adhocmatching.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspnet_adhocmatching.h - PSP Adhoc matching networking libraries.
00007  *
00008  * Copyright (c) 2006 James F.
00009  *
00010  * Based on the adhoc code in SMS Plus
00011  * 
00012  * $Id: pspnet_adhocmatching.h 1836 2006-03-16 20:58:05Z tyranid $
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                                                 // closes the connection and creates a new one with just the
00027                                                 // two PSP's in it.
00028 #define MATCHING_DISCONNECT   0xa       // A PSP has quit, this does not include when the PSP crashes
00029 
00037 int sceNetAdhocMatchingInit(int unk1);       // 0x20000 in lumines
00038 
00044 int sceNetAdhocMatchingTerm(void);
00045 
00047 typedef void (*MatchingCallback)(int unk1, int event, char *mac2, int optLen, char *optData);
00048 
00049 // returns 1 in lumines, probably an ID for matching procs
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

Generated on Tue Jul 24 15:21:23 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2