lsteamclient: Support SteamGameStats001

This commit is contained in:
Andrew Eikum 2019-02-15 15:06:17 -06:00
parent 72499898a7
commit bdca0aa9c9
19 changed files with 273 additions and 0 deletions

View file

@ -0,0 +1,77 @@
#include "steam_defs.h"
#include "steamworks_sdk_117/steam_api.h"
#include "steamworks_sdk_117/isteamgamestats.h"
#include "steamclient_private.h"
#include "cppISteamGameStats_SteamGameStats001.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "struct_converters_117.h"
SteamAPICall_t cppISteamGameStats_SteamGameStats001_GetNewSession(void *linux_side, int8 nAccountType, uint64 ulAccountID, int32 nAppID, RTime32 rtTimeStarted)
{
return ((ISteamGameStats*)linux_side)->GetNewSession((int8)nAccountType, (uint64)ulAccountID, (int32)nAppID, (RTime32)rtTimeStarted);
}
SteamAPICall_t cppISteamGameStats_SteamGameStats001_EndSession(void *linux_side, uint64 ulSessionID, RTime32 rtTimeEnded, int nReasonCode)
{
return ((ISteamGameStats*)linux_side)->EndSession((uint64)ulSessionID, (RTime32)rtTimeEnded, (int)nReasonCode);
}
EResult cppISteamGameStats_SteamGameStats001_AddSessionAttributeInt(void *linux_side, uint64 ulSessionID, const char * pstrName, int32 nData)
{
return ((ISteamGameStats*)linux_side)->AddSessionAttributeInt((uint64)ulSessionID, (const char *)pstrName, (int32)nData);
}
EResult cppISteamGameStats_SteamGameStats001_AddSessionAttributeString(void *linux_side, uint64 ulSessionID, const char * pstrName, const char * pstrData)
{
return ((ISteamGameStats*)linux_side)->AddSessionAttributeString((uint64)ulSessionID, (const char *)pstrName, (const char *)pstrData);
}
EResult cppISteamGameStats_SteamGameStats001_AddSessionAttributeFloat(void *linux_side, uint64 ulSessionID, const char * pstrName, float fData)
{
return ((ISteamGameStats*)linux_side)->AddSessionAttributeFloat((uint64)ulSessionID, (const char *)pstrName, (float)fData);
}
EResult cppISteamGameStats_SteamGameStats001_AddNewRow(void *linux_side, uint64 * pulRowID, uint64 ulSessionID, const char * pstrTableName)
{
return ((ISteamGameStats*)linux_side)->AddNewRow((uint64 *)pulRowID, (uint64)ulSessionID, (const char *)pstrTableName);
}
EResult cppISteamGameStats_SteamGameStats001_CommitRow(void *linux_side, uint64 ulRowID)
{
return ((ISteamGameStats*)linux_side)->CommitRow((uint64)ulRowID);
}
EResult cppISteamGameStats_SteamGameStats001_CommitOutstandingRows(void *linux_side, uint64 ulSessionID)
{
return ((ISteamGameStats*)linux_side)->CommitOutstandingRows((uint64)ulSessionID);
}
EResult cppISteamGameStats_SteamGameStats001_AddRowAttributeInt(void *linux_side, uint64 ulRowID, const char * pstrName, int32 nData)
{
return ((ISteamGameStats*)linux_side)->AddRowAttributeInt((uint64)ulRowID, (const char *)pstrName, (int32)nData);
}
EResult cppISteamGameStats_SteamGameStats001_AddRowAtributeString(void *linux_side, uint64 ulRowID, const char * pstrName, const char * pstrData)
{
return ((ISteamGameStats*)linux_side)->AddRowAtributeString((uint64)ulRowID, (const char *)pstrName, (const char *)pstrData);
}
EResult cppISteamGameStats_SteamGameStats001_AddRowAttributeFloat(void *linux_side, uint64 ulRowID, const char * pstrName, float fData)
{
return ((ISteamGameStats*)linux_side)->AddRowAttributeFloat((uint64)ulRowID, (const char *)pstrName, (float)fData);
}
EResult cppISteamGameStats_SteamGameStats001_AddSessionAttributeInt64(void *linux_side, uint64 ulSessionID, const char * pstrName, int64 llData)
{
return ((ISteamGameStats*)linux_side)->AddSessionAttributeInt64((uint64)ulSessionID, (const char *)pstrName, (int64)llData);
}
EResult cppISteamGameStats_SteamGameStats001_AddRowAttributeInt64(void *linux_side, uint64 ulRowID, const char * pstrName, int64 llData)
{
return ((ISteamGameStats*)linux_side)->AddRowAttributeInt64((uint64)ulRowID, (const char *)pstrName, (int64)llData);
}
#ifdef __cplusplus
}
#endif

