ReactOS  0.4.14-dev-115-g4576127
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 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define DPERR_OUTOFMEMORY
Definition: dplay.h:109
GLsizei GLsizei GLuint * obj
Definition: glext.h:6042
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
LONG HRESULT
Definition: typedefs.h:77
#define IDPLobbySP_QueryInterface(p, a, b)
Definition: lobbysp.h:492
static const IDPLobbySPVtbl dpLobbySPVT
Definition: lobbysp.c:207
#define IDPLobbySP_Release(p)
Definition: lobbysp.h:494

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 DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36
unsigned int ULONG
Definition: retypes.h:1

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IDPLobbySP_AddRef(p)
Definition: lobbysp.h:493
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021

◆ 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 )
76  HeapFree( GetProcessHeap(), 0, This );
77 
78  return ref;
79 }
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
#define InterlockedDecrement
Definition: armddk.h:52
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36
unsigned int ULONG
Definition: retypes.h:1
#define HeapFree(x, y, z)
Definition: compat.h:394

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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 }
#define DP_OK
Definition: dplay.h:88
#define FIXME(fmt,...)
Definition: debug.h:110
static IDPLobbySPImpl * impl_from_IDPLobbySP(IDPLobbySP *iface)
Definition: lobbysp.c:36

◆ 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_AddPlayerToGroup(IDPLobbySP *iface, SPDATA_ADDREMOTEPLAYERTOGROUP *arptg)
Definition: lobbysp.c:89
static HRESULT WINAPI IDPLobbySPImpl_DestroyGroup(IDPLobbySP *iface, SPDATA_DESTROYREMOTEGROUP *drg)
Definition: lobbysp.c:129
static HRESULT WINAPI IDPLobbySPImpl_HandleMessage(IDPLobbySP *iface, SPDATA_HANDLEMESSAGE *hm)
Definition: lobbysp.c:152
static HRESULT WINAPI IDPLobbySPImpl_AddGroupToGroup(IDPLobbySP *iface, SPDATA_ADDREMOTEGROUPTOGROUP *argtg)
Definition: lobbysp.c:81
static HRESULT WINAPI IDPLobbySPImpl_CreateGroup(IDPLobbySP *iface, SPDATA_CREATEREMOTEGROUP *crg)
Definition: lobbysp.c:97
static HRESULT WINAPI IDPLobbySPImpl_DeletePlayerFromGroup(IDPLobbySP *iface, SPDATA_DELETEREMOTEPLAYERFROMGROUP *drpfg)
Definition: lobbysp.c:121
static HRESULT WINAPI IDPLobbySPImpl_SetSessionDesc(IDPLobbySP *iface, SPDATA_SETSESSIONDESC *ssd)
Definition: lobbysp.c:183
static HRESULT WINAPI IDPLobbySPImpl_CreateGroupInGroup(IDPLobbySP *iface, SPDATA_CREATEREMOTEGROUPINGROUP *crgig)
Definition: lobbysp.c:105
static HRESULT WINAPI IDPLobbySPImpl_GetSPDataPointer(IDPLobbySP *iface, LPVOID *lplpData)
Definition: lobbysp.c:145
static HRESULT WINAPI IDPLobbySPImpl_EnumSessionsResponse(IDPLobbySP *iface, SPDATA_ENUMSESSIONSRESPONSE *er)
Definition: lobbysp.c:137
static HRESULT WINAPI IDPLobbySPImpl_DeleteGroupFromGroup(IDPLobbySP *iface, SPDATA_DELETEREMOTEGROUPFROMGROUP *drgfg)
Definition: lobbysp.c:113
static HRESULT WINAPI IDPLobbySPImpl_QueryInterface(IDPLobbySP *iface, REFIID riid, void **ppv)
Definition: lobbysp.c:41
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_SetSPDataPointer(IDPLobbySP *iface, void *lpData)
Definition: lobbysp.c:191
static HRESULT WINAPI IDPLobbySPImpl_SetGroupName(IDPLobbySP *iface, SPDATA_SETREMOTEGROUPNAME *srgn)
Definition: lobbysp.c:167
static HRESULT WINAPI IDPLobbySPImpl_StartSession(IDPLobbySP *iface, SPDATA_STARTSESSIONCOMMAND *ssc)
Definition: lobbysp.c:198
static ULONG WINAPI IDPLobbySPImpl_Release(IDPLobbySP *iface)
Definition: lobbysp.c:68
static HRESULT WINAPI IDPLobbySPImpl_SendChatMessage(IDPLobbySP *iface, SPDATA_CHATMESSAGE *cm)
Definition: lobbysp.c:159

Definition at line 207 of file lobbysp.c.

Referenced by dplobbysp_create().