2020-09-29 16:40:02 +02:00
|
|
|
#include "steam_defs.h"
|
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-05-02 10:43:23 +02:00
|
|
|
#define __cdecl
|
2023-09-18 15:58:31 +02:00
|
|
|
#include "steamworks_sdk_158/steam_api.h"
|
|
|
|
#include "steamworks_sdk_158/steamnetworkingtypes.h"
|
|
|
|
#include "steamworks_sdk_158/isteamnetworkingmessages.h"
|
2020-09-29 16:40:02 +02:00
|
|
|
#pragma pop_macro("__cdecl")
|
|
|
|
#include "steamclient_private.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-09-18 15:58:31 +02:00
|
|
|
#define SDKVER_158
|
2020-09-29 16:40:02 +02:00
|
|
|
#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)
|
|
|
|
{
|
2021-11-12 20:13:03 +01:00
|
|
|
return ((ISteamNetworkingMessages*)linux_side)->SendMessageToUser(*identityRemote, (const void *)pubData, (uint32)cubData, (int)nSendFlags, (int)nRemoteChannel);
|
2020-09-29 16:40:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamNetworkingMessages_SteamNetworkingMessages002_AcceptSessionWithUser(void *linux_side, const SteamNetworkingIdentity * identityRemote)
|
|
|
|
{
|
2021-11-12 20:13:03 +01:00
|
|
|
return ((ISteamNetworkingMessages*)linux_side)->AcceptSessionWithUser(*identityRemote);
|
2020-09-29 16:40:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamNetworkingMessages_SteamNetworkingMessages002_CloseSessionWithUser(void *linux_side, const SteamNetworkingIdentity * identityRemote)
|
|
|
|
{
|
2021-11-12 20:13:03 +01:00
|
|
|
return ((ISteamNetworkingMessages*)linux_side)->CloseSessionWithUser(*identityRemote);
|
2020-09-29 16:40:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamNetworkingMessages_SteamNetworkingMessages002_CloseChannelWithUser(void *linux_side, const SteamNetworkingIdentity * identityRemote, int nLocalChannel)
|
|
|
|
{
|
2021-11-12 20:13:03 +01:00
|
|
|
return ((ISteamNetworkingMessages*)linux_side)->CloseChannelWithUser(*identityRemote, (int)nLocalChannel);
|
2020-09-29 16:40:02 +02:00
|
|
|
}
|
|
|
|
|
2021-12-20 16:48:44 +01:00
|
|
|
ESteamNetworkingConnectionState cppISteamNetworkingMessages_SteamNetworkingMessages002_GetSessionConnectionInfo(void *linux_side, const SteamNetworkingIdentity * identityRemote, SteamNetConnectionInfo_t * pConnectionInfo, SteamNetConnectionRealTimeStatus_t * pQuickStatus)
|
2020-09-29 16:40:02 +02:00
|
|
|
{
|
2021-12-20 16:48:44 +01:00
|
|
|
return ((ISteamNetworkingMessages*)linux_side)->GetSessionConnectionInfo(*identityRemote, (SteamNetConnectionInfo_t *)pConnectionInfo, (SteamNetConnectionRealTimeStatus_t *)pQuickStatus);
|
2020-09-29 16:40:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|