Proton/lsteamclient/cppISteamMasterServerUpdater_SteamMasterServerUpdater001.cpp

88 lines
4.8 KiB
C++
Raw Normal View History

2018-01-18 19:24:05 +03:00
#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
2018-01-18 19:24:05 +03:00
#include "steamworks_sdk_116/steam_api.h"
#include "steamworks_sdk_116/isteammasterserverupdater.h"
#pragma pop_macro("__cdecl")
#include "steamclient_private.h"
2018-01-18 19:24:05 +03:00
#ifdef __cplusplus
extern "C" {
#endif
#define SDKVER_116
#include "struct_converters.h"
#include "cppISteamMasterServerUpdater_SteamMasterServerUpdater001.h"
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetActive( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetActive_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamMasterServerUpdater*)params->linux_side)->SetActive( (bool)params->bActive );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetHeartbeatInterval( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetHeartbeatInterval_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamMasterServerUpdater*)params->linux_side)->SetHeartbeatInterval( (int)params->iHeartbeatInterval );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_HandleIncomingPacket( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_HandleIncomingPacket_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamMasterServerUpdater*)params->linux_side)->HandleIncomingPacket( (const void *)params->pData, (int)params->cbData, (uint32)params->srcIP, (uint16)params->srcPort );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNextOutgoingPacket( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNextOutgoingPacket_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamMasterServerUpdater*)params->linux_side)->GetNextOutgoingPacket( (void *)params->pOut, (int)params->cbMaxOut, (uint32 *)params->pNetAdr, (uint16 *)params->pPort );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetBasicServerData( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetBasicServerData_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamMasterServerUpdater*)params->linux_side)->SetBasicServerData( (unsigned short)params->nProtocolVersion, (bool)params->bDedicatedServer, (const char *)params->pRegionName, (const char *)params->pProductName, (unsigned short)params->nMaxReportedClients, (bool)params->bPasswordProtected, (const char *)params->pGameDescription );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_ClearAllKeyValues( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_ClearAllKeyValues_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamMasterServerUpdater*)params->linux_side)->ClearAllKeyValues( );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetKeyValue( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_SetKeyValue_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamMasterServerUpdater*)params->linux_side)->SetKeyValue( (const char *)params->pKey, (const char *)params->pValue );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_NotifyShutdown( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_NotifyShutdown_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamMasterServerUpdater*)params->linux_side)->NotifyShutdown( );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_WasRestartRequested( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_WasRestartRequested_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamMasterServerUpdater*)params->linux_side)->WasRestartRequested( );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_ForceHeartbeat( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_ForceHeartbeat_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamMasterServerUpdater*)params->linux_side)->ForceHeartbeat( );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_AddMasterServer( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_AddMasterServer_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamMasterServerUpdater*)params->linux_side)->AddMasterServer( (const char *)params->pServerAddress );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_RemoveMasterServer( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_RemoveMasterServer_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamMasterServerUpdater*)params->linux_side)->RemoveMasterServer( (const char *)params->pServerAddress );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNumMasterServers( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetNumMasterServers_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamMasterServerUpdater*)params->linux_side)->GetNumMasterServers( );
2018-01-18 19:24:05 +03:00
}
void cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetMasterServerAddress( struct cppISteamMasterServerUpdater_SteamMasterServerUpdater001_GetMasterServerAddress_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamMasterServerUpdater*)params->linux_side)->GetMasterServerAddress( (int)params->iServer, (char *)params->pOut, (int)params->outBufferSize );
2018-01-18 19:24:05 +03:00
}
#ifdef __cplusplus
}
#endif