1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
/*
gpiConnect.h
GameSpy Presence SDK
Dan "Mr. Pants" Schoenblum
Copyright 1999-2007 GameSpy Industries, Inc
devsupport@gamespy.com
***********************************************************************
Please see the GameSpy Presence SDK documentation for more information
**********************************************************************/
#ifndef _GPICONNECT_H_
#define _GPICONNECT_H_
//INCLUDES
//////////
#include "gpi.h"
//DEFINES
/////////
// Connect States.
//////////////////
#define GPI_NOT_CONNECTED 0
#define GPI_CONNECTING 1
#define GPI_NEGOTIATING 2
#define GPI_CONNECTED 3
#define GPI_DISCONNECTED 4
#define GPI_PROFILE_DELETING 5
//FUNCTIONS
///////////
GPResult
gpiConnect(
GPConnection * connection,
const char nick[GP_NICK_LEN],
const char uniquenick[GP_UNIQUENICK_LEN],
const char email[GP_EMAIL_LEN],
const char password[GP_PASSWORD_LEN],
const char authtoken[GP_AUTHTOKEN_LEN],
const char partnerchallenge[GP_PARTNERCHALLENGE_LEN],
const char cdkey[GP_CDKEY_LEN],
GPEnum firewall,
GPIBool newuser,
GPEnum blocking,
GPCallback callback,
void * param
);
void
gpiDisconnect(
GPConnection * connection,
GPIBool tellServer
);
GPResult
gpiProcessConnect(
GPConnection * connection,
GPIOperation * operation,
const char * input
);
GPResult
gpiCheckConnect(
GPConnection * connection
);
#endif
|