OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gpiSearch.h
1/*
2gpiSearch.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 _GPISEARCH_H_
15#define _GPISEARCH_H_
16
17//INCLUDES
19#include "gpi.h"
20
21//TYPES
23#define GPI_SEARCH_PROFILE 1
24#define GPI_SEARCH_IS_VALID 2
25#define GPI_SEARCH_NICKS 3
26#define GPI_SEARCH_PLAYERS 4
27#define GPI_SEARCH_CHECK 5
28#define GPI_SEARCH_NEWUSER 6
29#define GPI_SEARCH_OTHERS_BUDDY 7
30#define GPI_SEARCH_SUGGEST_UNIQUE 8
31#define GPI_SEARCH_OTHERS_BUDDY_LIST 9
32#define GPI_SEARCH_PROFILE_UNIQUENICK 10
33
34// A timeout used to abort searches taking too long
35#define GPI_SEARCH_TIMEOUT 60000
36
37// Profile Search operation data.
39typedef struct
40{
41 int type;
42 SOCKET sock;
43 GPIBuffer inputBuffer;
44 GPIBuffer outputBuffer;
45 char nick[GP_NICK_LEN];
46 char uniquenick[GP_UNIQUENICK_LEN];
47 int namespaceIDs[GP_MAX_NAMESPACEIDS];
48 int numNamespaces;
49 char email[GP_EMAIL_LEN];
50 char firstname[GP_FIRSTNAME_LEN];
51 char lastname[GP_LASTNAME_LEN];
52 char password[GP_PASSWORD_LEN];
53 char cdkey[GP_CDKEY_LEN];
54 int partnerID;
55 int icquin;
56 int skip;
57 int productID;
58 GPIBool processing;
59 GPIBool remove;
60 gsi_time searchStartTime;
61 int *revBuddyProfileIds;
62 int numOfRevBuddyProfiles;
64
65//FUNCTIONS
67GPResult
68gpiProfileSearch(
69 GPConnection * connection,
70 const char nick[GP_NICK_LEN],
71 const char uniquenick[GP_UNIQUENICK_LEN],
72 const char email[GP_EMAIL_LEN],
73 const char firstname[GP_FIRSTNAME_LEN],
74 const char lastname[GP_LASTNAME_LEN],
75 int icquin,
76 int skip,
77 GPEnum blocking,
78 GPCallback callback,
79 void * param
80);
81
82GPResult
83gpiProfileSearchUniquenick(
84 GPConnection * connection,
85 const char uniquenick[GP_UNIQUENICK_LEN],
86 const int namespaceIDs[],
87 int numNamespaces,
88 GPEnum blocking,
89 GPCallback callback,
90 void * param
91);
92
93GPResult
94gpiIsValidEmail(
95 GPConnection * connection,
96 const char email[GP_EMAIL_LEN],
97 GPEnum blocking,
98 GPCallback callback,
99 void * param
100);
101
102GPResult
103gpiGetUserNicks(
104 GPConnection * connection,
105 const char email[GP_EMAIL_LEN],
106 const char password[GP_PASSWORD_LEN],
107 GPEnum blocking,
108 GPCallback callback,
109 void * param
110);
111
112GPResult
113gpiFindPlayers(
114 GPConnection * connection,
115 int productID,
116 GPEnum blocking,
117 GPCallback callback,
118 void * param
119);
120
121GPResult gpiCheckUser(
122 GPConnection * connection,
123 const char nick[GP_NICK_LEN],
124 const char email[GP_EMAIL_LEN],
125 const char password[GP_PASSWORD_LEN],
126 GPEnum blocking,
127 GPCallback callback,
128 void * param
129);
130
131GPResult gpiNewUser(
132 GPConnection * connection,
133 const char nick[GP_NICK_LEN],
134 const char uniquenick[GP_UNIQUENICK_LEN],
135 const char email[GP_EMAIL_LEN],
136 const char password[GP_PASSWORD_LEN],
137 const char cdkey[GP_CDKEY_LEN],
138 GPEnum blocking,
139 GPCallback callback,
140 void * param
141);
142
143GPResult gpiOthersBuddy(
144 GPConnection * connection,
145 GPEnum blocking,
146 GPCallback callback,
147 void * param
148);
149
150GPResult gpiOthersBuddyList(
151 GPConnection * connection,
152 int *profiles,
153 int numOfProfiles,
154 GPEnum blocking,
155 GPCallback callback,
156 void * param
157);
158
159GPResult gpiSuggestUniqueNick(
160 GPConnection * connection,
161 const char desirednick[GP_NICK_LEN],
162 GPEnum blocking,
163 GPCallback callback,
164 void * param
165);
166
167GPResult
168gpiProcessSearches(
169 GPConnection * connection
170);
171
172#endif
Definition gpiBuffer.h:26
Definition gpiSearch.h:40