dplayx: Assimilate the inherited methods into IDirectPlayLobby3A.

This commit is contained in:
Michael Stefaniuc 2013-04-11 23:48:28 +02:00 committed by Alexandre Julliard
parent 37f7e7ea0c
commit 2c21bac664
1 changed files with 42 additions and 82 deletions

View File

@ -435,14 +435,9 @@ static HRESULT WINAPI IDirectPlayLobby3Impl_Connect( IDirectPlayLobby3 *iface, D
* NOTE: It appears that this method is supposed to be really really stupid * NOTE: It appears that this method is supposed to be really really stupid
* with no error checking on the contents. * with no error checking on the contents.
*/ */
static HRESULT WINAPI IDirectPlayLobbyAImpl_CreateAddress static HRESULT WINAPI IDirectPlayLobby3AImpl_CreateAddress( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, REFGUID guidSP, REFGUID guidDataType, const void *lpData, DWORD dwDataSize, void *lpAddress,
REFGUID guidSP, DWORD *lpdwAddressSize )
REFGUID guidDataType,
LPCVOID lpData,
DWORD dwDataSize,
LPVOID lpAddress,
LPDWORD lpdwAddressSize )
{ {
return DPL_CreateAddress( guidSP, guidDataType, lpData, dwDataSize, return DPL_CreateAddress( guidSP, guidDataType, lpData, dwDataSize,
lpAddress, lpdwAddressSize, TRUE ); lpAddress, lpdwAddressSize, TRUE );
@ -498,12 +493,9 @@ static HRESULT DPL_CreateAddress(
* given callback function, with lpContext, for each of the chunks. * given callback function, with lpContext, for each of the chunks.
* *
*/ */
static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddress static HRESULT WINAPI IDirectPlayLobby3AImpl_EnumAddress( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, LPDPENUMADDRESSCALLBACK lpEnumAddressCallback, const void *lpAddress, DWORD dwAddressSize,
LPDPENUMADDRESSCALLBACK lpEnumAddressCallback, void *lpContext )
LPCVOID lpAddress,
DWORD dwAddressSize,
LPVOID lpContext )
{ {
IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface; IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface;
@ -563,11 +555,8 @@ HRESULT DPL_EnumAddress( LPDPENUMADDRESSCALLBACK lpEnumAddressCallback, LPCVOID
* build the DirectPlay Address. * build the DirectPlay Address.
* *
*/ */
static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddressTypes static HRESULT WINAPI IDirectPlayLobby3AImpl_EnumAddressTypes( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, LPDPLENUMADDRESSTYPESCALLBACK lpEnumAddressTypeCallback, REFGUID guidSP, void *lpContext,
LPDPLENUMADDRESSTYPESCALLBACK lpEnumAddressTypeCallback,
REFGUID guidSP,
LPVOID lpContext,
DWORD dwFlags ) DWORD dwFlags )
{ {
IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface; IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface;
@ -719,11 +708,8 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_EnumLocalApplications
return DPERR_OUTOFMEMORY; return DPERR_OUTOFMEMORY;
} }
static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumLocalApplications static HRESULT WINAPI IDirectPlayLobby3AImpl_EnumLocalApplications( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, LPDPLENUMLOCALAPPLICATIONSCALLBACK lpEnumLocalAppCallback, void *lpContext, DWORD dwFlags )
LPDPLENUMLOCALAPPLICATIONSCALLBACK lpEnumLocalAppCallback,
LPVOID lpContext,
DWORD dwFlags )
{ {
IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface; IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface;
@ -821,11 +807,8 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumLocalApplications
* the data structure to be allocated by our caller which can then * the data structure to be allocated by our caller which can then
* call this procedure/method again with a valid data pointer. * call this procedure/method again with a valid data pointer.
*/ */
static HRESULT WINAPI IDirectPlayLobbyAImpl_GetConnectionSettings static HRESULT WINAPI IDirectPlayLobby3AImpl_GetConnectionSettings( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, DWORD dwAppID, void *lpData, DWORD *lpdwDataSize )
DWORD dwAppID,
LPVOID lpData,
LPDWORD lpdwDataSize )
{ {
IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface; IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface;
HRESULT hr; HRESULT hr;
@ -873,13 +856,9 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_GetConnectionSettings
* application. All messages are queued until received. * application. All messages are queued until received.
* *
*/ */
static HRESULT WINAPI IDirectPlayLobbyAImpl_ReceiveLobbyMessage static HRESULT WINAPI IDirectPlayLobby3AImpl_ReceiveLobbyMessage( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, DWORD dwFlags, DWORD dwAppID, DWORD *lpdwMessageFlags, void *lpData,
DWORD dwFlags, DWORD *lpdwDataSize )
DWORD dwAppID,
LPDWORD lpdwMessageFlags,
LPVOID lpData,
LPDWORD lpdwDataSize )
{ {
IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface; IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface;
FIXME(":stub %p %08x %08x %p %p %p\n", This, dwFlags, dwAppID, lpdwMessageFlags, lpData, FIXME(":stub %p %08x %08x %p %p %p\n", This, dwFlags, dwAppID, lpdwMessageFlags, lpData,
@ -1046,12 +1025,8 @@ static BOOL DPL_CreateAndSetLobbyHandles( DWORD dwDestProcessId, HANDLE hDestPro
* connect to a session. * connect to a session.
* *
*/ */
static HRESULT WINAPI IDirectPlayLobbyAImpl_RunApplication static HRESULT WINAPI IDirectPlayLobby3AImpl_RunApplication( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, DWORD dwFlags, DWORD *lpdwAppID, DPLCONNECTION *lpConn, HANDLE hReceiveEvent )
DWORD dwFlags,
LPDWORD lpdwAppID,
LPDPLCONNECTION lpConn,
HANDLE hReceiveEvent )
{ {
IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface; IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface;
HRESULT hr; HRESULT hr;
@ -1194,12 +1169,8 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_RunApplication
* All messages are queued until received. * All messages are queued until received.
* *
*/ */
static HRESULT WINAPI IDirectPlayLobbyAImpl_SendLobbyMessage static HRESULT WINAPI IDirectPlayLobby3AImpl_SendLobbyMessage( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, DWORD flags, DWORD appid, void *data, DWORD size )
DWORD dwFlags,
DWORD dwAppID,
LPVOID lpData,
DWORD dwDataSize )
{ {
FIXME(":stub\n"); FIXME(":stub\n");
return DPERR_OUTOFMEMORY; return DPERR_OUTOFMEMORY;
@ -1256,11 +1227,8 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_SetConnectionSettings
return hr; return hr;
} }
static HRESULT WINAPI IDirectPlayLobbyAImpl_SetConnectionSettings static HRESULT WINAPI IDirectPlayLobby3AImpl_SetConnectionSettings( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, DWORD dwFlags, DWORD dwAppID, DPLCONNECTION *lpConn )
DWORD dwFlags,
DWORD dwAppID,
LPDPLCONNECTION lpConn )
{ {
IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface; IDirectPlayLobbyAImpl *This = (IDirectPlayLobbyAImpl *)iface;
HRESULT hr; HRESULT hr;
@ -1292,11 +1260,8 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_SetConnectionSettings
* Registers an event that will be set when a lobby message is received. * Registers an event that will be set when a lobby message is received.
* *
*/ */
static HRESULT WINAPI IDirectPlayLobbyAImpl_SetLobbyMessageEvent static HRESULT WINAPI IDirectPlayLobby3AImpl_SetLobbyMessageEvent( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBYA iface, DWORD flags, DWORD appid, HANDLE event )
DWORD dwFlags,
DWORD dwAppID,
HANDLE hReceiveEvent )
{ {
FIXME(":stub\n"); FIXME(":stub\n");
return DPERR_OUTOFMEMORY; return DPERR_OUTOFMEMORY;
@ -1324,12 +1289,9 @@ static HRESULT WINAPI IDirectPlayLobby2WImpl_CreateCompoundAddress
return DPL_CreateCompoundAddress( lpElements, dwElementCount, lpAddress, lpdwAddressSize, FALSE ); return DPL_CreateCompoundAddress( lpElements, dwElementCount, lpAddress, lpdwAddressSize, FALSE );
} }
static HRESULT WINAPI IDirectPlayLobby2AImpl_CreateCompoundAddress static HRESULT WINAPI IDirectPlayLobby3AImpl_CreateCompoundAddress( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBY2A iface, const DPCOMPOUNDADDRESSELEMENT *lpElements, DWORD dwElementCount, void *lpAddress,
LPCDPCOMPOUNDADDRESSELEMENT lpElements, DWORD *lpdwAddressSize )
DWORD dwElementCount,
LPVOID lpAddress,
LPDWORD lpdwAddressSize )
{ {
return DPL_CreateCompoundAddress( lpElements, dwElementCount, lpAddress, lpdwAddressSize, TRUE ); return DPL_CreateCompoundAddress( lpElements, dwElementCount, lpAddress, lpdwAddressSize, TRUE );
} }
@ -1601,19 +1563,17 @@ static const IDirectPlayLobby3Vtbl directPlayLobby3AVT =
XCAST(Release)DPL_Release, XCAST(Release)DPL_Release,
IDirectPlayLobby3AImpl_Connect, IDirectPlayLobby3AImpl_Connect,
XCAST(CreateAddress)IDirectPlayLobbyAImpl_CreateAddress, IDirectPlayLobby3AImpl_CreateAddress,
XCAST(EnumAddress)IDirectPlayLobbyAImpl_EnumAddress, IDirectPlayLobby3AImpl_EnumAddress,
XCAST(EnumAddressTypes)IDirectPlayLobbyAImpl_EnumAddressTypes, IDirectPlayLobby3AImpl_EnumAddressTypes,
XCAST(EnumLocalApplications)IDirectPlayLobbyAImpl_EnumLocalApplications, IDirectPlayLobby3AImpl_EnumLocalApplications,
XCAST(GetConnectionSettings)IDirectPlayLobbyAImpl_GetConnectionSettings, IDirectPlayLobby3AImpl_GetConnectionSettings,
XCAST(ReceiveLobbyMessage)IDirectPlayLobbyAImpl_ReceiveLobbyMessage, IDirectPlayLobby3AImpl_ReceiveLobbyMessage,
XCAST(RunApplication)IDirectPlayLobbyAImpl_RunApplication, IDirectPlayLobby3AImpl_RunApplication,
XCAST(SendLobbyMessage)IDirectPlayLobbyAImpl_SendLobbyMessage, IDirectPlayLobby3AImpl_SendLobbyMessage,
XCAST(SetConnectionSettings)IDirectPlayLobbyAImpl_SetConnectionSettings, IDirectPlayLobby3AImpl_SetConnectionSettings,
XCAST(SetLobbyMessageEvent)IDirectPlayLobbyAImpl_SetLobbyMessageEvent, IDirectPlayLobby3AImpl_SetLobbyMessageEvent,
IDirectPlayLobby3AImpl_CreateCompoundAddress,
XCAST(CreateCompoundAddress)IDirectPlayLobby2AImpl_CreateCompoundAddress,
IDirectPlayLobby3AImpl_ConnectEx, IDirectPlayLobby3AImpl_ConnectEx,
IDirectPlayLobby3AImpl_RegisterApplication, IDirectPlayLobby3AImpl_RegisterApplication,
IDirectPlayLobby3AImpl_UnregisterApplication, IDirectPlayLobby3AImpl_UnregisterApplication,