mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-06-12 13:17:50 +02:00
lsteamclient: Use a generic interface wrapper struct.
CW-Bug-Id: #22729
This commit is contained in:

committed by
Arkadiusz Hiler

parent
eb531f7764
commit
7e5eed6c71
@ -5,8 +5,6 @@
|
||||
#include "winbase.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
#include "cxx.h"
|
||||
|
||||
#include "steam_defs.h"
|
||||
|
||||
#include "steamclient_private.h"
|
||||
@ -17,11 +15,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
||||
|
||||
#include "cppISteamMasterServerUpdater_SteamMasterServerUpdater001.h"
|
||||
|
||||
typedef struct __winISteamMasterServerUpdater_SteamMasterServerUpdater001 {
|
||||
vtable_ptr *vtable;
|
||||
void *linux_side;
|
||||
} winISteamMasterServerUpdater_SteamMasterServerUpdater001;
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetActive, 8)
|
||||
DEFINE_THISCALL_WRAPPER(winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetHeartbeatInterval, 8)
|
||||
DEFINE_THISCALL_WRAPPER(winISteamMasterServerUpdater_SteamMasterServerUpdater001_HandleIncomingPacket, 20)
|
||||
@ -37,101 +30,101 @@ DEFINE_THISCALL_WRAPPER(winISteamMasterServerUpdater_SteamMasterServerUpdater001
|
||||
DEFINE_THISCALL_WRAPPER(winISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNumMasterServers, 4)
|
||||
DEFINE_THISCALL_WRAPPER(winISteamMasterServerUpdater_SteamMasterServerUpdater001_GetMasterServerAddress, 16)
|
||||
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetActive(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, bool bActive)
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetActive(struct w_steam_iface *_this, bool bActive)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetActive(_this->linux_side, bActive);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetActive(_this->u_iface, bActive);
|
||||
}
|
||||
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetHeartbeatInterval(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, int iHeartbeatInterval)
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetHeartbeatInterval(struct w_steam_iface *_this, int iHeartbeatInterval)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetHeartbeatInterval(_this->linux_side, iHeartbeatInterval);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetHeartbeatInterval(_this->u_iface, iHeartbeatInterval);
|
||||
}
|
||||
|
||||
bool __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_HandleIncomingPacket(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, const void *pData, int cbData, uint32 srcIP, uint16 srcPort)
|
||||
bool __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_HandleIncomingPacket(struct w_steam_iface *_this, const void *pData, int cbData, uint32 srcIP, uint16 srcPort)
|
||||
{
|
||||
bool _ret;
|
||||
TRACE("%p\n", _this);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_HandleIncomingPacket(_this->linux_side, pData, cbData, srcIP, srcPort);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_HandleIncomingPacket(_this->u_iface, pData, cbData, srcIP, srcPort);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
int __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNextOutgoingPacket(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, void *pOut, int cbMaxOut, uint32 *pNetAdr, uint16 *pPort)
|
||||
int __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNextOutgoingPacket(struct w_steam_iface *_this, void *pOut, int cbMaxOut, uint32 *pNetAdr, uint16 *pPort)
|
||||
{
|
||||
int _ret;
|
||||
TRACE("%p\n", _this);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNextOutgoingPacket(_this->linux_side, pOut, cbMaxOut, pNetAdr, pPort);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNextOutgoingPacket(_this->u_iface, pOut, cbMaxOut, pNetAdr, pPort);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetBasicServerData(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, unsigned short nProtocolVersion, bool bDedicatedServer, const char *pRegionName, const char *pProductName, unsigned short nMaxReportedClients, bool bPasswordProtected, const char *pGameDescription)
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetBasicServerData(struct w_steam_iface *_this, unsigned short nProtocolVersion, bool bDedicatedServer, const char *pRegionName, const char *pProductName, unsigned short nMaxReportedClients, bool bPasswordProtected, const char *pGameDescription)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetBasicServerData(_this->linux_side, nProtocolVersion, bDedicatedServer, pRegionName, pProductName, nMaxReportedClients, bPasswordProtected, pGameDescription);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetBasicServerData(_this->u_iface, nProtocolVersion, bDedicatedServer, pRegionName, pProductName, nMaxReportedClients, bPasswordProtected, pGameDescription);
|
||||
}
|
||||
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_ClearAllKeyValues(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this)
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_ClearAllKeyValues(struct w_steam_iface *_this)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_ClearAllKeyValues(_this->linux_side);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_ClearAllKeyValues(_this->u_iface);
|
||||
}
|
||||
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetKeyValue(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, const char *pKey, const char *pValue)
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_SetKeyValue(struct w_steam_iface *_this, const char *pKey, const char *pValue)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetKeyValue(_this->linux_side, pKey, pValue);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetKeyValue(_this->u_iface, pKey, pValue);
|
||||
}
|
||||
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_NotifyShutdown(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this)
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_NotifyShutdown(struct w_steam_iface *_this)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_NotifyShutdown(_this->linux_side);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_NotifyShutdown(_this->u_iface);
|
||||
}
|
||||
|
||||
bool __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_WasRestartRequested(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this)
|
||||
bool __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_WasRestartRequested(struct w_steam_iface *_this)
|
||||
{
|
||||
bool _ret;
|
||||
TRACE("%p\n", _this);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_WasRestartRequested(_this->linux_side);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_WasRestartRequested(_this->u_iface);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_ForceHeartbeat(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this)
|
||||
void __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_ForceHeartbeat(struct w_steam_iface *_this)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_ForceHeartbeat(_this->linux_side);
|
||||
cppISteamMasterServerUpdater_SteamMasterServerUpdater001_ForceHeartbeat(_this->u_iface);
|
||||
}
|
||||
|
||||
bool __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_AddMasterServer(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, const char *pServerAddress)
|
||||
bool __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_AddMasterServer(struct w_steam_iface *_this, const char *pServerAddress)
|
||||
{
|
||||
bool _ret;
|
||||
TRACE("%p\n", _this);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_AddMasterServer(_this->linux_side, pServerAddress);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_AddMasterServer(_this->u_iface, pServerAddress);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
bool __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_RemoveMasterServer(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, const char *pServerAddress)
|
||||
bool __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_RemoveMasterServer(struct w_steam_iface *_this, const char *pServerAddress)
|
||||
{
|
||||
bool _ret;
|
||||
TRACE("%p\n", _this);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_RemoveMasterServer(_this->linux_side, pServerAddress);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_RemoveMasterServer(_this->u_iface, pServerAddress);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
int __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNumMasterServers(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this)
|
||||
int __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNumMasterServers(struct w_steam_iface *_this)
|
||||
{
|
||||
int _ret;
|
||||
TRACE("%p\n", _this);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNumMasterServers(_this->linux_side);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNumMasterServers(_this->u_iface);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
int __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_GetMasterServerAddress(winISteamMasterServerUpdater_SteamMasterServerUpdater001 *_this, int iServer, char *pOut, int outBufferSize)
|
||||
int __thiscall winISteamMasterServerUpdater_SteamMasterServerUpdater001_GetMasterServerAddress(struct w_steam_iface *_this, int iServer, char *pOut, int outBufferSize)
|
||||
{
|
||||
int _ret;
|
||||
TRACE("%p\n", _this);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetMasterServerAddress(_this->linux_side, iServer, pOut, outBufferSize);
|
||||
_ret = cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetMasterServerAddress(_this->u_iface, iServer, pOut, outBufferSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@ -160,12 +153,12 @@ void __asm_dummy_vtables(void) {
|
||||
}
|
||||
#endif
|
||||
|
||||
winISteamMasterServerUpdater_SteamMasterServerUpdater001 *create_winISteamMasterServerUpdater_SteamMasterServerUpdater001(void *linux_side)
|
||||
struct w_steam_iface *create_winISteamMasterServerUpdater_SteamMasterServerUpdater001(void *u_iface)
|
||||
{
|
||||
winISteamMasterServerUpdater_SteamMasterServerUpdater001 *r = alloc_mem_for_iface(sizeof(winISteamMasterServerUpdater_SteamMasterServerUpdater001), "SteamMasterServerUpdater001");
|
||||
struct w_steam_iface *r = alloc_mem_for_iface(sizeof(struct w_steam_iface), "SteamMasterServerUpdater001");
|
||||
TRACE("-> %p\n", r);
|
||||
r->vtable = alloc_vtable(&winISteamMasterServerUpdater_SteamMasterServerUpdater001_vtable, 14, "SteamMasterServerUpdater001");
|
||||
r->linux_side = linux_side;
|
||||
r->u_iface = u_iface;
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user