mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
/*
|
|
gpiPS3.h
|
|
GameSpy Presence SDK
|
|
|
|
devsupport@gamespy.com
|
|
|
|
***********************************************************************
|
|
Please see the GameSpy Presence SDK documentation for more information
|
|
**********************************************************************/
|
|
|
|
#ifndef _GPIPS3_H_
|
|
#define _GPIPS3_H_
|
|
|
|
//INCLUDES
|
|
//////////
|
|
#include "gpi.h"
|
|
#include <np.h>
|
|
#include <np\common.h>
|
|
#include <sysutil/sysutil_common.h>
|
|
|
|
|
|
//DEFINES
|
|
/////////
|
|
#define GPI_NP_SYNC_DELAY 5000 //wait 5 seconds after login before doing any syncs
|
|
#define GPI_NP_STATUS_TIMEOUT 5000 //timeout after 5 second max if NP status is not online
|
|
#define GPI_NP_NUM_TRANSACTIONS 32 //Max num of simultaneous NP lookup transactions
|
|
|
|
//STRUCTURES
|
|
////////////
|
|
typedef struct
|
|
{
|
|
int npTransId;
|
|
SceNpId *npIdForAdd;
|
|
gsi_bool npLookupDone;
|
|
} npIdLookupTrans;
|
|
|
|
//FUNCTIONS
|
|
///////////
|
|
GPResult gpiInitializeNpBasic();
|
|
GPResult gpiCheckNpStatus(GPConnection * connection);
|
|
GPResult gpiDestroyNpBasic(GPConnection * connection);
|
|
GPResult gpiProcessNp(GPConnection * connection);
|
|
int gpiNpBasicCallback(int event, int retCode, uint32_t reqId, void *arg);
|
|
|
|
GPResult gpiSyncNpBuddies(GPConnection * connection);
|
|
void gpiSyncNpBuddiesCallback(GPConnection * pconnection, GPProfileSearchResponseArg * arg, void * param);
|
|
|
|
GPResult gpiSyncNpBlockList(GPConnection * connection);
|
|
void gpiSyncNpBlockListCallback(GPConnection * pconnection, GPProfileSearchResponseArg * arg, void * param);
|
|
|
|
GPResult gpiAddToNpBlockList(GPConnection * connection, int profileid);
|
|
void gpiAddToNpBlockListInfoCallback(GPConnection * pconnection, GPGetInfoResponseArg * arg, void * param);
|
|
|
|
#endif
|