a7bdd61d20
CW-Bug-Id: #22649
47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
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_144/steam_api.h"
|
|
#include "steamworks_sdk_144/isteamnetworkingsockets.h"
|
|
#include "steamworks_sdk_144/steamnetworkingtypes.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#include "steamclient_private.h"
|
|
|
|
extern "C" {
|
|
#define SDKVER_144
|
|
#include "struct_converters.h"
|
|
|
|
#define SDK_VERSION 1440
|
|
#include "steamclient_manual_common.h"
|
|
|
|
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);
|
|
lin_to_win_struct_SteamNetworkingMessage_t(retval, lin_ppOutMessages, ppOutMessages, nMaxMessages);
|
|
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);
|
|
lin_to_win_struct_SteamNetworkingMessage_t(retval, lin_ppOutMessages, ppOutMessages, nMaxMessages);
|
|
return retval;
|
|
}
|
|
|
|
}
|