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,154 +11,221 @@ extern "C" {
#define SDKVER_099y
#include "struct_converters.h"
#include "cppISteamFriends_SteamFriends002.h"
struct cppISteamFriends_SteamFriends002
{
#ifdef __cplusplus
virtual const char * GetPersonaName( ) = 0;
virtual void SetPersonaName( const char * ) = 0;
virtual uint32_t GetPersonaState( ) = 0;
virtual void SetPersonaState( uint32_t ) = 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 void SetFriendRegValue( CSteamID, const char *, const char * ) = 0;
virtual const char * GetFriendRegValue( CSteamID, const char * ) = 0;
virtual bool GetFriendGamePlayed( CSteamID, uint64_t *, uint32_t *, uint16_t *, uint16_t * ) = 0;
virtual const char * GetFriendPersonaNameHistory( CSteamID, int32_t ) = 0;
virtual bool AddFriend( CSteamID ) = 0;
virtual bool RemoveFriend( CSteamID ) = 0;
virtual bool HasFriend( CSteamID, int32_t ) = 0;
virtual int32_t AddFriendByName( const char * ) = 0;
virtual bool InviteFriendByEmail( const char * ) = 0;
virtual int32_t GetChatMessage( CSteamID, int32_t, void *, int32_t, uint32_t * ) = 0;
virtual bool SendMsgToFriend( CSteamID, uint32_t, const void *, int32_t ) = 0;
virtual int32_t GetChatIDOfChatHistoryStart( CSteamID ) = 0;
virtual void SetChatHistoryStart( CSteamID, int32_t ) = 0;
virtual void ClearChatHistory( CSteamID ) = 0;
virtual int32_t GetClanCount( ) = 0;
virtual CSteamID GetClanByIndex( int32_t ) = 0;
virtual const char * GetClanName( CSteamID ) = 0;
virtual bool InviteFriendToClan( CSteamID, CSteamID ) = 0;
virtual bool AcknowledgeInviteToClan( CSteamID, bool ) = 0;
virtual int32_t GetFriendCountFromSource( CSteamID ) = 0;
virtual CSteamID GetFriendFromSourceByIndex( CSteamID, int32_t ) = 0;
#endif /* __cplusplus */
};
void cppISteamFriends_SteamFriends002_GetPersonaName( struct cppISteamFriends_SteamFriends002_GetPersonaName_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetPersonaName( );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetPersonaName( );
}
void cppISteamFriends_SteamFriends002_SetPersonaName( struct cppISteamFriends_SteamFriends002_SetPersonaName_params *params )
{
((ISteamFriends*)params->linux_side)->SetPersonaName( (const char *)params->pchPersonaName );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
iface->SetPersonaName( params->pchPersonaName );
}
void cppISteamFriends_SteamFriends002_GetPersonaState( struct cppISteamFriends_SteamFriends002_GetPersonaState_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetPersonaState( );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetPersonaState( );
}
void cppISteamFriends_SteamFriends002_SetPersonaState( struct cppISteamFriends_SteamFriends002_SetPersonaState_params *params )
{
((ISteamFriends*)params->linux_side)->SetPersonaState( (EPersonaState)params->ePersonaState );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
iface->SetPersonaState( params->ePersonaState );
}
void cppISteamFriends_SteamFriends002_GetFriendCount( struct cppISteamFriends_SteamFriends002_GetFriendCount_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendCount( (int)params->iFriendFlags );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetFriendCount( params->iFriendFlags );
}
void cppISteamFriends_SteamFriends002_GetFriendByIndex( struct cppISteamFriends_SteamFriends002_GetFriendByIndex_params *params )
{
*params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendByIndex( (int)params->iFriend, (int)params->iFriendFlags );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
*params->_ret = iface->GetFriendByIndex( params->iFriend, params->iFriendFlags );
}
void cppISteamFriends_SteamFriends002_GetFriendRelationship( struct cppISteamFriends_SteamFriends002_GetFriendRelationship_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendRelationship( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetFriendRelationship( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends002_GetFriendPersonaState( struct cppISteamFriends_SteamFriends002_GetFriendPersonaState_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendPersonaState( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetFriendPersonaState( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends002_GetFriendPersonaName( struct cppISteamFriends_SteamFriends002_GetFriendPersonaName_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendPersonaName( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetFriendPersonaName( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends002_SetFriendRegValue( struct cppISteamFriends_SteamFriends002_SetFriendRegValue_params *params )
{
((ISteamFriends*)params->linux_side)->SetFriendRegValue( (CSteamID)params->steamIDFriend, (const char *)params->pchKey, (const char *)params->pchValue );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
iface->SetFriendRegValue( params->steamIDFriend, params->pchKey, params->pchValue );
}
void cppISteamFriends_SteamFriends002_GetFriendRegValue( struct cppISteamFriends_SteamFriends002_GetFriendRegValue_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendRegValue( (CSteamID)params->steamIDFriend, (const char *)params->pchKey );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetFriendRegValue( params->steamIDFriend, params->pchKey );
}
void cppISteamFriends_SteamFriends002_GetFriendGamePlayed( struct cppISteamFriends_SteamFriends002_GetFriendGamePlayed_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendGamePlayed( (CSteamID)params->steamIDFriend, (uint64 *)params->pulGameID, (uint32 *)params->punGameIP, (uint16 *)params->pusGamePort, (uint16 *)params->pusQueryPort );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetFriendGamePlayed( params->steamIDFriend, params->pulGameID, params->punGameIP, params->pusGamePort, params->pusQueryPort );
}
void cppISteamFriends_SteamFriends002_GetFriendPersonaNameHistory( struct cppISteamFriends_SteamFriends002_GetFriendPersonaNameHistory_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendPersonaNameHistory( (CSteamID)params->steamIDFriend, (int)params->iPersonaName );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetFriendPersonaNameHistory( params->steamIDFriend, params->iPersonaName );
}
void cppISteamFriends_SteamFriends002_AddFriend( struct cppISteamFriends_SteamFriends002_AddFriend_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->AddFriend( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->AddFriend( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends002_RemoveFriend( struct cppISteamFriends_SteamFriends002_RemoveFriend_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->RemoveFriend( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->RemoveFriend( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends002_HasFriend( struct cppISteamFriends_SteamFriends002_HasFriend_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->HasFriend( (CSteamID)params->steamIDFriend, (int)params->iFriendFlags );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->HasFriend( params->steamIDFriend, params->iFriendFlags );
}
void cppISteamFriends_SteamFriends002_AddFriendByName( struct cppISteamFriends_SteamFriends002_AddFriendByName_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->AddFriendByName( (const char *)params->pchEmailOrAccountName );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->AddFriendByName( params->pchEmailOrAccountName );
}
void cppISteamFriends_SteamFriends002_InviteFriendByEmail( struct cppISteamFriends_SteamFriends002_InviteFriendByEmail_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->InviteFriendByEmail( (const char *)params->pchEmailAccount );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->InviteFriendByEmail( params->pchEmailAccount );
}
void cppISteamFriends_SteamFriends002_GetChatMessage( struct cppISteamFriends_SteamFriends002_GetChatMessage_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetChatMessage( (CSteamID)params->steamIDFriend, (int)params->iChatID, (void *)params->pvData, (int)params->cubData, (EChatEntryType *)params->peChatEntryType );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetChatMessage( params->steamIDFriend, params->iChatID, params->pvData, params->cubData, params->peChatEntryType );
}
void cppISteamFriends_SteamFriends002_SendMsgToFriend( struct cppISteamFriends_SteamFriends002_SendMsgToFriend_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->SendMsgToFriend( (CSteamID)params->steamIDFriend, (EChatEntryType)params->eChatEntryType, (const void *)params->pvMsgBody, (int)params->cubMsgBody );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->SendMsgToFriend( params->steamIDFriend, params->eChatEntryType, params->pvMsgBody, params->cubMsgBody );
}
void cppISteamFriends_SteamFriends002_GetChatIDOfChatHistoryStart( struct cppISteamFriends_SteamFriends002_GetChatIDOfChatHistoryStart_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetChatIDOfChatHistoryStart( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetChatIDOfChatHistoryStart( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends002_SetChatHistoryStart( struct cppISteamFriends_SteamFriends002_SetChatHistoryStart_params *params )
{
((ISteamFriends*)params->linux_side)->SetChatHistoryStart( (CSteamID)params->steamIDFriend, (int)params->iChatID );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
iface->SetChatHistoryStart( params->steamIDFriend, params->iChatID );
}
void cppISteamFriends_SteamFriends002_ClearChatHistory( struct cppISteamFriends_SteamFriends002_ClearChatHistory_params *params )
{
((ISteamFriends*)params->linux_side)->ClearChatHistory( (CSteamID)params->steamIDFriend );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
iface->ClearChatHistory( params->steamIDFriend );
}
void cppISteamFriends_SteamFriends002_GetClanCount( struct cppISteamFriends_SteamFriends002_GetClanCount_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetClanCount( );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetClanCount( );
}
void cppISteamFriends_SteamFriends002_GetClanByIndex( struct cppISteamFriends_SteamFriends002_GetClanByIndex_params *params )
{
*params->_ret = ((ISteamFriends*)params->linux_side)->GetClanByIndex( (int)params->iClan );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
*params->_ret = iface->GetClanByIndex( params->iClan );
}
void cppISteamFriends_SteamFriends002_GetClanName( struct cppISteamFriends_SteamFriends002_GetClanName_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetClanName( (CSteamID)params->steamIDClan );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetClanName( params->steamIDClan );
}
void cppISteamFriends_SteamFriends002_InviteFriendToClan( struct cppISteamFriends_SteamFriends002_InviteFriendToClan_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->InviteFriendToClan( (CSteamID)params->steamIDFriend, (CSteamID)params->steamIDClan );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->InviteFriendToClan( params->steamIDFriend, params->steamIDClan );
}
void cppISteamFriends_SteamFriends002_AcknowledgeInviteToClan( struct cppISteamFriends_SteamFriends002_AcknowledgeInviteToClan_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->AcknowledgeInviteToClan( (CSteamID)params->steamIDClan, (bool)params->bAcceptOrDenyClanInvite );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->AcknowledgeInviteToClan( params->steamIDClan, params->bAcceptOrDenyClanInvite );
}
void cppISteamFriends_SteamFriends002_GetFriendCountFromSource( struct cppISteamFriends_SteamFriends002_GetFriendCountFromSource_params *params )
{
params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendCountFromSource( (CSteamID)params->steamIDSource );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
params->_ret = iface->GetFriendCountFromSource( params->steamIDSource );
}
void cppISteamFriends_SteamFriends002_GetFriendFromSourceByIndex( struct cppISteamFriends_SteamFriends002_GetFriendFromSourceByIndex_params *params )
{
*params->_ret = ((ISteamFriends*)params->linux_side)->GetFriendFromSourceByIndex( (CSteamID)params->steamIDSource, (int)params->iFriend );
struct cppISteamFriends_SteamFriends002 *iface = (struct cppISteamFriends_SteamFriends002 *)params->linux_side;
*params->_ret = iface->GetFriendFromSourceByIndex( params->steamIDSource, params->iFriend );
}
#ifdef __cplusplus