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_111
#include "struct_converters.h"
#include "cppISteamFriends_SteamFriends007.h"
struct cppISteamFriends_SteamFriends007
{
#ifdef __cplusplus
virtual const char * GetPersonaName( ) = 0;
virtual void SetPersonaName( const char * ) = 0;
virtual uint32_t GetPersonaState( ) = 0;
virtual int32_t GetFriendCount( int32_t ) = 0;
virtual CSteamID GetFriendByIndex( int32_t, int32_t ) = 0;
virtual uint32_t GetFriendRelationship( CSteamID ) = 0;
virtual uint32_t GetFriendPersonaState( CSteamID ) = 0;
virtual const char * GetFriendPersonaName( CSteamID ) = 0;
virtual bool GetFriendGamePlayed( CSteamID, FriendGameInfo_t * ) = 0;
virtual const char * GetFriendPersonaNameHistory( CSteamID, int32_t ) = 0;
virtual bool HasFriend( CSteamID, int32_t ) = 0;
virtual int32_t GetClanCount( ) = 0;
virtual CSteamID GetClanByIndex( int32_t ) = 0;
virtual const char * GetClanName( CSteamID ) = 0;
virtual const char * GetClanTag( CSteamID ) = 0;
virtual int32_t GetFriendCountFromSource( CSteamID ) = 0;
virtual CSteamID GetFriendFromSourceByIndex( CSteamID, int32_t ) = 0;
virtual bool IsUserInSource( CSteamID, CSteamID ) = 0;
virtual void SetInGameVoiceSpeaking( CSteamID, bool ) = 0;
virtual void ActivateGameOverlay( const char * ) = 0;
virtual void ActivateGameOverlayToUser( const char *, CSteamID ) = 0;
virtual void ActivateGameOverlayToWebPage( const char * ) = 0;
virtual void ActivateGameOverlayToStore( uint32_t ) = 0;
virtual void SetPlayedWith( CSteamID ) = 0;
virtual void ActivateGameOverlayInviteDialog( CSteamID ) = 0;
virtual int32_t GetSmallFriendAvatar( CSteamID ) = 0;
virtual int32_t GetMediumFriendAvatar( CSteamID ) = 0;
virtual int32_t GetLargeFriendAvatar( CSteamID ) = 0;
#endif /* __cplusplus */
};
void cppISteamFriends_SteamFriends007_GetPersonaName( struct cppISteamFriends_SteamFriends007_GetPersonaName_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetPersonaName( );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetPersonaName( );
}
void cppISteamFriends_SteamFriends007_SetPersonaName( struct cppISteamFriends_SteamFriends007_SetPersonaName_params *params )
{
((ISteamFriends*)params->linux_side)->SetPersonaName( (const char *)params->pchPersonaName );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
iface->SetPersonaName( params->pchPersonaName );
}
void cppISteamFriends_SteamFriends007_GetPersonaState( struct cppISteamFriends_SteamFriends007_GetPersonaState_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetPersonaState( );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetPersonaState( );
}
void cppISteamFriends_SteamFriends007_GetFriendCount( struct cppISteamFriends_SteamFriends007_GetFriendCount_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendCount( (int)params->iFriendFlags );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetFriendCount( params->iFriendFlags );
}
void cppISteamFriends_SteamFriends007_GetFriendByIndex( struct cppISteamFriends_SteamFriends007_GetFriendByIndex_params *params )
{
*params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendByIndex( (int)params->iFriend, (int)params->iFriendFlags );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
*params->_ret = iface->GetFriendByIndex( params->iFriend, params->iFriendFlags );
}
void cppISteamFriends_SteamFriends007_GetFriendRelationship( struct cppISteamFriends_SteamFriends007_GetFriendRelationship_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendRelationship( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetFriendRelationship( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends007_GetFriendPersonaState( struct cppISteamFriends_SteamFriends007_GetFriendPersonaState_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendPersonaState( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetFriendPersonaState( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends007_GetFriendPersonaName( struct cppISteamFriends_SteamFriends007_GetFriendPersonaName_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendPersonaName( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetFriendPersonaName( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends007_GetFriendGamePlayed( struct cppISteamFriends_SteamFriends007_GetFriendGamePlayed_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendGamePlayed( (CSteamID)params->steamIDFriend, (FriendGameInfo_t *)params->pFriendGameInfo );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetFriendGamePlayed( params->steamIDFriend, params->pFriendGameInfo );
}
void cppISteamFriends_SteamFriends007_GetFriendPersonaNameHistory( struct cppISteamFriends_SteamFriends007_GetFriendPersonaNameHistory_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendPersonaNameHistory( (CSteamID)params->steamIDFriend, (int)params->iPersonaName );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetFriendPersonaNameHistory( params->steamIDFriend, params->iPersonaName );
}
void cppISteamFriends_SteamFriends007_HasFriend( struct cppISteamFriends_SteamFriends007_HasFriend_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->HasFriend( (CSteamID)params->steamIDFriend, (int)params->iFriendFlags );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->HasFriend( params->steamIDFriend, params->iFriendFlags );
}
void cppISteamFriends_SteamFriends007_GetClanCount( struct cppISteamFriends_SteamFriends007_GetClanCount_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetClanCount( );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetClanCount( );
}
void cppISteamFriends_SteamFriends007_GetClanByIndex( struct cppISteamFriends_SteamFriends007_GetClanByIndex_params *params )
{
*params->_ret = ((ISteamFriends*)params->linux_side)->GetClanByIndex( (int)params->iClan );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
*params->_ret = iface->GetClanByIndex( params->iClan );
}
void cppISteamFriends_SteamFriends007_GetClanName( struct cppISteamFriends_SteamFriends007_GetClanName_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetClanName( (CSteamID)params->steamIDClan );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetClanName( params->steamIDClan );
}
void cppISteamFriends_SteamFriends007_GetClanTag( struct cppISteamFriends_SteamFriends007_GetClanTag_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetClanTag( (CSteamID)params->steamIDClan );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetClanTag( params->steamIDClan );
}
void cppISteamFriends_SteamFriends007_GetFriendCountFromSource( struct cppISteamFriends_SteamFriends007_GetFriendCountFromSource_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendCountFromSource( (CSteamID)params->steamIDSource );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetFriendCountFromSource( params->steamIDSource );
}
void cppISteamFriends_SteamFriends007_GetFriendFromSourceByIndex( struct cppISteamFriends_SteamFriends007_GetFriendFromSourceByIndex_params *params )
{
*params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendFromSourceByIndex( (CSteamID)params->steamIDSource, (int)params->iFriend );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
*params->_ret = iface->GetFriendFromSourceByIndex( params->steamIDSource, params->iFriend );
}
void cppISteamFriends_SteamFriends007_IsUserInSource( struct cppISteamFriends_SteamFriends007_IsUserInSource_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->IsUserInSource( (CSteamID)params->steamIDUser, (CSteamID)params->steamIDSource );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->IsUserInSource( params->steamIDUser, params->steamIDSource );
}
void cppISteamFriends_SteamFriends007_SetInGameVoiceSpeaking( struct cppISteamFriends_SteamFriends007_SetInGameVoiceSpeaking_params *params )
{
((ISteamFriends*)params->linux_side)->SetInGameVoiceSpeaking( (CSteamID)params->steamIDUser, (bool)params->bSpeaking );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
iface->SetInGameVoiceSpeaking( params->steamIDUser, params->bSpeaking );
}
void cppISteamFriends_SteamFriends007_ActivateGameOverlay( struct cppISteamFriends_SteamFriends007_ActivateGameOverlay_params *params )
{
((ISteamFriends*)params->linux_side)->ActivateGameOverlay( (const char *)params->pchDialog );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
iface->ActivateGameOverlay( params->pchDialog );
}
void cppISteamFriends_SteamFriends007_ActivateGameOverlayToUser( struct cppISteamFriends_SteamFriends007_ActivateGameOverlayToUser_params *params )
{
((ISteamFriends*)params->linux_side)->ActivateGameOverlayToUser( (const char *)params->pchDialog, (CSteamID)params->steamID );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
iface->ActivateGameOverlayToUser( params->pchDialog, params->steamID );
}
void cppISteamFriends_SteamFriends007_ActivateGameOverlayToWebPage( struct cppISteamFriends_SteamFriends007_ActivateGameOverlayToWebPage_params *params )
{
((ISteamFriends*)params->linux_side)->ActivateGameOverlayToWebPage( (const char *)params->pchURL );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
iface->ActivateGameOverlayToWebPage( params->pchURL );
}
void cppISteamFriends_SteamFriends007_ActivateGameOverlayToStore( struct cppISteamFriends_SteamFriends007_ActivateGameOverlayToStore_params *params )
{
((ISteamFriends*)params->linux_side)->ActivateGameOverlayToStore( (AppId_t)params->nAppID );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
iface->ActivateGameOverlayToStore( params->nAppID );
}
void cppISteamFriends_SteamFriends007_SetPlayedWith( struct cppISteamFriends_SteamFriends007_SetPlayedWith_params *params )
{
((ISteamFriends*)params->linux_side)->SetPlayedWith( (CSteamID)params->steamIDUserPlayedWith );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
iface->SetPlayedWith( params->steamIDUserPlayedWith );
}
void cppISteamFriends_SteamFriends007_ActivateGameOverlayInviteDialog( struct cppISteamFriends_SteamFriends007_ActivateGameOverlayInviteDialog_params *params )
{
((ISteamFriends*)params->linux_side)->ActivateGameOverlayInviteDialog( (CSteamID)params->steamIDLobby );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
iface->ActivateGameOverlayInviteDialog( params->steamIDLobby );
}
void cppISteamFriends_SteamFriends007_GetSmallFriendAvatar( struct cppISteamFriends_SteamFriends007_GetSmallFriendAvatar_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetSmallFriendAvatar( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetSmallFriendAvatar( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends007_GetMediumFriendAvatar( struct cppISteamFriends_SteamFriends007_GetMediumFriendAvatar_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetMediumFriendAvatar( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetMediumFriendAvatar( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends007_GetLargeFriendAvatar( struct cppISteamFriends_SteamFriends007_GetLargeFriendAvatar_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetLargeFriendAvatar( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends007 *iface = (struct cppISteamFriends_SteamFriends007 *)params->linux_side;
params->_ret = iface->GetLargeFriendAvatar( params->steamIDFriend );
}
#ifdef __cplusplus