2019-08-14 21:12:15 +02:00
|
|
|
extern "C" {
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
|
|
|
}
|
|
|
|
|
2019-05-16 18:23:30 +02:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 16:00:45 +02:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2019-05-16 18:23:30 +02:00
|
|
|
#include "steamworks_sdk_144/steam_api.h"
|
2019-05-30 17:28:09 +02:00
|
|
|
#include "steamworks_sdk_144/isteamnetworkingsockets.h"
|
2019-05-16 18:23:30 +02:00
|
|
|
#include "steamworks_sdk_144/steamnetworkingtypes.h"
|
2019-08-16 16:00:45 +02:00
|
|
|
#pragma pop_macro("__cdecl")
|
2019-05-16 18:23:30 +02:00
|
|
|
#include "steamclient_private.h"
|
2019-08-14 21:12:15 +02:00
|
|
|
|
2019-05-16 18:23:30 +02:00
|
|
|
extern "C" {
|
|
|
|
#define SDKVER_144
|
|
|
|
#include "struct_converters.h"
|
|
|
|
|
2023-08-24 01:27:02 +02:00
|
|
|
#define SDK_VERSION 1440
|
|
|
|
#include "steamclient_manual_common.h"
|
2019-05-30 17:28:09 +02:00
|
|
|
|
|
|
|
int cppISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnConnection(
|
|
|
|
void *linux_side, HSteamNetConnection hConn,
|
|
|
|
winSteamNetworkingMessage_t_144 **ppOutMessages, int nMaxMessages)
|
|
|
|
{
|
|
|
|
SteamNetworkingMessage_t *lin_ppOutMessages[nMaxMessages];
|
|
|
|
int retval = ((ISteamNetworkingSockets*)linux_side)->ReceiveMessagesOnConnection(hConn, lin_ppOutMessages, nMaxMessages);
|
2023-08-24 01:27:02 +02:00
|
|
|
lin_to_win_struct_SteamNetworkingMessage_t(retval, lin_ppOutMessages, ppOutMessages, nMaxMessages);
|
2019-05-30 17:28:09 +02:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int cppISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnListenSocket(
|
|
|
|
void *linux_side, HSteamListenSocket hSocket,
|
|
|
|
winSteamNetworkingMessage_t_144 **ppOutMessages, int nMaxMessages)
|
|
|
|
{
|
|
|
|
SteamNetworkingMessage_t *lin_ppOutMessages[nMaxMessages];
|
|
|
|
int retval = ((ISteamNetworkingSockets*)linux_side)->ReceiveMessagesOnListenSocket(hSocket, lin_ppOutMessages, nMaxMessages);
|
2023-08-24 01:27:02 +02:00
|
|
|
lin_to_win_struct_SteamNetworkingMessage_t(retval, lin_ppOutMessages, ppOutMessages, nMaxMessages);
|
2019-05-30 17:28:09 +02:00
|
|
|
return retval;
|
2019-05-16 18:23:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|