2023-09-29 11:35:29 +02:00
|
|
|
#include "steamclient_private.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
|
|
|
|
2023-10-02 10:51:14 +02:00
|
|
|
struct networking_message_pool
|
|
|
|
{
|
|
|
|
LONG ref;
|
|
|
|
void *message_data;
|
|
|
|
struct networking_message messages[];
|
|
|
|
};
|
|
|
|
|
|
|
|
C_ASSERT( sizeof(struct networking_message_pool) == offsetof( struct networking_message_pool, messages[0] ) );
|
|
|
|
|
|
|
|
static void networking_message_pool_release( struct networking_message_pool *pool )
|
|
|
|
{
|
|
|
|
if (!InterlockedDecrement( &pool->ref ))
|
|
|
|
{
|
|
|
|
HeapFree( GetProcessHeap(), 0, pool->message_data );
|
|
|
|
HeapFree( GetProcessHeap(), 0, pool );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
static BOOL networking_message_pool_alloc_data( uint32_t count, struct networking_message_pool *pool )
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
uint32_t i, size;
|
|
|
|
char *ptr;
|
|
|
|
|
|
|
|
for (i = 0, size = 0; i < count; i++) size += *pool->messages[i].p_size;
|
|
|
|
if (!(pool->message_data = HeapAlloc( GetProcessHeap(), 0, size )))
|
|
|
|
{
|
|
|
|
ERR( "Failed to allocate memory for networking messages\n" );
|
2023-10-04 22:02:15 +02:00
|
|
|
return FALSE;
|
2023-10-02 10:51:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0, ptr = pool->message_data; i < count; i++)
|
|
|
|
{
|
|
|
|
*pool->messages[i].p_data = ptr;
|
|
|
|
ptr += *pool->messages[i].p_size;
|
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
return TRUE;
|
2023-10-02 10:51:14 +02:00
|
|
|
}
|
|
|
|
|
2023-12-04 22:48:13 +01:00
|
|
|
static void W_CDECL w_SteamNetworkingMessage_t_144_FreeData( w_SteamNetworkingMessage_t_144 *msg )
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
if (msg->m_pData) SecureZeroMemory( msg->m_pData, msg->m_cbSize );
|
|
|
|
}
|
|
|
|
|
2023-12-04 22:48:13 +01:00
|
|
|
static void W_CDECL w_SteamNetworkingMessage_t_144_Release( w_SteamNetworkingMessage_t_144 *msg )
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
struct networking_message *message = CONTAINING_RECORD( msg, struct networking_message, w_msg_144 );
|
|
|
|
|
|
|
|
if (msg->m_pfnFreeData) msg->m_pfnFreeData( msg );
|
|
|
|
SecureZeroMemory( msg, sizeof(*msg) );
|
|
|
|
|
|
|
|
networking_message_pool_release( message->pool );
|
|
|
|
}
|
|
|
|
|
|
|
|
static w_SteamNetworkingMessage_t_144 *networking_message_init_144( struct networking_message *message,
|
|
|
|
struct networking_message_pool *pool )
|
|
|
|
{
|
|
|
|
message->pool = pool;
|
|
|
|
message->p_data = &message->w_msg_144.m_pData;
|
|
|
|
message->p_size = &message->w_msg_144.m_cbSize;
|
|
|
|
message->w_msg_144.m_pfnFreeData = w_SteamNetworkingMessage_t_144_FreeData;
|
|
|
|
message->w_msg_144.m_pfnRelease = w_SteamNetworkingMessage_t_144_Release;
|
|
|
|
return &message->w_msg_144;
|
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
static BOOL networking_message_pool_create_144( uint32_t count, w_SteamNetworkingMessage_t_144 **messages )
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
uint32_t size = offsetof( struct networking_message_pool, messages[count] );
|
|
|
|
struct networking_message_pool *pool;
|
|
|
|
|
|
|
|
if (!(pool = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, size )))
|
|
|
|
{
|
|
|
|
ERR( "Failed to allocate memory for networking messages\n" );
|
2023-10-04 22:02:15 +02:00
|
|
|
return FALSE;
|
2023-10-02 10:51:14 +02:00
|
|
|
}
|
|
|
|
pool->ref = count;
|
|
|
|
|
|
|
|
while (count--) messages[count] = networking_message_init_144( &pool->messages[count], pool );
|
2023-10-04 22:02:15 +02:00
|
|
|
return TRUE;
|
2023-10-02 10:51:14 +02:00
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
static BOOL networking_message_pool_receive_144( int32_t capacity, int32_t count, w_SteamNetworkingMessage_t_144 **messages )
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
struct networking_message_pool *pool = CONTAINING_RECORD( messages[0], struct networking_message, w_msg_144 )->pool;
|
|
|
|
int32_t i;
|
|
|
|
|
2024-05-20 22:23:35 +02:00
|
|
|
for (i = count; i < capacity; i++)
|
|
|
|
{
|
|
|
|
messages[i]->m_pfnRelease( messages[i] );
|
|
|
|
messages[i] = NULL;
|
|
|
|
}
|
2023-10-02 10:51:14 +02:00
|
|
|
|
|
|
|
if (count > 0)
|
|
|
|
{
|
2023-10-19 10:38:37 +02:00
|
|
|
struct steamclient_networking_messages_receive_144_params params = {.count = count, .w_msgs = messages};
|
2023-10-04 22:02:15 +02:00
|
|
|
if (!networking_message_pool_alloc_data( count, pool )) return FALSE;
|
2023-10-19 10:38:37 +02:00
|
|
|
STEAMCLIENT_CALL( steamclient_networking_messages_receive_144, ¶ms );
|
2023-10-02 10:51:14 +02:00
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
return TRUE;
|
2023-10-02 10:51:14 +02:00
|
|
|
}
|
|
|
|
|
2023-12-04 22:48:13 +01:00
|
|
|
static void W_CDECL w_SteamNetworkingMessage_t_147_FreeData( w_SteamNetworkingMessage_t_147 *msg )
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
struct networking_message *message = CONTAINING_RECORD( msg, struct networking_message, w_msg_147 );
|
|
|
|
|
|
|
|
if (msg->m_pData) SecureZeroMemory( msg->m_pData, msg->m_cbSize );
|
|
|
|
if (!message->pool) HeapFree( GetProcessHeap(), 0, msg->m_pData );
|
|
|
|
}
|
|
|
|
|
2023-12-04 22:48:13 +01:00
|
|
|
static void W_CDECL w_SteamNetworkingMessage_t_147_Release( w_SteamNetworkingMessage_t_147 *msg )
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
struct networking_message *message = CONTAINING_RECORD( msg, struct networking_message, w_msg_147 );
|
|
|
|
|
|
|
|
if (msg->m_pfnFreeData) msg->m_pfnFreeData( msg );
|
|
|
|
SecureZeroMemory( msg, sizeof(*msg) );
|
|
|
|
|
|
|
|
if (message->pool) networking_message_pool_release( message->pool );
|
|
|
|
else
|
|
|
|
{
|
2023-10-19 10:38:37 +02:00
|
|
|
struct steamclient_networking_message_release_147_params params = {.w_msg = msg};
|
|
|
|
STEAMCLIENT_CALL( steamclient_networking_message_release_147, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
HeapFree( GetProcessHeap(), 0, message );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static w_SteamNetworkingMessage_t_147 *networking_message_init_147( struct networking_message *message,
|
|
|
|
struct networking_message_pool *pool )
|
|
|
|
{
|
|
|
|
message->pool = pool;
|
|
|
|
message->p_data = &message->w_msg_147.m_pData;
|
|
|
|
message->p_size = (uint32_t *)&message->w_msg_147.m_cbSize;
|
|
|
|
message->w_msg_147.m_pfnFreeData = w_SteamNetworkingMessage_t_147_FreeData;
|
|
|
|
message->w_msg_147.m_pfnRelease = w_SteamNetworkingMessage_t_147_Release;
|
|
|
|
return &message->w_msg_147;
|
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
static BOOL networking_message_pool_create_147( uint32_t count, w_SteamNetworkingMessage_t_147 **messages )
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
uint32_t size = offsetof( struct networking_message_pool, messages[count] );
|
|
|
|
struct networking_message_pool *pool;
|
|
|
|
|
|
|
|
if (!(pool = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, size )))
|
|
|
|
{
|
|
|
|
ERR( "Failed to allocate memory for networking messages\n" );
|
2023-10-04 22:02:15 +02:00
|
|
|
return FALSE;
|
2023-10-02 10:52:15 +02:00
|
|
|
}
|
|
|
|
pool->ref = count;
|
|
|
|
|
|
|
|
while (count--) messages[count] = networking_message_init_147( &pool->messages[count], pool );
|
2023-10-04 22:02:15 +02:00
|
|
|
return TRUE;
|
2023-10-02 10:52:15 +02:00
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
static BOOL networking_message_pool_receive_147( uint32_t capacity, uint32_t count, w_SteamNetworkingMessage_t_147 **messages )
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
struct networking_message_pool *pool = CONTAINING_RECORD( messages[0], struct networking_message, w_msg_147 )->pool;
|
|
|
|
uint32_t i;
|
|
|
|
|
2024-05-20 22:23:35 +02:00
|
|
|
for (i = count; i < capacity; i++)
|
|
|
|
{
|
|
|
|
messages[i]->m_pfnRelease( messages[i] );
|
|
|
|
messages[i] = NULL;
|
|
|
|
}
|
2023-10-02 10:52:15 +02:00
|
|
|
|
|
|
|
if (count)
|
|
|
|
{
|
2023-10-19 10:38:37 +02:00
|
|
|
struct steamclient_networking_messages_receive_147_params params = {.count = count, .w_msgs = messages};
|
2023-10-04 22:02:15 +02:00
|
|
|
if (!networking_message_pool_alloc_data( count, pool )) return FALSE;
|
2023-10-19 10:38:37 +02:00
|
|
|
STEAMCLIENT_CALL( steamclient_networking_messages_receive_147, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
return TRUE;
|
2023-10-02 10:52:15 +02:00
|
|
|
}
|
|
|
|
|
2023-12-04 22:48:13 +01:00
|
|
|
static void W_CDECL w_SteamNetworkingMessage_t_153a_FreeData( w_SteamNetworkingMessage_t_153a *msg )
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
struct networking_message *message = CONTAINING_RECORD( msg, struct networking_message, w_msg_153a );
|
|
|
|
|
|
|
|
if (msg->m_pData) SecureZeroMemory( msg->m_pData, msg->m_cbSize );
|
|
|
|
if (!message->pool) HeapFree( GetProcessHeap(), 0, msg->m_pData );
|
|
|
|
}
|
|
|
|
|
2023-12-04 22:48:13 +01:00
|
|
|
static void W_CDECL w_SteamNetworkingMessage_t_153a_Release( w_SteamNetworkingMessage_t_153a *msg )
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
struct networking_message *message = CONTAINING_RECORD( msg, struct networking_message, w_msg_153a );
|
|
|
|
|
|
|
|
if (msg->m_pfnFreeData) msg->m_pfnFreeData( msg );
|
|
|
|
SecureZeroMemory( msg, sizeof(*msg) );
|
|
|
|
|
|
|
|
if (message->pool) networking_message_pool_release( message->pool );
|
|
|
|
else
|
|
|
|
{
|
2023-10-19 10:38:37 +02:00
|
|
|
struct steamclient_networking_message_release_153a_params params = {.w_msg = msg};
|
|
|
|
STEAMCLIENT_CALL( steamclient_networking_message_release_153a, ¶ms );
|
2023-10-02 14:50:49 +02:00
|
|
|
HeapFree( GetProcessHeap(), 0, message );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static w_SteamNetworkingMessage_t_153a *networking_message_init_153a( struct networking_message *message,
|
|
|
|
struct networking_message_pool *pool )
|
|
|
|
{
|
|
|
|
message->pool = pool;
|
|
|
|
message->p_data = &message->w_msg_153a.m_pData;
|
|
|
|
message->p_size = (uint32_t *)&message->w_msg_153a.m_cbSize;
|
|
|
|
message->w_msg_153a.m_pfnFreeData = w_SteamNetworkingMessage_t_153a_FreeData;
|
|
|
|
message->w_msg_153a.m_pfnRelease = w_SteamNetworkingMessage_t_153a_Release;
|
|
|
|
return &message->w_msg_153a;
|
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
static BOOL networking_message_pool_create_153a( uint32_t count, w_SteamNetworkingMessage_t_153a **messages )
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
uint32_t size = offsetof( struct networking_message_pool, messages[count] );
|
|
|
|
struct networking_message_pool *pool;
|
|
|
|
|
|
|
|
if (!(pool = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, size )))
|
|
|
|
{
|
|
|
|
ERR( "Failed to allocate memory for networking messages\n" );
|
2023-10-04 22:02:15 +02:00
|
|
|
return FALSE;
|
2023-10-02 14:50:49 +02:00
|
|
|
}
|
|
|
|
pool->ref = count;
|
|
|
|
|
|
|
|
while (count--) messages[count] = networking_message_init_153a( &pool->messages[count], pool );
|
2023-10-04 22:02:15 +02:00
|
|
|
return TRUE;
|
2023-10-02 14:50:49 +02:00
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
static BOOL networking_message_pool_receive_153a( uint32_t capacity, uint32_t count, w_SteamNetworkingMessage_t_153a **messages )
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
struct networking_message_pool *pool = CONTAINING_RECORD( messages[0], struct networking_message, w_msg_153a )->pool;
|
|
|
|
uint32_t i;
|
|
|
|
|
2024-05-20 22:23:35 +02:00
|
|
|
for (i = count; i < capacity; i++)
|
|
|
|
{
|
|
|
|
messages[i]->m_pfnRelease( messages[i] );
|
|
|
|
messages[i] = NULL;
|
|
|
|
}
|
2023-10-02 14:50:49 +02:00
|
|
|
|
|
|
|
if (count)
|
|
|
|
{
|
2023-10-19 10:38:37 +02:00
|
|
|
struct steamclient_networking_messages_receive_153a_params params = {.count = count, .w_msgs = messages};
|
2023-10-04 22:02:15 +02:00
|
|
|
if (!networking_message_pool_alloc_data( count, pool )) return FALSE;
|
2023-10-19 10:38:37 +02:00
|
|
|
STEAMCLIENT_CALL( steamclient_networking_messages_receive_153a, ¶ms );
|
2023-10-02 14:50:49 +02:00
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
return TRUE;
|
2023-10-02 14:50:49 +02:00
|
|
|
}
|
|
|
|
|
2023-10-02 10:51:14 +02:00
|
|
|
/* ISteamNetworkingSockets_SteamNetworkingSockets002 */
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnConnection( struct w_steam_iface *_this,
|
|
|
|
uint32_t hConn, w_SteamNetworkingMessage_t_144 **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnConnection_params params =
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hConn = hConn,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_144( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnConnection, ¶ms );
|
2023-10-02 10:51:14 +02:00
|
|
|
if (!networking_message_pool_receive_144( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnListenSocket( struct w_steam_iface *_this, uint32_t hSocket,
|
|
|
|
w_SteamNetworkingMessage_t_144 **ppOutMessages, int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnListenSocket_params params =
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hSocket = hSocket,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_144( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnListenSocket, ¶ms );
|
2023-10-02 10:51:14 +02:00
|
|
|
if (!networking_message_pool_receive_144( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamNetworkingSockets_SteamNetworkingSockets004 */
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnConnection( struct w_steam_iface *_this,
|
|
|
|
uint32_t hConn, w_SteamNetworkingMessage_t_144 **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnConnection_params params =
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hConn = hConn,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_144( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnConnection, ¶ms );
|
2023-10-02 10:51:14 +02:00
|
|
|
if (!networking_message_pool_receive_144( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnListenSocket( struct w_steam_iface *_this, uint32_t hSocket,
|
|
|
|
w_SteamNetworkingMessage_t_144 **ppOutMessages, int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnListenSocket_params params =
|
2023-10-02 10:51:14 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hSocket = hSocket,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_144( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnListenSocket, ¶ms );
|
2023-10-02 10:51:14 +02:00
|
|
|
if (!networking_message_pool_receive_144( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
2023-10-02 10:52:15 +02:00
|
|
|
/* ISteamNetworkingSockets_SteamNetworkingSockets006 */
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets006_ReceiveMessagesOnConnection( struct w_steam_iface *_this,
|
|
|
|
uint32_t hConn, w_SteamNetworkingMessage_t_147 **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets006_ReceiveMessagesOnConnection_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hConn = hConn,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_147( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets006_ReceiveMessagesOnConnection, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
if (!networking_message_pool_receive_147( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets006_ReceiveMessagesOnListenSocket( struct w_steam_iface *_this, uint32_t hSocket,
|
|
|
|
w_SteamNetworkingMessage_t_147 **ppOutMessages, int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets006_ReceiveMessagesOnListenSocket_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hSocket = hSocket,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_147( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets006_ReceiveMessagesOnListenSocket, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
if (!networking_message_pool_receive_147( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
void __thiscall winISteamNetworkingSockets_SteamNetworkingSockets006_SendMessages(struct w_steam_iface *_this, int32_t nMessages, w_SteamNetworkingMessage_t_147 **pMessages, int64_t *pOutMessageNumberOrResult)
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets006_SendMessages_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.nMessages = nMessages,
|
|
|
|
.pMessages = pMessages,
|
|
|
|
.pOutMessageNumberOrResult = pOutMessageNumberOrResult,
|
|
|
|
};
|
|
|
|
int64_t i;
|
|
|
|
|
|
|
|
TRACE("%p\n", _this);
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets006_SendMessages, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
for (i = 0; i < nMessages; i++) pMessages[i]->m_pfnRelease( pMessages[i] );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamNetworkingSockets_SteamNetworkingSockets008 */
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets008_ReceiveMessagesOnConnection( struct w_steam_iface *_this,
|
|
|
|
uint32_t hConn, w_SteamNetworkingMessage_t_147 **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets008_ReceiveMessagesOnConnection_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hConn = hConn,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_147( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets008_ReceiveMessagesOnConnection, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
if (!networking_message_pool_receive_147( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets008_ReceiveMessagesOnPollGroup( struct w_steam_iface *_this, uint32_t hPollGroup,
|
|
|
|
w_SteamNetworkingMessage_t_147 **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets008_ReceiveMessagesOnPollGroup_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hPollGroup = hPollGroup,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_147( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets008_ReceiveMessagesOnPollGroup, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
if (!networking_message_pool_receive_147( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
void __thiscall winISteamNetworkingSockets_SteamNetworkingSockets008_SendMessages(struct w_steam_iface *_this, int32_t nMessages, w_SteamNetworkingMessage_t_147 *const *pMessages, int64_t *pOutMessageNumberOrResult)
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets008_SendMessages_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.nMessages = nMessages,
|
|
|
|
.pMessages = pMessages,
|
|
|
|
.pOutMessageNumberOrResult = pOutMessageNumberOrResult,
|
|
|
|
};
|
|
|
|
int64_t i;
|
|
|
|
|
|
|
|
TRACE("%p\n", _this);
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets008_SendMessages, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
for (i = 0; i < nMessages; i++) pMessages[i]->m_pfnRelease( pMessages[i] );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamNetworkingSockets_SteamNetworkingSockets009 */
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets009_ReceiveMessagesOnConnection( struct w_steam_iface *_this,
|
|
|
|
uint32_t hConn, w_SteamNetworkingMessage_t_147 **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets009_ReceiveMessagesOnConnection_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hConn = hConn,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_147( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets009_ReceiveMessagesOnConnection, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
if (!networking_message_pool_receive_147( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets009_ReceiveMessagesOnPollGroup( struct w_steam_iface *_this, uint32_t hPollGroup,
|
|
|
|
w_SteamNetworkingMessage_t_147 **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets009_ReceiveMessagesOnPollGroup_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hPollGroup = hPollGroup,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_147( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets009_ReceiveMessagesOnPollGroup, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
if (!networking_message_pool_receive_147( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
void __thiscall winISteamNetworkingSockets_SteamNetworkingSockets009_SendMessages(struct w_steam_iface *_this, int32_t nMessages, w_SteamNetworkingMessage_t_147 *const *pMessages, int64_t *pOutMessageNumberOrResult)
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets009_SendMessages_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.nMessages = nMessages,
|
|
|
|
.pMessages = pMessages,
|
|
|
|
.pOutMessageNumberOrResult = pOutMessageNumberOrResult,
|
|
|
|
};
|
|
|
|
int64_t i;
|
|
|
|
|
|
|
|
TRACE("%p\n", _this);
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets009_SendMessages, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
for (i = 0; i < nMessages; i++) pMessages[i]->m_pfnRelease( pMessages[i] );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamNetworkingUtils_SteamNetworkingUtils003 */
|
|
|
|
|
|
|
|
w_SteamNetworkingMessage_t_147 *__thiscall winISteamNetworkingUtils_SteamNetworkingUtils003_AllocateMessage( struct w_steam_iface *_this, int32_t cbAllocateBuffer )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingUtils_SteamNetworkingUtils003_AllocateMessage_params params =
|
2023-10-02 10:52:15 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.cbAllocateBuffer = cbAllocateBuffer,
|
|
|
|
};
|
|
|
|
struct networking_message *message;
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!(message = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*message) ))) return NULL;
|
|
|
|
if ((message->w_msg_147.m_cbSize = cbAllocateBuffer) &&
|
|
|
|
!(message->w_msg_147.m_pData = HeapAlloc( GetProcessHeap(), 0, cbAllocateBuffer )))
|
|
|
|
{
|
|
|
|
HeapFree( GetProcessHeap(), 0, message );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
message->w_msg_147.m_pfnFreeData = w_SteamNetworkingMessage_t_147_FreeData;
|
|
|
|
message->w_msg_147.m_pfnRelease = w_SteamNetworkingMessage_t_147_Release;
|
|
|
|
params._ret = &message->w_msg_147;
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingUtils_SteamNetworkingUtils003_AllocateMessage, ¶ms );
|
2023-10-02 10:52:15 +02:00
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
2023-09-29 11:35:29 +02:00
|
|
|
/* ISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001 */
|
|
|
|
|
|
|
|
void __thiscall winISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001_DestroyFakeUDPPort( struct w_steam_iface *_this )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001_DestroyFakeUDPPort_params params = {.linux_side = _this->u_iface};
|
2023-09-29 11:35:29 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001_DestroyFakeUDPPort, ¶ms );
|
2023-09-29 11:35:29 +02:00
|
|
|
HeapFree( GetProcessHeap(), 0, _this );
|
|
|
|
}
|
2023-10-02 14:50:49 +02:00
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001_ReceiveMessages( struct w_steam_iface *_this,
|
|
|
|
w_SteamNetworkingMessage_t_153a **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001_ReceiveMessages_params params =
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_153a( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001_ReceiveMessages, ¶ms );
|
2023-10-02 14:50:49 +02:00
|
|
|
if (!networking_message_pool_receive_153a( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamNetworkingMessages_SteamNetworkingMessages002 */
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingMessages_SteamNetworkingMessages002_ReceiveMessagesOnChannel( struct w_steam_iface *_this, int32_t nLocalChannel,
|
|
|
|
w_SteamNetworkingMessage_t_153a **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingMessages_SteamNetworkingMessages002_ReceiveMessagesOnChannel_params params =
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.nLocalChannel = nLocalChannel,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_153a( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingMessages_SteamNetworkingMessages002_ReceiveMessagesOnChannel, ¶ms );
|
2023-10-02 14:50:49 +02:00
|
|
|
if (!networking_message_pool_receive_153a( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamNetworkingSockets_SteamNetworkingSockets012 */
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets012_ReceiveMessagesOnConnection( struct w_steam_iface *_this,
|
|
|
|
uint32_t hConn, w_SteamNetworkingMessage_t_153a **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets012_ReceiveMessagesOnConnection_params params =
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hConn = hConn,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_153a( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets012_ReceiveMessagesOnConnection, ¶ms );
|
2023-10-02 14:50:49 +02:00
|
|
|
if (!networking_message_pool_receive_153a( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32_t __thiscall winISteamNetworkingSockets_SteamNetworkingSockets012_ReceiveMessagesOnPollGroup( struct w_steam_iface *_this, uint32_t hPollGroup,
|
|
|
|
w_SteamNetworkingMessage_t_153a **ppOutMessages,
|
|
|
|
int32_t nMaxMessages )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets012_ReceiveMessagesOnPollGroup_params params =
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hPollGroup = hPollGroup,
|
|
|
|
.ppOutMessages = ppOutMessages,
|
|
|
|
.nMaxMessages = nMaxMessages,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!networking_message_pool_create_153a( nMaxMessages, params.ppOutMessages )) return 0;
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets012_ReceiveMessagesOnPollGroup, ¶ms );
|
2023-10-02 14:50:49 +02:00
|
|
|
if (!networking_message_pool_receive_153a( nMaxMessages, params._ret, params.ppOutMessages )) return 0;
|
|
|
|
|
|
|
|
return params._ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamNetworkingUtils_SteamNetworkingUtils004 */
|
|
|
|
|
|
|
|
void __thiscall winISteamNetworkingSockets_SteamNetworkingSockets012_SendMessages(struct w_steam_iface *_this, int32_t nMessages, w_SteamNetworkingMessage_t_153a *const *pMessages, int64_t *pOutMessageNumberOrResult)
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingSockets_SteamNetworkingSockets012_SendMessages_params params =
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.nMessages = nMessages,
|
|
|
|
.pMessages = pMessages,
|
|
|
|
.pOutMessageNumberOrResult = pOutMessageNumberOrResult,
|
|
|
|
};
|
|
|
|
int64_t i;
|
|
|
|
|
|
|
|
TRACE("%p\n", _this);
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingSockets_SteamNetworkingSockets012_SendMessages, ¶ms );
|
2023-10-02 14:50:49 +02:00
|
|
|
for (i = 0; i < nMessages; i++) pMessages[i]->m_pfnRelease( pMessages[i] );
|
|
|
|
}
|
|
|
|
|
|
|
|
w_SteamNetworkingMessage_t_153a *__thiscall winISteamNetworkingUtils_SteamNetworkingUtils004_AllocateMessage( struct w_steam_iface *_this, int32_t cbAllocateBuffer )
|
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamNetworkingUtils_SteamNetworkingUtils004_AllocateMessage_params params =
|
2023-10-02 14:50:49 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.cbAllocateBuffer = cbAllocateBuffer,
|
|
|
|
};
|
|
|
|
struct networking_message *message;
|
|
|
|
|
|
|
|
TRACE( "%p\n", _this );
|
|
|
|
|
|
|
|
if (!(message = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*message) ))) return NULL;
|
|
|
|
if ((message->w_msg_153a.m_cbSize = cbAllocateBuffer) &&
|
|
|
|
!(message->w_msg_153a.m_pData = HeapAlloc( GetProcessHeap(), 0, cbAllocateBuffer )))
|
|
|
|
{
|
|
|
|
HeapFree( GetProcessHeap(), 0, message );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
message->w_msg_153a.m_pfnFreeData = w_SteamNetworkingMessage_t_153a_FreeData;
|
|
|
|
message->w_msg_153a.m_pfnRelease = w_SteamNetworkingMessage_t_153a_Release;
|
|
|
|
params._ret = &message->w_msg_153a;
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
STEAMCLIENT_CALL( ISteamNetworkingUtils_SteamNetworkingUtils004_AllocateMessage, ¶ms );
|
2023-10-02 14:50:49 +02:00
|
|
|
return params._ret;
|
|
|
|
}
|
2024-01-09 18:33:53 +01:00
|
|
|
|
|
|
|
void __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest( struct w_steam_iface *_this, void *hServerListRequest )
|
|
|
|
{
|
|
|
|
struct ISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest_params params =
|
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.hServerListRequest = hServerListRequest,
|
|
|
|
};
|
|
|
|
|
|
|
|
TRACE("%p\n", _this);
|
|
|
|
|
|
|
|
execute_pending_callbacks(); /* execute any pending callbacks that might still need to use the request */
|
|
|
|
|
|
|
|
STEAMCLIENT_CALL( ISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest, ¶ms );
|
|
|
|
}
|