mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
69 lines
1.4 KiB
C
69 lines
1.4 KiB
C
/*
|
|
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
|