View file

@ -0,0 +1,19 @@
#ifdef __cplusplus
extern "C" {
#endif
extern SteamAPICall_t cppISteamGameStats_SteamGameStats001_GetNewSession(void *, int8, uint64, int32, RTime32);
extern SteamAPICall_t cppISteamGameStats_SteamGameStats001_EndSession(void *, uint64, RTime32, int);
extern EResult cppISteamGameStats_SteamGameStats001_AddSessionAttributeInt(void *, uint64, const char *, int32);
extern EResult cppISteamGameStats_SteamGameStats001_AddSessionAttributeString(void *, uint64, const char *, const char *);
extern EResult cppISteamGameStats_SteamGameStats001_AddSessionAttributeFloat(void *, uint64, const char *, float);
extern EResult cppISteamGameStats_SteamGameStats001_AddNewRow(void *, uint64 *, uint64, const char *);
extern EResult cppISteamGameStats_SteamGameStats001_CommitRow(void *, uint64);
extern EResult cppISteamGameStats_SteamGameStats001_CommitOutstandingRows(void *, uint64);
extern EResult cppISteamGameStats_SteamGameStats001_AddRowAttributeInt(void *, uint64, const char *, int32);
extern EResult cppISteamGameStats_SteamGameStats001_AddRowAtributeString(void *, uint64, const char *, const char *);
extern EResult cppISteamGameStats_SteamGameStats001_AddRowAttributeFloat(void *, uint64, const char *, float);
extern EResult cppISteamGameStats_SteamGameStats001_AddSessionAttributeInt64(void *, uint64, const char *, int64);
extern EResult cppISteamGameStats_SteamGameStats001_AddRowAttributeInt64(void *, uint64, const char *, int64);
#ifdef __cplusplus
}
#endif

View file

