2
0
mirror of https://github.com/ValveSoftware/Proton synced 2025-08-31 14:45:23 +00:00

lsteamclient: Generate linux interface structs.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon
2023-09-23 23:44:45 +02:00
committed by Arkadiusz Hiler
parent 4988734817
commit a1445b757d
391 changed files with 19128 additions and 5873 deletions

View File

@@ -11,144 +11,207 @@ extern "C" {
#define SDKVER_107
#include "struct_converters.h"
#include "cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006.h"
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006
{
#ifdef __cplusplus
virtual bool RequestCurrentStats( ) = 0;
virtual bool GetStat( const char *, int32_t * ) = 0;
virtual bool GetStat( const char *, float * ) = 0;
virtual bool SetStat( const char *, int32_t ) = 0;
virtual bool SetStat( const char *, float ) = 0;
virtual bool UpdateAvgRateStat( const char *, float, double ) = 0;
virtual bool GetAchievement( const char *, bool * ) = 0;
virtual bool SetAchievement( const char * ) = 0;
virtual bool ClearAchievement( const char * ) = 0;
virtual bool StoreStats( ) = 0;
virtual int32_t GetAchievementIcon( const char * ) = 0;
virtual const char * GetAchievementDisplayAttribute( const char *, const char * ) = 0;
virtual bool IndicateAchievementProgress( const char *, uint32_t, uint32_t ) = 0;
virtual uint64_t RequestUserStats( CSteamID ) = 0;
virtual bool GetUserStat( CSteamID, const char *, int32_t * ) = 0;
virtual bool GetUserStat( CSteamID, const char *, float * ) = 0;
virtual bool GetUserAchievement( CSteamID, const char *, bool * ) = 0;
virtual bool ResetAllStats( bool ) = 0;
virtual uint64_t FindOrCreateLeaderboard( const char *, uint32_t, uint32_t ) = 0;
virtual uint64_t FindLeaderboard( const char * ) = 0;
virtual const char * GetLeaderboardName( uint64_t ) = 0;
virtual int32_t GetLeaderboardEntryCount( uint64_t ) = 0;
virtual uint32_t GetLeaderboardSortMethod( uint64_t ) = 0;
virtual uint32_t GetLeaderboardDisplayType( uint64_t ) = 0;
virtual uint64_t DownloadLeaderboardEntries( uint64_t, uint32_t, int32_t, int32_t ) = 0;
virtual bool GetDownloadedLeaderboardEntry( uint64_t, int32_t, LeaderboardEntry_t *, int32_t *, int32_t ) = 0;
virtual uint64_t UploadLeaderboardScore( uint64_t, uint32_t, int32_t, const int32_t *, int32_t ) = 0;
virtual uint64_t GetNumberOfCurrentPlayers( ) = 0;
#endif /* __cplusplus */
};
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_RequestCurrentStats( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_RequestCurrentStats_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->RequestCurrentStats( );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->RequestCurrentStats( );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetStat( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetStat_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetStat( (const char *)params->pchName, (int32 *)params->pData );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetStat( params->pchName, params->pData );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetStat_2( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetStat_2_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetStat( (const char *)params->pchName, (float *)params->pData );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetStat( params->pchName, params->pData );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_SetStat( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_SetStat_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->SetStat( (const char *)params->pchName, (int32)params->nData );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->SetStat( params->pchName, params->nData );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_SetStat_2( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_SetStat_2_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->SetStat( (const char *)params->pchName, (float)params->fData );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->SetStat( params->pchName, params->fData );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_UpdateAvgRateStat( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_UpdateAvgRateStat_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->UpdateAvgRateStat( (const char *)params->pchName, (float)params->flCountThisSession, (double)params->dSessionLength );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->UpdateAvgRateStat( params->pchName, params->flCountThisSession, params->dSessionLength );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetAchievement( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetAchievement_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetAchievement( (const char *)params->pchName, (bool *)params->pbAchieved );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetAchievement( params->pchName, params->pbAchieved );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_SetAchievement( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_SetAchievement_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->SetAchievement( (const char *)params->pchName );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->SetAchievement( params->pchName );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_ClearAchievement( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_ClearAchievement_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->ClearAchievement( (const char *)params->pchName );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->ClearAchievement( params->pchName );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_StoreStats( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_StoreStats_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->StoreStats( );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->StoreStats( );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetAchievementIcon( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetAchievementIcon_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetAchievementIcon( (const char *)params->pchName );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetAchievementIcon( params->pchName );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetAchievementDisplayAttribute( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetAchievementDisplayAttribute_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetAchievementDisplayAttribute( (const char *)params->pchName, (const char *)params->pchKey );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetAchievementDisplayAttribute( params->pchName, params->pchKey );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_IndicateAchievementProgress( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_IndicateAchievementProgress_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->IndicateAchievementProgress( (const char *)params->pchName, (uint32)params->nCurProgress, (uint32)params->nMaxProgress );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->IndicateAchievementProgress( params->pchName, params->nCurProgress, params->nMaxProgress );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_RequestUserStats( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_RequestUserStats_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->RequestUserStats( (CSteamID)params->steamIDUser );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->RequestUserStats( params->steamIDUser );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetUserStat( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetUserStat_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetUserStat( (CSteamID)params->steamIDUser, (const char *)params->pchName, (int32 *)params->pData );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetUserStat( params->steamIDUser, params->pchName, params->pData );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetUserStat_2( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetUserStat_2_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetUserStat( (CSteamID)params->steamIDUser, (const char *)params->pchName, (float *)params->pData );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetUserStat( params->steamIDUser, params->pchName, params->pData );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetUserAchievement( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetUserAchievement_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetUserAchievement( (CSteamID)params->steamIDUser, (const char *)params->pchName, (bool *)params->pbAchieved );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetUserAchievement( params->steamIDUser, params->pchName, params->pbAchieved );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_ResetAllStats( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_ResetAllStats_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->ResetAllStats( (bool)params->bAchievementsToo );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->ResetAllStats( params->bAchievementsToo );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_FindOrCreateLeaderboard( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_FindOrCreateLeaderboard_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->FindOrCreateLeaderboard( (const char *)params->pchLeaderboardName, (ELeaderboardSortMethod)params->eLeaderboardSortMethod, (ELeaderboardDisplayType)params->eLeaderboardDisplayType );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->FindOrCreateLeaderboard( params->pchLeaderboardName, params->eLeaderboardSortMethod, params->eLeaderboardDisplayType );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_FindLeaderboard( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_FindLeaderboard_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->FindLeaderboard( (const char *)params->pchLeaderboardName );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->FindLeaderboard( params->pchLeaderboardName );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetLeaderboardName( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetLeaderboardName_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetLeaderboardName( (SteamLeaderboard_t)params->hSteamLeaderboard );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetLeaderboardName( params->hSteamLeaderboard );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetLeaderboardEntryCount( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetLeaderboardEntryCount_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetLeaderboardEntryCount( (SteamLeaderboard_t)params->hSteamLeaderboard );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetLeaderboardEntryCount( params->hSteamLeaderboard );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetLeaderboardSortMethod( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetLeaderboardSortMethod_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetLeaderboardSortMethod( (SteamLeaderboard_t)params->hSteamLeaderboard );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetLeaderboardSortMethod( params->hSteamLeaderboard );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetLeaderboardDisplayType( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetLeaderboardDisplayType_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetLeaderboardDisplayType( (SteamLeaderboard_t)params->hSteamLeaderboard );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetLeaderboardDisplayType( params->hSteamLeaderboard );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_DownloadLeaderboardEntries( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_DownloadLeaderboardEntries_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->DownloadLeaderboardEntries( (SteamLeaderboard_t)params->hSteamLeaderboard, (ELeaderboardDataRequest)params->eLeaderboardDataRequest, (int)params->nRangeStart, (int)params->nRangeEnd );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->DownloadLeaderboardEntries( params->hSteamLeaderboard, params->eLeaderboardDataRequest, params->nRangeStart, params->nRangeEnd );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetDownloadedLeaderboardEntry( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetDownloadedLeaderboardEntry_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetDownloadedLeaderboardEntry( (SteamLeaderboardEntries_t)params->hSteamLeaderboardEntries, (int)params->index, (LeaderboardEntry_t *)params->pLeaderboardEntry, (int32 *)params->pDetails, (int)params->cDetailsMax );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetDownloadedLeaderboardEntry( params->hSteamLeaderboardEntries, params->index, params->pLeaderboardEntry, params->pDetails, params->cDetailsMax );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_UploadLeaderboardScore( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_UploadLeaderboardScore_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->UploadLeaderboardScore( (SteamLeaderboard_t)params->hSteamLeaderboard, (ELeaderboardUploadScoreMethod)params->eLeaderboardUploadScoreMethod, (int32)params->nScore, (const int32 *)params->pScoreDetails, (int)params->cScoreDetailsCount );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->UploadLeaderboardScore( params->hSteamLeaderboard, params->eLeaderboardUploadScoreMethod, params->nScore, params->pScoreDetails, params->cScoreDetailsCount );
}
void cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetNumberOfCurrentPlayers( struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006_GetNumberOfCurrentPlayers_params *params )
{
params->_ret = ((ISteamUserStats*)params->linux_side)->GetNumberOfCurrentPlayers( );
struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *iface = (struct cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006 *)params->linux_side;
params->_ret = iface->GetNumberOfCurrentPlayers( );
}
#ifdef __cplusplus