blob: 3f545c18a5db933a3cef5bdc1e7083dc172a3137 [file] [log] [blame]
Peter Hunnisett3d7cd872001-04-12 21:10:54 +00001/* This contains the implementation of the Lobby Service
2 * Providers interface required to communicate with Direct Play
3 *
Tom Wicklineaaf38e32003-09-29 20:12:05 +00004 * Copyright 2001 Peter Hunnisett
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00005 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
Jonathan Ernst360a3f92006-05-18 14:49:52 +020018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000019 */
20
21#include "winerror.h"
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000022#include "wine/debug.h"
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000023
24#include "lobbysp.h"
25#include "dplay_global.h"
26#include "dpinit.h"
27
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000028WINE_DEFAULT_DEBUG_CHANNEL(dplay);
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000029
30/* Prototypes */
31static BOOL DPLSP_CreateIUnknown( LPVOID lpSP );
32static BOOL DPLSP_DestroyIUnknown( LPVOID lpSP );
33static BOOL DPLSP_CreateDPLobbySP( LPVOID lpSP, IDirectPlay2Impl* dp );
34static BOOL DPLSP_DestroyDPLobbySP( LPVOID lpSP );
35
36
37/* Predefine the interface */
38typedef struct IDPLobbySPImpl IDPLobbySPImpl;
39
40typedef struct tagDPLobbySPIUnknownData
41{
Mike McCormack0791d062005-07-12 19:21:36 +000042 LONG ulObjRef;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000043 CRITICAL_SECTION DPLSP_lock;
44} DPLobbySPIUnknownData;
45
46typedef struct tagDPLobbySPData
47{
48 IDirectPlay2Impl* dplay;
49} DPLobbySPData;
50
51#define DPLSP_IMPL_FIELDS \
Mike McCormack0791d062005-07-12 19:21:36 +000052 LONG ulInterfaceRef; \
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000053 DPLobbySPIUnknownData* unk; \
54 DPLobbySPData* sp;
55
56struct IDPLobbySPImpl
57{
Dmitry Timoshkovb67da5b2005-06-01 19:57:42 +000058 const IDPLobbySPVtbl *lpVtbl;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000059 DPLSP_IMPL_FIELDS
60};
61
62/* Forward declaration of virtual tables */
Dmitry Timoshkovb67da5b2005-06-01 19:57:42 +000063static const IDPLobbySPVtbl dpLobbySPVT;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000064
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000065HRESULT DPLSP_CreateInterface( REFIID riid, LPVOID* ppvObj, IDirectPlay2Impl* dp )
66{
67 TRACE( " for %s\n", debugstr_guid( riid ) );
68
69 *ppvObj = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
70 sizeof( IDPLobbySPImpl ) );
71
72 if( *ppvObj == NULL )
73 {
74 return DPERR_OUTOFMEMORY;
75 }
76
77 if( IsEqualGUID( &IID_IDPLobbySP, riid ) )
78 {
Michael Stefaniucf1a877a2009-01-16 09:53:59 +010079 IDPLobbySPImpl *This = *ppvObj;
Alexandre Julliardc2ebe1f2003-04-10 18:17:34 +000080 This->lpVtbl = &dpLobbySPVT;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +000081 }
82 else
83 {
84 /* Unsupported interface */
85 HeapFree( GetProcessHeap(), 0, *ppvObj );
86 *ppvObj = NULL;
87
88 return E_NOINTERFACE;
89 }
90
91 /* Initialize it */
92 if( DPLSP_CreateIUnknown( *ppvObj ) &&
93 DPLSP_CreateDPLobbySP( *ppvObj, dp )
94 )
95 {
96 IDPLobbySP_AddRef( (LPDPLOBBYSP)*ppvObj );
97 return S_OK;
98 }
99
100 /* Initialize failed, destroy it */
101 DPLSP_DestroyDPLobbySP( *ppvObj );
102 DPLSP_DestroyIUnknown( *ppvObj );
103
104 HeapFree( GetProcessHeap(), 0, *ppvObj );
105 *ppvObj = NULL;
106
107 return DPERR_NOMEMORY;
108}
109
110static BOOL DPLSP_CreateIUnknown( LPVOID lpSP )
111{
Michael Stefaniucf1a877a2009-01-16 09:53:59 +0100112 IDPLobbySPImpl *This = lpSP;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000113
Jakob Eriksson9ed61de2005-03-24 21:01:35 +0000114 This->unk = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof( *(This->unk) ) );
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000115
116 if ( This->unk == NULL )
117 {
118 return FALSE;
119 }
120
121 InitializeCriticalSection( &This->unk->DPLSP_lock );
Jan Zerebeckia950a472007-03-08 16:34:13 +0100122 This->unk->DPLSP_lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IDPLobbySPImpl*->DPLobbySPIUnknownData*->DPLSP_lock");
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000123
124 return TRUE;
125}
126
127static BOOL DPLSP_DestroyIUnknown( LPVOID lpSP )
128{
Michael Stefaniucf1a877a2009-01-16 09:53:59 +0100129 IDPLobbySPImpl *This = lpSP;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000130
Jan Zerebeckia950a472007-03-08 16:34:13 +0100131 This->unk->DPLSP_lock.DebugInfo->Spare[0] = 0;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000132 DeleteCriticalSection( &This->unk->DPLSP_lock );
133 HeapFree( GetProcessHeap(), 0, This->unk );
134
135 return TRUE;
136}
137
138static BOOL DPLSP_CreateDPLobbySP( LPVOID lpSP, IDirectPlay2Impl* dp )
139{
Michael Stefaniucf1a877a2009-01-16 09:53:59 +0100140 IDPLobbySPImpl *This = lpSP;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000141
Jakob Eriksson9ed61de2005-03-24 21:01:35 +0000142 This->sp = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof( *(This->sp) ) );
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000143
144 if ( This->sp == NULL )
145 {
146 return FALSE;
147 }
148
149 This->sp->dplay = dp;
150
151 /* Normally we should be keeping a reference, but since only the dplay
152 * interface that created us can destroy us, we do not keep a reference
153 * to it (ie we'd be stuck with always having one reference to the dplay
154 * object, and hence us, around).
155 * NOTE: The dp object does reference count us.
156 *
157 * FIXME: This is a kludge to get around a problem where a queryinterface
158 * is used to get a new interface and then is closed. We will then
159 * reference garbage. However, with this we will never deallocate
160 * the interface we store. The correct fix is to require all
161 * DP internal interfaces to use the This->dp2 interface which
162 * should be changed to This->dp
163 */
164 IDirectPlayX_AddRef( (LPDIRECTPLAY2)dp );
165
166
167 return TRUE;
168}
169
170static BOOL DPLSP_DestroyDPLobbySP( LPVOID lpSP )
171{
Michael Stefaniucf1a877a2009-01-16 09:53:59 +0100172 IDPLobbySPImpl *This = lpSP;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000173
174 HeapFree( GetProcessHeap(), 0, This->sp );
175
176 return TRUE;
177}
178
179static
180HRESULT WINAPI DPLSP_QueryInterface
Vincent Béron9a624912002-05-31 23:06:46 +0000181( LPDPLOBBYSP iface,
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000182 REFIID riid,
Vincent Béron9a624912002-05-31 23:06:46 +0000183 LPVOID* ppvObj
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000184)
185{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000186 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000187 TRACE("(%p)->(%s,%p)\n", This, debugstr_guid( riid ), ppvObj );
188
189 *ppvObj = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
190 sizeof( *This ) );
191
192 if( *ppvObj == NULL )
193 {
194 return DPERR_OUTOFMEMORY;
195 }
196
197 CopyMemory( *ppvObj, This, sizeof( *This ) );
198 (*(IDPLobbySPImpl**)ppvObj)->ulInterfaceRef = 0;
199
200 if( IsEqualGUID( &IID_IDPLobbySP, riid ) )
201 {
Michael Stefaniucf1a877a2009-01-16 09:53:59 +0100202 IDPLobbySPImpl *This = *ppvObj;
Alexandre Julliardc2ebe1f2003-04-10 18:17:34 +0000203 This->lpVtbl = &dpLobbySPVT;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000204 }
205 else
206 {
207 /* Unsupported interface */
208 HeapFree( GetProcessHeap(), 0, *ppvObj );
209 *ppvObj = NULL;
210
211 return E_NOINTERFACE;
212 }
213
214 IDPLobbySP_AddRef( (LPDPLOBBYSP)*ppvObj );
215
216 return S_OK;
217}
218
Vincent Béron9a624912002-05-31 23:06:46 +0000219static
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000220ULONG WINAPI DPLSP_AddRef
221( LPDPLOBBYSP iface )
222{
223 ULONG ulInterfaceRefCount, ulObjRefCount;
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000224 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000225
226 ulObjRefCount = InterlockedIncrement( &This->unk->ulObjRef );
227 ulInterfaceRefCount = InterlockedIncrement( &This->ulInterfaceRef );
228
Michael Stefaniuc699d4412006-10-10 01:07:17 +0200229 TRACE( "ref count incremented to %u:%u for %p\n",
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000230 ulInterfaceRefCount, ulObjRefCount, This );
231
232 return ulObjRefCount;
233}
234
235static
236ULONG WINAPI DPLSP_Release
237( LPDPLOBBYSP iface )
238{
239 ULONG ulInterfaceRefCount, ulObjRefCount;
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000240 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000241
242 ulObjRefCount = InterlockedDecrement( &This->unk->ulObjRef );
243 ulInterfaceRefCount = InterlockedDecrement( &This->ulInterfaceRef );
244
Michael Stefaniuc699d4412006-10-10 01:07:17 +0200245 TRACE( "ref count decremented to %u:%u for %p\n",
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000246 ulInterfaceRefCount, ulObjRefCount, This );
247
248 /* Deallocate if this is the last reference to the object */
249 if( ulObjRefCount == 0 )
250 {
251 DPLSP_DestroyDPLobbySP( This );
252 DPLSP_DestroyIUnknown( This );
253 }
254
255 if( ulInterfaceRefCount == 0 )
256 {
257 HeapFree( GetProcessHeap(), 0, This );
258 }
259
260 return ulInterfaceRefCount;
261}
262
Vincent Béron9a624912002-05-31 23:06:46 +0000263static
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000264HRESULT WINAPI IDPLobbySPImpl_AddGroupToGroup
Vincent Béron9a624912002-05-31 23:06:46 +0000265( LPDPLOBBYSP iface,
266 LPSPDATA_ADDREMOTEGROUPTOGROUP argtg
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000267)
268{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000269 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000270 FIXME( "(%p)->(%p):stub\n", This, argtg );
271 return DP_OK;
272}
273
Vincent Béron9a624912002-05-31 23:06:46 +0000274static
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000275HRESULT WINAPI IDPLobbySPImpl_AddPlayerToGroup
Vincent Béron9a624912002-05-31 23:06:46 +0000276( LPDPLOBBYSP iface,
277 LPSPDATA_ADDREMOTEPLAYERTOGROUP arptg
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000278)
279{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000280 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000281 FIXME( "(%p)->(%p):stub\n", This, arptg );
282 return DP_OK;
283}
284
Vincent Béron9a624912002-05-31 23:06:46 +0000285static
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000286HRESULT WINAPI IDPLobbySPImpl_CreateGroup
Vincent Béron9a624912002-05-31 23:06:46 +0000287( LPDPLOBBYSP iface,
288 LPSPDATA_CREATEREMOTEGROUP crg
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000289)
290{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000291 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000292 FIXME( "(%p)->(%p):stub\n", This, crg );
293 return DP_OK;
294}
295
Vincent Béron9a624912002-05-31 23:06:46 +0000296static
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000297HRESULT WINAPI IDPLobbySPImpl_CreateGroupInGroup
Vincent Béron9a624912002-05-31 23:06:46 +0000298( LPDPLOBBYSP iface,
299 LPSPDATA_CREATEREMOTEGROUPINGROUP crgig
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000300)
301{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000302 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000303 FIXME( "(%p)->(%p):stub\n", This, crgig );
304 return DP_OK;
305}
306
307static
308HRESULT WINAPI IDPLobbySPImpl_DeleteGroupFromGroup
Vincent Béron9a624912002-05-31 23:06:46 +0000309( LPDPLOBBYSP iface,
310 LPSPDATA_DELETEREMOTEGROUPFROMGROUP drgfg
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000311)
312{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000313 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000314 FIXME( "(%p)->(%p):stub\n", This, drgfg );
315 return DP_OK;
316}
317
318static
319HRESULT WINAPI IDPLobbySPImpl_DeletePlayerFromGroup
Vincent Béron9a624912002-05-31 23:06:46 +0000320( LPDPLOBBYSP iface,
321 LPSPDATA_DELETEREMOTEPLAYERFROMGROUP drpfg
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000322)
323{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000324 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000325 FIXME( "(%p)->(%p):stub\n", This, drpfg );
326 return DP_OK;
327}
328
329static
330HRESULT WINAPI IDPLobbySPImpl_DestroyGroup
Vincent Béron9a624912002-05-31 23:06:46 +0000331( LPDPLOBBYSP iface,
332 LPSPDATA_DESTROYREMOTEGROUP drg
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000333)
334{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000335 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000336 FIXME( "(%p)->(%p):stub\n", This, drg );
337 return DP_OK;
338}
339
340static
341HRESULT WINAPI IDPLobbySPImpl_EnumSessionsResponse
Vincent Béron9a624912002-05-31 23:06:46 +0000342( LPDPLOBBYSP iface,
343 LPSPDATA_ENUMSESSIONSRESPONSE er
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000344)
345{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000346 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000347 FIXME( "(%p)->(%p):stub\n", This, er );
348 return DP_OK;
349}
350
351static
352HRESULT WINAPI IDPLobbySPImpl_GetSPDataPointer
Vincent Béron9a624912002-05-31 23:06:46 +0000353( LPDPLOBBYSP iface,
354 LPVOID* lplpData
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000355)
356{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000357 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000358 FIXME( "(%p)->(%p):stub\n", This, lplpData );
359 return DP_OK;
360}
361
362static
363HRESULT WINAPI IDPLobbySPImpl_HandleMessage
Vincent Béron9a624912002-05-31 23:06:46 +0000364( LPDPLOBBYSP iface,
365 LPSPDATA_HANDLEMESSAGE hm
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000366)
367{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000368 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000369 FIXME( "(%p)->(%p):stub\n", This, hm );
370 return DP_OK;
371}
372
373static
374HRESULT WINAPI IDPLobbySPImpl_SendChatMessage
Vincent Béron9a624912002-05-31 23:06:46 +0000375( LPDPLOBBYSP iface,
376 LPSPDATA_CHATMESSAGE cm
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000377)
378{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000379 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000380 FIXME( "(%p)->(%p):stub\n", This, cm );
381 return DP_OK;
382}
383
384static
385HRESULT WINAPI IDPLobbySPImpl_SetGroupName
Vincent Béron9a624912002-05-31 23:06:46 +0000386( LPDPLOBBYSP iface,
387 LPSPDATA_SETREMOTEGROUPNAME srgn
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000388)
389{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000390 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000391 FIXME( "(%p)->(%p):stub\n", This, srgn );
392 return DP_OK;
393}
394
395static
396HRESULT WINAPI IDPLobbySPImpl_SetPlayerName
Vincent Béron9a624912002-05-31 23:06:46 +0000397( LPDPLOBBYSP iface,
398 LPSPDATA_SETREMOTEPLAYERNAME srpn
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000399)
400{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000401 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000402 FIXME( "(%p)->(%p):stub\n", This, srpn );
403 return DP_OK;
404}
405
406static
407HRESULT WINAPI IDPLobbySPImpl_SetSessionDesc
Vincent Béron9a624912002-05-31 23:06:46 +0000408( LPDPLOBBYSP iface,
409 LPSPDATA_SETSESSIONDESC ssd
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000410)
411{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000412 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000413 FIXME( "(%p)->(%p):stub\n", This, ssd );
414 return DP_OK;
415}
416
417static
418HRESULT WINAPI IDPLobbySPImpl_SetSPDataPointer
Vincent Béron9a624912002-05-31 23:06:46 +0000419( LPDPLOBBYSP iface,
420 LPVOID lpData
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000421)
422{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000423 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000424 FIXME( "(%p)->(%p):stub\n", This, lpData );
425 return DP_OK;
426}
427
428static
429HRESULT WINAPI IDPLobbySPImpl_StartSession
Vincent Béron9a624912002-05-31 23:06:46 +0000430( LPDPLOBBYSP iface,
431 LPSPDATA_STARTSESSIONCOMMAND ssc
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000432)
433{
Alexandre Julliard39a696a2004-09-06 20:34:29 +0000434 IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000435 FIXME( "(%p)->(%p):stub\n", This, ssc );
436 return DP_OK;
437}
438
439
Dmitry Timoshkovb67da5b2005-06-01 19:57:42 +0000440static const IDPLobbySPVtbl dpLobbySPVT =
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000441{
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000442
443 DPLSP_QueryInterface,
444 DPLSP_AddRef,
445 DPLSP_Release,
446
447 IDPLobbySPImpl_AddGroupToGroup,
448 IDPLobbySPImpl_AddPlayerToGroup,
449 IDPLobbySPImpl_CreateGroup,
450 IDPLobbySPImpl_CreateGroupInGroup,
451 IDPLobbySPImpl_DeleteGroupFromGroup,
452 IDPLobbySPImpl_DeletePlayerFromGroup,
453 IDPLobbySPImpl_DestroyGroup,
454 IDPLobbySPImpl_EnumSessionsResponse,
455 IDPLobbySPImpl_GetSPDataPointer,
456 IDPLobbySPImpl_HandleMessage,
457 IDPLobbySPImpl_SendChatMessage,
Vincent Béron9a624912002-05-31 23:06:46 +0000458 IDPLobbySPImpl_SetGroupName,
459 IDPLobbySPImpl_SetPlayerName,
Peter Hunnisett3d7cd872001-04-12 21:10:54 +0000460 IDPLobbySPImpl_SetSessionDesc,
461 IDPLobbySPImpl_SetSPDataPointer,
462 IDPLobbySPImpl_StartSession
463
464};