2020-06-02 18:30:04 +03:00
|
|
|
extern "C" {
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "steam_defs.h"
|
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
|
|
|
#include "steamworks_sdk_146/steam_api.h"
|
|
|
|
#include "steamworks_sdk_146/isteamnetworkingsockets.h"
|
|
|
|
#include "steamworks_sdk_146/isteamnetworkingutils.h"
|
|
|
|
#include "steamworks_sdk_146/steamnetworkingtypes.h"
|
|
|
|
#pragma pop_macro("__cdecl")
|
|
|
|
#include "steamclient_private.h"
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#define SDKVER_146
|
|
|
|
#include "struct_converters.h"
|
|
|
|
|
2023-08-24 02:27:02 +03:00
|
|
|
#define SDK_VERSION 1460
|
|
|
|
#include "steamclient_manual_common.h"
|
2020-06-02 18:30:04 +03:00
|
|
|
|
|
|
|
int cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnConnection(
|
|
|
|
void *linux_side, HSteamNetConnection hConn,
|
|
|
|
winSteamNetworkingMessage_t_146 **ppOutMessages, int nMaxMessages)
|
|
|
|
{
|
|
|
|
SteamNetworkingMessage_t *lin_ppOutMessages[nMaxMessages];
|
|
|
|
int retval = ((ISteamNetworkingSockets*)linux_side)->ReceiveMessagesOnConnection(hConn, lin_ppOutMessages, nMaxMessages);
|
2023-08-24 02:27:02 +03:00
|
|
|
lin_to_win_struct_SteamNetworkingMessage_t(retval, lin_ppOutMessages, ppOutMessages, nMaxMessages);
|
2020-06-02 18:30:04 +03:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnListenSocket(
|
|
|
|
void *linux_side, HSteamListenSocket hSocket,
|
|
|
|
winSteamNetworkingMessage_t_146 **ppOutMessages, int nMaxMessages)
|
|
|
|
{
|
|
|
|
SteamNetworkingMessage_t *lin_ppOutMessages[nMaxMessages];
|
|
|
|
int retval = ((ISteamNetworkingSockets*)linux_side)->ReceiveMessagesOnListenSocket(hSocket, lin_ppOutMessages, nMaxMessages);
|
2023-08-24 02:27:02 +03:00
|
|
|
lin_to_win_struct_SteamNetworkingMessage_t(retval, lin_ppOutMessages, ppOutMessages, nMaxMessages);
|
2020-06-02 18:30:04 +03:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|