ReactOS 0.4.15-dev-8222-g9164419
lobbysp.c File Reference
#include "winerror.h"
#include "wine/debug.h"
#include "lobbysp.h"
#include "dplay_global.h"
Include dependency graph for lobbysp.c:

Go to the source code of this file.

Classes

struct  IDPLobbySPImpl
 

Typedefs

typedef struct IDPLobbySPImpl IDPLobbySPImpl
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (dplay)
 
static IDPLobbySPImplimpl_from_IDPLobbySP (IDPLobbySP *iface)
 
static HRESULT WINAPI IDPLobbySPImpl_QueryInterface (IDPLobbySP *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI IDPLobbySPImpl_AddRef (IDPLobbySP *iface)
 
static ULONG WINAPI IDPLobbySPImpl_Release (IDPLobbySP *iface)
 
static HRESULT WINAPI IDPLobbySPImpl_AddGroupToGroup (IDPLobbySP *iface, SPDATA_ADDREMOTEGROUPTOGROUP *argtg)
 
static HRESULT WINAPI IDPLobbySPImpl_AddPlayerToGroup (IDPLobbySP *iface, SPDATA_ADDREMOTEPLAYERTOGROUP *arptg)
 
static HRESULT WINAPI IDPLobbySPImpl_CreateGroup (IDPLobbySP *iface, SPDATA_CREATEREMOTEGROUP *crg)
 
static HRESULT WINAPI IDPLobbySPImpl_CreateGroupInGroup (IDPLobbySP *iface, SPDATA_CREATEREMOTEGROUPINGROUP *crgig)
 
static HRESULT WINAPI IDPLobbySPImpl_DeleteGroupFromGroup (IDPLobbySP *iface, SPDATA_DELETEREMOTEGROUPFROMGROUP *drgfg)
 
static HRESULT WINAPI IDPLobbySPImpl_DeletePlayerFromGroup (IDPLobbySP *iface, SPDATA_DELETEREMOTEPLAYERFROMGROUP *drpfg)
 
static HRESULT WINAPI IDPLobbySPImpl_DestroyGroup (IDPLobbySP *iface, SPDATA_DESTROYREMOTEGROUP *drg)
 
static HRESULT WINAPI IDPLobbySPImpl_EnumSessionsResponse (IDPLobbySP *iface, SPDATA_ENUMSESSIONSRESPONSE *er)
 
static HRESULT WINAPI IDPLobbySPImpl_GetSPDataPointer (IDPLobbySP *iface, LPVOID *lplpData)
 
static HRESULT WINAPI IDPLobbySPImpl_HandleMessage (IDPLobbySP *iface, SPDATA_HANDLEMESSAGE *hm)
 
static HRESULT WINAPI IDPLobbySPImpl_SendChatMessage (IDPLobbySP *iface, SPDATA_CHATMESSAGE *cm)
 
static HRESULT WINAPI IDPLobbySPImpl_SetGroupName (IDPLobbySP *iface, SPDATA_SETREMOTEGROUPNAME *srgn)
 
static HRESULT WINAPI IDPLobbySPImpl_SetPlayerName (IDPLobbySP *iface, SPDATA_SETREMOTEPLAYERNAME *srpn)
 
static HRESULT WINAPI IDPLobbySPImpl_SetSessionDesc (IDPLobbySP *iface, SPDATA_SETSESSIONDESC *ssd)
 
static HRESULT WINAPI IDPLobbySPImpl_SetSPDataPointer (IDPLobbySP *iface, void *lpData)
 
static HRESULT WINAPI IDPLobbySPImpl_StartSession (IDPLobbySP *iface, SPDATA_STARTSESSIONCOMMAND *ssc)
 
HRESULT dplobbysp_create (REFIID riid, void **ppv, IDirectPlayImpl *dp)
 

Variables

static const IDPLobbySPVtbl dpLobbySPVT
 

Typedef Documentation

◆ IDPLobbySPImpl

Function Documentation

◆ dplobbysp_create()

HRESULT dplobbysp_create ( REFIID  riid,
void **  ppv,
IDirectPlayImpl dp 
)

Definition at line 230 of file lobbysp.c.

231{
233 HRESULT hr;
234
235 TRACE( "(%s, %p)\n", debugstr_guid( riid ), ppv );
236
237 *ppv = NULL;
238 obj = HeapAlloc( GetProcessHeap(), 0, sizeof( *obj ) );
239 if ( !obj )
240 return DPERR_OUTOFMEMORY;
241
242 obj->IDPLobbySP_iface.lpVtbl = &dpLobbySPVT;
243 obj->ref = 1;
244 obj->dplay = dp;
245
246 hr = IDPLobbySP_QueryInterface( &obj->IDPLobbySP_iface, riid, ppv );
247 IDPLobbySP_Release( &obj->IDPLobbySP_iface );
248
249 return hr;
250}
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define DPERR_OUTOFMEMORY
Definition: dplay.h:109
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
static const IDPLobbySPVtbl dpLobbySPVT
Definition: lobbysp.c:207
#define IDPLobbySP_QueryInterface(p, a, b)
Definition: lobbysp.h:492
#define IDPLobbySP_Release(p)
Definition: lobbysp.h:494
HRESULT hr
Definition: shlfolder.c:183
#define TRACE(s)
Definition: solgame.cpp:4

Referenced by DP_CreateDirectPlay2().

◆ IDPLobbySPImpl_AddGroupToGroup()

static HRESULT WINAPI IDPLobbySPImpl_AddGroupToGroup ( IDPLobbySP *  iface,
SPDATA_ADDREMOTEGROUPTOGROUP argtg 
)
static

Definition at line 81 of file lobbysp.c.

83{
85 FIXME( "(%p)->(%p):stub\n", This, argtg );
86 return DP_OK;
87}
#define FIXME(fmt,...)
Definition: debug.h:114
#define DP_OK
Definition: dplay.h:88
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ IDPLobbySPImpl_AddPlayerToGroup()

static HRESULT WINAPI IDPLobbySPImpl_AddPlayerToGroup ( IDPLobbySP *  iface,
SPDATA_ADDREMOTEPLAYERTOGROUP arptg 
)
static

Definition at line 89 of file lobbysp.c.

91{
93 FIXME( "(%p)->(%p):stub\n", This, arptg );
94 return DP_OK;
95}

◆ IDPLobbySPImpl_AddRef()

static ULONG WINAPI IDPLobbySPImpl_AddRef ( IDPLobbySP *  iface)
static

Definition at line 58 of file lobbysp.c.

59{
62
63 TRACE( "(%p) ref=%d\n", This, ref );
64
65 return ref;
66}
#define InterlockedIncrement
Definition: armddk.h:53
Definition: send.c:48
uint32_t ULONG
Definition: typedefs.h:59

◆ IDPLobbySPImpl_CreateGroup()

static HRESULT WINAPI IDPLobbySPImpl_CreateGroup ( IDPLobbySP *  iface,
SPDATA_CREATEREMOTEGROUP crg 
)
static

Definition at line 97 of file lobbysp.c.

99{
101 FIXME( "(%p)->(%p):stub\n", This, crg );
102 return DP_OK;
103}

◆ IDPLobbySPImpl_CreateGroupInGroup()

static HRESULT WINAPI IDPLobbySPImpl_CreateGroupInGroup ( IDPLobbySP *  iface,
SPDATA_CREATEREMOTEGROUPINGROUP crgig 
)
static

Definition at line 105 of file lobbysp.c.

107{
109 FIXME( "(%p)->(%p):stub\n", This, crgig );
110 return DP_OK;
111}

◆ IDPLobbySPImpl_DeleteGroupFromGroup()

static HRESULT WINAPI IDPLobbySPImpl_DeleteGroupFromGroup ( IDPLobbySP *  iface,
SPDATA_DELETEREMOTEGROUPFROMGROUP drgfg 
)
static

Definition at line 113 of file lobbysp.c.

115{
117 FIXME( "(%p)->(%p):stub\n", This, drgfg );
118 return DP_OK;
119}

◆ IDPLobbySPImpl_DeletePlayerFromGroup()

static HRESULT WINAPI IDPLobbySPImpl_DeletePlayerFromGroup ( IDPLobbySP *  iface,
SPDATA_DELETEREMOTEPLAYERFROMGROUP drpfg 
)
static

Definition at line 121 of file lobbysp.c.

123{
125 FIXME( "(%p)->(%p):stub\n", This, drpfg );
126 return DP_OK;
127}

◆ IDPLobbySPImpl_DestroyGroup()

static HRESULT WINAPI IDPLobbySPImpl_DestroyGroup ( IDPLobbySP *  iface,
SPDATA_DESTROYREMOTEGROUP drg 
)
static

Definition at line 129 of file lobbysp.c.

131{
133 FIXME( "(%p)->(%p):stub\n", This, drg );
134 return DP_OK;
135}

◆ IDPLobbySPImpl_EnumSessionsResponse()

static HRESULT WINAPI IDPLobbySPImpl_EnumSessionsResponse ( IDPLobbySP *  iface,
SPDATA_ENUMSESSIONSRESPONSE er 
)
static

Definition at line 137 of file lobbysp.c.

139{
141 FIXME( "(%p)->(%p):stub\n", This, er );
142 return DP_OK;
143}

◆ IDPLobbySPImpl_GetSPDataPointer()

static HRESULT WINAPI IDPLobbySPImpl_GetSPDataPointer ( IDPLobbySP *  iface,
LPVOID lplpData 
)
static

Definition at line 145 of file lobbysp.c.

146{
148 FIXME( "(%p)->(%p):stub\n", This, lplpData );
149 return DP_OK;
150}

◆ IDPLobbySPImpl_HandleMessage()

static HRESULT WINAPI IDPLobbySPImpl_HandleMessage ( IDPLobbySP *  iface,
SPDATA_HANDLEMESSAGE hm 
)
static

Definition at line 152 of file lobbysp.c.

153{
155 FIXME( "(%p)->(%p):stub\n", This, hm );
156 return DP_OK;
157}

◆ IDPLobbySPImpl_QueryInterface()

static HRESULT WINAPI IDPLobbySPImpl_QueryInterface ( IDPLobbySP *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 41 of file lobbysp.c.

43{
44 TRACE("(%p)->(%s,%p)\n", iface, debugstr_guid( riid ), ppv );
45
46 if ( IsEqualGUID( &IID_IUnknown, riid ) || IsEqualGUID( &IID_IDPLobbySP, riid ) )
47 {
48 *ppv = iface;
49 IDPLobbySP_AddRef(iface);
50 return S_OK;
51 }
52
53 FIXME("Unsupported interface %s\n", debugstr_guid(riid));
54 *ppv = NULL;
55 return E_NOINTERFACE;
56}
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:52
#define IDPLobbySP_AddRef(p)
Definition: lobbysp.h:493
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ IDPLobbySPImpl_Release()

static ULONG WINAPI IDPLobbySPImpl_Release ( IDPLobbySP *  iface)
static

Definition at line 68 of file lobbysp.c.

69{
72
73 TRACE( "(%p) ref=%d\n", This, ref );
74
75 if( !ref )
77
78 return ref;
79}
#define InterlockedDecrement
Definition: armddk.h:52
#define HeapFree(x, y, z)
Definition: compat.h:735

◆ IDPLobbySPImpl_SendChatMessage()

static HRESULT WINAPI IDPLobbySPImpl_SendChatMessage ( IDPLobbySP *  iface,
SPDATA_CHATMESSAGE cm 
)
static

Definition at line 159 of file lobbysp.c.

161{
163 FIXME( "(%p)->(%p):stub\n", This, cm );
164 return DP_OK;
165}

◆ IDPLobbySPImpl_SetGroupName()

static HRESULT WINAPI IDPLobbySPImpl_SetGroupName ( IDPLobbySP *  iface,
SPDATA_SETREMOTEGROUPNAME srgn 
)
static

Definition at line 167 of file lobbysp.c.

169{
171 FIXME( "(%p)->(%p):stub\n", This, srgn );
172 return DP_OK;
173}

◆ IDPLobbySPImpl_SetPlayerName()

static HRESULT WINAPI IDPLobbySPImpl_SetPlayerName ( IDPLobbySP *  iface,
SPDATA_SETREMOTEPLAYERNAME srpn 
)
static

Definition at line 175 of file lobbysp.c.

177{
179 FIXME( "(%p)->(%p):stub\n", This, srpn );
180 return DP_OK;
181}

◆ IDPLobbySPImpl_SetSessionDesc()

static HRESULT WINAPI IDPLobbySPImpl_SetSessionDesc ( IDPLobbySP *  iface,
SPDATA_SETSESSIONDESC ssd 
)
static

Definition at line 183 of file lobbysp.c.

185{
187 FIXME( "(%p)->(%p):stub\n", This, ssd );
188 return DP_OK;
189}

◆ IDPLobbySPImpl_SetSPDataPointer()

static HRESULT WINAPI IDPLobbySPImpl_SetSPDataPointer ( IDPLobbySP *  iface,
void lpData 
)
static

Definition at line 191 of file lobbysp.c.

192{
194 FIXME( "(%p)->(%p):stub\n", This, lpData );
195 return DP_OK;
196}

◆ IDPLobbySPImpl_StartSession()

static HRESULT WINAPI IDPLobbySPImpl_StartSession ( IDPLobbySP *  iface,
SPDATA_STARTSESSIONCOMMAND ssc 
)
static

Definition at line 198 of file lobbysp.c.

200{
202 FIXME( "(%p)->(%p):stub\n", This, ssc );
203 return DP_OK;
204}

◆ impl_from_IDPLobbySP()

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( dplay  )

Variable Documentation

◆ dpLobbySPVT

const IDPLobbySPVtbl dpLobbySPVT
static
Initial value:
=
{
}
static HRESULT WINAPI IDPLobbySPImpl_CreateGroup(IDPLobbySP *iface, SPDATA_CREATEREMOTEGROUP *crg)
Definition: lobbysp.c:97
static HRESULT WINAPI IDPLobbySPImpl_DestroyGroup(IDPLobbySP *iface, SPDATA_DESTROYREMOTEGROUP *drg)
Definition: lobbysp.c:129
static HRESULT WINAPI IDPLobbySPImpl_EnumSessionsResponse(IDPLobbySP *iface, SPDATA_ENUMSESSIONSRESPONSE *er)
Definition: lobbysp.c:137
static HRESULT WINAPI IDPLobbySPImpl_QueryInterface(IDPLobbySP *iface, REFIID riid, void **ppv)
Definition: lobbysp.c:41
static HRESULT WINAPI IDPLobbySPImpl_StartSession(IDPLobbySP *iface, SPDATA_STARTSESSIONCOMMAND *ssc)
Definition: lobbysp.c:198
static ULONG WINAPI IDPLobbySPImpl_AddRef(IDPLobbySP *iface)
Definition: lobbysp.c:58
static HRESULT WINAPI IDPLobbySPImpl_SetPlayerName(IDPLobbySP *iface, SPDATA_SETREMOTEPLAYERNAME *srpn)
Definition: lobbysp.c:175
static HRESULT WINAPI IDPLobbySPImpl_CreateGroupInGroup(IDPLobbySP *iface, SPDATA_CREATEREMOTEGROUPINGROUP *crgig)
Definition: lobbysp.c:105
static HRESULT WINAPI IDPLobbySPImpl_SetGroupName(IDPLobbySP *iface, SPDATA_SETREMOTEGROUPNAME *srgn)
Definition: lobbysp.c:167
static HRESULT WINAPI IDPLobbySPImpl_SetSPDataPointer(IDPLobbySP *iface, void *lpData)
Definition: lobbysp.c:191
static HRESULT WINAPI IDPLobbySPImpl_DeletePlayerFromGroup(IDPLobbySP *iface, SPDATA_DELETEREMOTEPLAYERFROMGROUP *drpfg)
Definition: lobbysp.c:121
static HRESULT WINAPI IDPLobbySPImpl_HandleMessage(IDPLobbySP *iface, SPDATA_HANDLEMESSAGE *hm)
Definition: lobbysp.c:152
static HRESULT WINAPI IDPLobbySPImpl_AddPlayerToGroup(IDPLobbySP *iface, SPDATA_ADDREMOTEPLAYERTOGROUP *arptg)
Definition: lobbysp.c:89
static HRESULT WINAPI IDPLobbySPImpl_AddGroupToGroup(IDPLobbySP *iface, SPDATA_ADDREMOTEGROUPTOGROUP *argtg)
Definition: lobbysp.c:81
static HRESULT WINAPI IDPLobbySPImpl_GetSPDataPointer(IDPLobbySP *iface, LPVOID *lplpData)
Definition: lobbysp.c:145
static HRESULT WINAPI IDPLobbySPImpl_SetSessionDesc(IDPLobbySP *iface, SPDATA_SETSESSIONDESC *ssd)
Definition: lobbysp.c:183
static HRESULT WINAPI IDPLobbySPImpl_SendChatMessage(IDPLobbySP *iface, SPDATA_CHATMESSAGE *cm)
Definition: lobbysp.c:159
static ULONG WINAPI IDPLobbySPImpl_Release(IDPLobbySP *iface)
Definition: lobbysp.c:68
static HRESULT WINAPI IDPLobbySPImpl_DeleteGroupFromGroup(IDPLobbySP *iface, SPDATA_DELETEREMOTEGROUPFROMGROUP *drgfg)
Definition: lobbysp.c:113

Definition at line 207 of file lobbysp.c.

Referenced by dplobbysp_create().