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