@ -115,6 +115,9 @@ files = [
("isteamgameserverstats.h", [
"ISteamGameServerStats"
]),
("isteamgamestats.h", [
"ISteamGameStats"
]),
("isteammasterserverupdater.h", [
"ISteamMasterServerUpdater"
]),

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -10,6 +10,8 @@
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose: Functions for recording game play sessions and details thereof
//-----------------------------------------------------------------------------

View file

@ -0,0 +1,146 @@
/* 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"
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
#include "cppISteamGameStats_SteamGameStats001.h"
typedef struct __winISteamGameStats_SteamGameStats001 {
vtable_ptr *vtable;
void *linux_side;
} winISteamGameStats_SteamGameStats001;
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_GetNewSession, 24)
SteamAPICall_t __thiscall winISteamGameStats_SteamGameStats001_GetNewSession(winISteamGameStats_SteamGameStats001 *_this, int8 nAccountType, uint64 ulAccountID, int32 nAppID, RTime32 rtTimeStarted)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_GetNewSession(_this->linux_side, nAccountType, ulAccountID, nAppID, rtTimeStarted);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_EndSession, 20)
SteamAPICall_t __thiscall winISteamGameStats_SteamGameStats001_EndSession(winISteamGameStats_SteamGameStats001 *_this, uint64 ulSessionID, RTime32 rtTimeEnded, int nReasonCode)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_EndSession(_this->linux_side, ulSessionID, rtTimeEnded, nReasonCode);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddSessionAttributeInt, 20)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddSessionAttributeInt(winISteamGameStats_SteamGameStats001 *_this, uint64 ulSessionID, const char * pstrName, int32 nData)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddSessionAttributeInt(_this->linux_side, ulSessionID, pstrName, nData);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddSessionAttributeString, 20)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddSessionAttributeString(winISteamGameStats_SteamGameStats001 *_this, uint64 ulSessionID, const char * pstrName, const char * pstrData)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddSessionAttributeString(_this->linux_side, ulSessionID, pstrName, pstrData);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddSessionAttributeFloat, 20)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddSessionAttributeFloat(winISteamGameStats_SteamGameStats001 *_this, uint64 ulSessionID, const char * pstrName, float fData)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddSessionAttributeFloat(_this->linux_side, ulSessionID, pstrName, fData);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddNewRow, 20)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddNewRow(winISteamGameStats_SteamGameStats001 *_this, uint64 * pulRowID, uint64 ulSessionID, const char * pstrTableName)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddNewRow(_this->linux_side, pulRowID, ulSessionID, pstrTableName);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_CommitRow, 12)
EResult __thiscall winISteamGameStats_SteamGameStats001_CommitRow(winISteamGameStats_SteamGameStats001 *_this, uint64 ulRowID)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_CommitRow(_this->linux_side, ulRowID);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_CommitOutstandingRows, 12)
EResult __thiscall winISteamGameStats_SteamGameStats001_CommitOutstandingRows(winISteamGameStats_SteamGameStats001 *_this, uint64 ulSessionID)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_CommitOutstandingRows(_this->linux_side, ulSessionID);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddRowAttributeInt, 20)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddRowAttributeInt(winISteamGameStats_SteamGameStats001 *_this, uint64 ulRowID, const char * pstrName, int32 nData)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddRowAttributeInt(_this->linux_side, ulRowID, pstrName, nData);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddRowAtributeString, 20)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddRowAtributeString(winISteamGameStats_SteamGameStats001 *_this, uint64 ulRowID, const char * pstrName, const char * pstrData)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddRowAtributeString(_this->linux_side, ulRowID, pstrName, pstrData);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddRowAttributeFloat, 20)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddRowAttributeFloat(winISteamGameStats_SteamGameStats001 *_this, uint64 ulRowID, const char * pstrName, float fData)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddRowAttributeFloat(_this->linux_side, ulRowID, pstrName, fData);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddSessionAttributeInt64, 24)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddSessionAttributeInt64(winISteamGameStats_SteamGameStats001 *_this, uint64 ulSessionID, const char * pstrName, int64 llData)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddSessionAttributeInt64(_this->linux_side, ulSessionID, pstrName, llData);
}
DEFINE_THISCALL_WRAPPER(winISteamGameStats_SteamGameStats001_AddRowAttributeInt64, 24)
EResult __thiscall winISteamGameStats_SteamGameStats001_AddRowAttributeInt64(winISteamGameStats_SteamGameStats001 *_this, uint64 ulRowID, const char * pstrName, int64 llData)
{
TRACE("%p\n", _this);
return cppISteamGameStats_SteamGameStats001_AddRowAttributeInt64(_this->linux_side, ulRowID, pstrName, llData);
}
extern vtable_ptr winISteamGameStats_SteamGameStats001_vtable;
#ifndef __GNUC__
void __asm_dummy_vtables(void) {
#endif
__ASM_VTABLE(winISteamGameStats_SteamGameStats001,
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_GetNewSession)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_EndSession)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddSessionAttributeInt)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddSessionAttributeString)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddSessionAttributeFloat)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddNewRow)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_CommitRow)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_CommitOutstandingRows)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddRowAttributeInt)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddRowAtributeString)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddRowAttributeFloat)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddSessionAttributeInt64)
VTABLE_ADD_FUNC(winISteamGameStats_SteamGameStats001_AddRowAttributeInt64)
);
#ifndef __GNUC__
}
#endif
winISteamGameStats_SteamGameStats001 *create_winISteamGameStats_SteamGameStats001(void *linux_side)
{
winISteamGameStats_SteamGameStats001 *r = HeapAlloc(GetProcessHeap(), 0, sizeof(winISteamGameStats_SteamGameStats001));
TRACE("-> %p\n", r);
r->vtable = &winISteamGameStats_SteamGameStats001_vtable;
r->linux_side = linux_side;
return r;
}

View file

@ -76,6 +76,7 @@ extern void *create_winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0
extern void *create_winISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010(void *);
extern void *create_winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005(void *);
extern void *create_winISteamApps_STEAMAPPS_INTERFACE_VERSION004(void *);
extern void *create_winISteamGameStats_SteamGameStats001(void *);
extern void *create_winISteamFriends_SteamFriends010(void *);
extern void *create_winISteamClient_SteamClient011(void *);
extern void *create_winISteamFriends_SteamFriends009(void *);

View file

@ -76,6 +76,7 @@
{"STEAMUSERSTATS_INTERFACE_VERSION010", &create_winISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010},
{"STEAMREMOTESTORAGE_INTERFACE_VERSION005", &create_winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005},
{"STEAMAPPS_INTERFACE_VERSION004", &create_winISteamApps_STEAMAPPS_INTERFACE_VERSION004},
{"SteamGameStats001", &create_winISteamGameStats_SteamGameStats001},
{"SteamFriends010", &create_winISteamFriends_SteamFriends010},
{"SteamClient011", &create_winISteamClient_SteamClient011},
{"SteamFriends009", &create_winISteamFriends_SteamFriends009},