mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-30 16:45:36 +03:00
f6871a6b73
CW-Bug-Id: #22729
54 lines
2.3 KiB
C++
54 lines
2.3 KiB
C++
#include "steam_defs.h"
|
|
#pragma push_macro("__cdecl")
|
|
#undef __cdecl
|
|
#define __cdecl
|
|
#include "steamworks_sdk_158/steam_api.h"
|
|
#include "steamworks_sdk_158/steamnetworkingtypes.h"
|
|
#include "steamworks_sdk_158/isteamnetworkingmessages.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#include "steamclient_private.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#define SDKVER_158
|
|
#include "struct_converters.h"
|
|
#include "cppISteamNetworkingMessages_SteamNetworkingMessages002.h"
|
|
EResult cppISteamNetworkingMessages_SteamNetworkingMessages002_SendMessageToUser(void *linux_side, const SteamNetworkingIdentity *identityRemote, const void *pubData, uint32 cubData, int nSendFlags, int nRemoteChannel)
|
|
{
|
|
EResult _ret;
|
|
_ret = ((ISteamNetworkingMessages*)linux_side)->SendMessageToUser(*identityRemote, (const void *)pubData, (uint32)cubData, (int)nSendFlags, (int)nRemoteChannel);
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamNetworkingMessages_SteamNetworkingMessages002_AcceptSessionWithUser(void *linux_side, const SteamNetworkingIdentity *identityRemote)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamNetworkingMessages*)linux_side)->AcceptSessionWithUser(*identityRemote);
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamNetworkingMessages_SteamNetworkingMessages002_CloseSessionWithUser(void *linux_side, const SteamNetworkingIdentity *identityRemote)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamNetworkingMessages*)linux_side)->CloseSessionWithUser(*identityRemote);
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamNetworkingMessages_SteamNetworkingMessages002_CloseChannelWithUser(void *linux_side, const SteamNetworkingIdentity *identityRemote, int nLocalChannel)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamNetworkingMessages*)linux_side)->CloseChannelWithUser(*identityRemote, (int)nLocalChannel);
|
|
return (_ret);
|
|
}
|
|
|
|
ESteamNetworkingConnectionState cppISteamNetworkingMessages_SteamNetworkingMessages002_GetSessionConnectionInfo(void *linux_side, const SteamNetworkingIdentity *identityRemote, SteamNetConnectionInfo_t *pConnectionInfo, SteamNetConnectionRealTimeStatus_t *pQuickStatus)
|
|
{
|
|
ESteamNetworkingConnectionState _ret;
|
|
_ret = ((ISteamNetworkingMessages*)linux_side)->GetSessionConnectionInfo(*identityRemote, (SteamNetConnectionInfo_t *)pConnectionInfo, (SteamNetConnectionRealTimeStatus_t *)pQuickStatus);
|
|
return (_ret);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|