OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gpiBuddy.h
1/*
2gpiBuddy.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 _GPIBUDDY_H_
15#define _GPIBUDDY_H_
16
17//INCLUDES
19#include "gpi.h"
20
21//DEFINES
23// Types of bm's.
25#define GPI_BM_MESSAGE 1
26#define GPI_BM_REQUEST 2
27#define GPI_BM_REPLY 3 // only used on the backend
28#define GPI_BM_AUTH 4
29#define GPI_BM_UTM 5
30#define GPI_BM_REVOKE 6 // remote buddy removed from local list
31#define GPI_BM_STATUS 100
32#define GPI_BM_INVITE 101
33#define GPI_BM_PING 102
34#define GPI_BM_PONG 103
35#define GPI_BM_KEYS_REQUEST 104
36#define GPI_BM_KEYS_REPLY 105
37#define GPI_BM_FILE_SEND_REQUEST 200
38#define GPI_BM_FILE_SEND_REPLY 201
39#define GPI_BM_FILE_BEGIN 202
40#define GPI_BM_FILE_END 203
41#define GPI_BM_FILE_DATA 204
42#define GPI_BM_FILE_SKIP 205
43#define GPI_BM_FILE_TRANSFER_THROTTLE 206
44#define GPI_BM_FILE_TRANSFER_CANCEL 207
45#define GPI_BM_FILE_TRANSFER_KEEPALIVE 208
46
47//FUNCTIONS
49GPResult
50gpiProcessRecvBuddyMessage(
51 GPConnection * connection,
52 const char * input
53);
54
55GPResult gpiProcessRecvBuddyStatusInfo(GPConnection *connection, const char *input);
56
57GPResult
58gpiProcessRecvBuddyList(
59 GPConnection * connection,
60 const char * input
61);
62
63GPResult
64gpiSendServerBuddyMessage(
65 GPConnection * connection,
66 int profileid,
67 int type,
68 const char * message
69);
70
71GPResult
72gpiSendBuddyMessage(
73 GPConnection * connection,
74 int profileid,
75 int type,
76 const char * message,
77 int sendOptions,
78 GPIPeerOp *peerOp
79);
80
81GPResult gpiBuddyHandleKeyRequest(GPConnection *connection, GPIPeer *peer);
82GPResult gpiBuddyHandleKeyReply(GPConnection *connection, GPIPeer *peer, char *buffer);
83
84GPResult
85gpiAuthBuddyRequest(
86 GPConnection * connection,
87 GPProfile profile
88);
89
90GPIBool
91gpiFixBuddyIndices(
92 GPConnection * connection,
93 GPIProfile * profile,
94 void * data
95);
96
97GPResult
98gpiDeleteBuddy(
99 GPConnection * connection,
100 GPProfile profile,
101 GPIBool sendServerRequest
102);
103
104#endif
Definition gpiProfile.h:67