lsteamclient: Add ISteamGameSearch support
This commit is contained in:
parent
e94250ae57
commit
aa4c6fcc22
7 changed files with 259 additions and 1 deletions
83
lsteamclient/cppISteamGameSearch_SteamMatchGameSearch001.cpp
Normal file
83
lsteamclient/cppISteamGameSearch_SteamMatchGameSearch001.cpp
Normal file
|
@ -0,0 +1,83 @@
|
|||
#include "steam_defs.h"
|
||||
#include "steamworks_sdk_144/steam_api.h"
|
||||
#include "steamworks_sdk_144/steamnetworkingtypes.h"
|
||||
#include "steamclient_private.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#define SDKVER_144
|
||||
#include "struct_converters.h"
|
||||
#include "cppISteamGameSearch_SteamMatchGameSearch001.h"
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_AddGameSearchParams(void *linux_side, const char * pchKeyToFind, const char * pchValuesToFind)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->AddGameSearchParams((const char *)pchKeyToFind, (const char *)pchValuesToFind);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SearchForGameWithLobby(void *linux_side, CSteamID steamIDLobby, int nPlayerMin, int nPlayerMax)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->SearchForGameWithLobby((CSteamID)steamIDLobby, (int)nPlayerMin, (int)nPlayerMax);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SearchForGameSolo(void *linux_side, int nPlayerMin, int nPlayerMax)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->SearchForGameSolo((int)nPlayerMin, (int)nPlayerMax);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_AcceptGame(void *linux_side)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->AcceptGame();
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_DeclineGame(void *linux_side)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->DeclineGame();
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_RetrieveConnectionDetails(void *linux_side, CSteamID steamIDHost, char * pchConnectionDetails, int cubConnectionDetails)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->RetrieveConnectionDetails((CSteamID)steamIDHost, (char *)pchConnectionDetails, (int)cubConnectionDetails);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_EndGameSearch(void *linux_side)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->EndGameSearch();
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SetGameHostParams(void *linux_side, const char * pchKey, const char * pchValue)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->SetGameHostParams((const char *)pchKey, (const char *)pchValue);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SetConnectionDetails(void *linux_side, const char * pchConnectionDetails, int cubConnectionDetails)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->SetConnectionDetails((const char *)pchConnectionDetails, (int)cubConnectionDetails);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_RequestPlayersForGame(void *linux_side, int nPlayerMin, int nPlayerMax, int nMaxTeamSize)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->RequestPlayersForGame((int)nPlayerMin, (int)nPlayerMax, (int)nMaxTeamSize);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_HostConfirmGameStart(void *linux_side, uint64 ullUniqueGameID)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->HostConfirmGameStart((uint64)ullUniqueGameID);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_CancelRequestPlayersForGame(void *linux_side)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->CancelRequestPlayersForGame();
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SubmitPlayerResult(void *linux_side, uint64 ullUniqueGameID, CSteamID steamIDPlayer, EPlayerResult_t EPlayerResult)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->SubmitPlayerResult((uint64)ullUniqueGameID, (CSteamID)steamIDPlayer, (EPlayerResult_t)EPlayerResult);
|
||||
}
|
||||
|
||||
EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_EndGame(void *linux_side, uint64 ullUniqueGameID)
|
||||
{
|
||||
return ((ISteamGameSearch*)linux_side)->EndGame((uint64)ullUniqueGameID);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
14
lsteamclient/cppISteamGameSearch_SteamMatchGameSearch001.h
Normal file
14
lsteamclient/cppISteamGameSearch_SteamMatchGameSearch001.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_AddGameSearchParams(void *, const char *, const char *);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SearchForGameWithLobby(void *, CSteamID, int, int);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SearchForGameSolo(void *, int, int);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_AcceptGame(void *);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_DeclineGame(void *);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_RetrieveConnectionDetails(void *, CSteamID, char *, int);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_EndGameSearch(void *);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SetGameHostParams(void *, const char *, const char *);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SetConnectionDetails(void *, const char *, int);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_RequestPlayersForGame(void *, int, int, int);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_HostConfirmGameStart(void *, uint64);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_CancelRequestPlayersForGame(void *);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_SubmitPlayerResult(void *, uint64, CSteamID, EPlayerResult_t);
|
||||
extern EGameSearchErrorCode_t cppISteamGameSearch_SteamMatchGameSearch001_EndGame(void *, uint64);
|
|
@ -93,6 +93,7 @@ files = [
|
|||
"ISteamAppList",
|
||||
"ISteamClient",
|
||||
"ISteamController",
|
||||
"ISteamGameSearch",
|
||||
"ISteamFriends",
|
||||
"ISteamHTMLSurface",
|
||||
"ISteamHTTP",
|
||||
|
|
|
@ -90,7 +90,9 @@ typedef uint32_t EUserUGCList,
|
|||
ESteamNetworkingConfigValue,
|
||||
ESteamNetworkingConfigDataType,
|
||||
ESteamNetworkingSocketsDebugOutputType,
|
||||
ESteamNetworkingGetConfigValueResult
|
||||
ESteamNetworkingGetConfigValueResult,
|
||||
EGameSearchErrorCode_t,
|
||||
EPlayerResult_t
|
||||
;
|
||||
|
||||
/* structs below are PODs with identical size & layout across platforms */
|
||||
|
|
156
lsteamclient/winISteamGameSearch.c
Normal file
156
lsteamclient/winISteamGameSearch.c
Normal file
|
@ -0,0 +1,156 @@
|
|||
/* This file is auto-generated, do not edit. */
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
#include "cxx.h"
|
||||
|
||||
#include "steam_defs.h"
|
||||
|
||||
#include "steamclient_private.h"
|
||||
|
||||
#include "struct_converters.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
||||
|
||||
#include "cppISteamGameSearch_SteamMatchGameSearch001.h"
|
||||
|
||||
typedef struct __winISteamGameSearch_SteamMatchGameSearch001 {
|
||||
vtable_ptr *vtable;
|
||||
void *linux_side;
|
||||
} winISteamGameSearch_SteamMatchGameSearch001;
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_AddGameSearchParams, 12)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_AddGameSearchParams(winISteamGameSearch_SteamMatchGameSearch001 *_this, const char * pchKeyToFind, const char * pchValuesToFind)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_AddGameSearchParams(_this->linux_side, pchKeyToFind, pchValuesToFind);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_SearchForGameWithLobby, 20)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_SearchForGameWithLobby(winISteamGameSearch_SteamMatchGameSearch001 *_this, CSteamID steamIDLobby, int nPlayerMin, int nPlayerMax)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_SearchForGameWithLobby(_this->linux_side, steamIDLobby, nPlayerMin, nPlayerMax);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_SearchForGameSolo, 12)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_SearchForGameSolo(winISteamGameSearch_SteamMatchGameSearch001 *_this, int nPlayerMin, int nPlayerMax)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_SearchForGameSolo(_this->linux_side, nPlayerMin, nPlayerMax);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_AcceptGame, 4)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_AcceptGame(winISteamGameSearch_SteamMatchGameSearch001 *_this)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_AcceptGame(_this->linux_side);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_DeclineGame, 4)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_DeclineGame(winISteamGameSearch_SteamMatchGameSearch001 *_this)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_DeclineGame(_this->linux_side);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_RetrieveConnectionDetails, 20)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_RetrieveConnectionDetails(winISteamGameSearch_SteamMatchGameSearch001 *_this, CSteamID steamIDHost, char * pchConnectionDetails, int cubConnectionDetails)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_RetrieveConnectionDetails(_this->linux_side, steamIDHost, pchConnectionDetails, cubConnectionDetails);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_EndGameSearch, 4)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_EndGameSearch(winISteamGameSearch_SteamMatchGameSearch001 *_this)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_EndGameSearch(_this->linux_side);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_SetGameHostParams, 12)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_SetGameHostParams(winISteamGameSearch_SteamMatchGameSearch001 *_this, const char * pchKey, const char * pchValue)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_SetGameHostParams(_this->linux_side, pchKey, pchValue);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_SetConnectionDetails, 12)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_SetConnectionDetails(winISteamGameSearch_SteamMatchGameSearch001 *_this, const char * pchConnectionDetails, int cubConnectionDetails)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_SetConnectionDetails(_this->linux_side, pchConnectionDetails, cubConnectionDetails);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_RequestPlayersForGame, 16)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_RequestPlayersForGame(winISteamGameSearch_SteamMatchGameSearch001 *_this, int nPlayerMin, int nPlayerMax, int nMaxTeamSize)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_RequestPlayersForGame(_this->linux_side, nPlayerMin, nPlayerMax, nMaxTeamSize);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_HostConfirmGameStart, 12)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_HostConfirmGameStart(winISteamGameSearch_SteamMatchGameSearch001 *_this, uint64 ullUniqueGameID)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_HostConfirmGameStart(_this->linux_side, ullUniqueGameID);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_CancelRequestPlayersForGame, 4)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_CancelRequestPlayersForGame(winISteamGameSearch_SteamMatchGameSearch001 *_this)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_CancelRequestPlayersForGame(_this->linux_side);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_SubmitPlayerResult, 24)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_SubmitPlayerResult(winISteamGameSearch_SteamMatchGameSearch001 *_this, uint64 ullUniqueGameID, CSteamID steamIDPlayer, EPlayerResult_t EPlayerResult)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_SubmitPlayerResult(_this->linux_side, ullUniqueGameID, steamIDPlayer, EPlayerResult);
|
||||
}
|
||||
|
||||
DEFINE_THISCALL_WRAPPER(winISteamGameSearch_SteamMatchGameSearch001_EndGame, 12)
|
||||
EGameSearchErrorCode_t __thiscall winISteamGameSearch_SteamMatchGameSearch001_EndGame(winISteamGameSearch_SteamMatchGameSearch001 *_this, uint64 ullUniqueGameID)
|
||||
{
|
||||
TRACE("%p\n", _this);
|
||||
return cppISteamGameSearch_SteamMatchGameSearch001_EndGame(_this->linux_side, ullUniqueGameID);
|
||||
}
|
||||
|
||||
extern vtable_ptr winISteamGameSearch_SteamMatchGameSearch001_vtable;
|
||||
|
||||
#ifndef __GNUC__
|
||||
void __asm_dummy_vtables(void) {
|
||||
#endif
|
||||
__ASM_VTABLE(winISteamGameSearch_SteamMatchGameSearch001,
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_AddGameSearchParams)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_SearchForGameWithLobby)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_SearchForGameSolo)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_AcceptGame)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_DeclineGame)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_RetrieveConnectionDetails)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_EndGameSearch)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_SetGameHostParams)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_SetConnectionDetails)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_RequestPlayersForGame)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_HostConfirmGameStart)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_CancelRequestPlayersForGame)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_SubmitPlayerResult)
|
||||
VTABLE_ADD_FUNC(winISteamGameSearch_SteamMatchGameSearch001_EndGame)
|
||||
);
|
||||
#ifndef __GNUC__
|
||||
}
|
||||
#endif
|
||||
|
||||
winISteamGameSearch_SteamMatchGameSearch001 *create_winISteamGameSearch_SteamMatchGameSearch001(void *linux_side)
|
||||
{
|
||||
winISteamGameSearch_SteamMatchGameSearch001 *r = HeapAlloc(GetProcessHeap(), 0, sizeof(winISteamGameSearch_SteamMatchGameSearch001));
|
||||
TRACE("-> %p\n", r);
|
||||
r->vtable = &winISteamGameSearch_SteamMatchGameSearch001_vtable;
|
||||
r->linux_side = linux_side;
|
||||
return r;
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ extern void *create_winISteamFriends_SteamFriends017(void *);
|
|||
extern void *create_winISteamUtils_SteamUtils009(void *);
|
||||
extern void *create_winISteamMatchmaking_SteamMatchMaking009(void *);
|
||||
extern void *create_winISteamMatchmakingServers_SteamMatchMakingServers002(void *);
|
||||
extern void *create_winISteamGameSearch_SteamMatchGameSearch001(void *);
|
||||
extern void *create_winISteamParties_SteamParties002(void *);
|
||||
extern void *create_winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014(void *);
|
||||
extern void *create_winISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011(void *);
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
{"SteamUtils009", &create_winISteamUtils_SteamUtils009},
|
||||
{"SteamMatchMaking009", &create_winISteamMatchmaking_SteamMatchMaking009},
|
||||
{"SteamMatchMakingServers002", &create_winISteamMatchmakingServers_SteamMatchMakingServers002},
|
||||
{"SteamMatchGameSearch001", &create_winISteamGameSearch_SteamMatchGameSearch001},
|
||||
{"SteamParties002", &create_winISteamParties_SteamParties002},
|
||||
{"STEAMREMOTESTORAGE_INTERFACE_VERSION014", &create_winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014},
|
||||
{"STEAMUSERSTATS_INTERFACE_VERSION011", &create_winISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011},
|
||||
|
|
Loading…
Reference in a new issue