mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-28 23:55:52 +03:00
a1445b757d
CW-Bug-Id: #22729
164 lines
8.0 KiB
C++
164 lines
8.0 KiB
C++
#include "steam_defs.h"
|
|
#pragma push_macro("__cdecl")
|
|
#undef __cdecl
|
|
#define __cdecl
|
|
#include "steamworks_sdk_102/steam_api.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#include "steamclient_private.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#define SDKVER_102
|
|
#include "struct_converters.h"
|
|
#include "cppISteamFriends_SteamFriends004.h"
|
|
|
|
struct cppISteamFriends_SteamFriends004
|
|
{
|
|
#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 int32_t GetFriendAvatar( CSteamID, int32_t ) = 0;
|
|
virtual bool GetFriendGamePlayed( CSteamID, uint64_t *, uint32_t *, uint16_t *, uint16_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 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;
|
|
#endif /* __cplusplus */
|
|
};
|
|
|
|
void cppISteamFriends_SteamFriends004_GetPersonaName( struct cppISteamFriends_SteamFriends004_GetPersonaName_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetPersonaName( );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_SetPersonaName( struct cppISteamFriends_SteamFriends004_SetPersonaName_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
iface->SetPersonaName( params->pchPersonaName );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetPersonaState( struct cppISteamFriends_SteamFriends004_GetPersonaState_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetPersonaState( );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendCount( struct cppISteamFriends_SteamFriends004_GetFriendCount_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetFriendCount( params->iFriendFlags );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendByIndex( struct cppISteamFriends_SteamFriends004_GetFriendByIndex_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
*params->_ret = iface->GetFriendByIndex( params->iFriend, params->iFriendFlags );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendRelationship( struct cppISteamFriends_SteamFriends004_GetFriendRelationship_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetFriendRelationship( params->steamIDFriend );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendPersonaState( struct cppISteamFriends_SteamFriends004_GetFriendPersonaState_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetFriendPersonaState( params->steamIDFriend );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendPersonaName( struct cppISteamFriends_SteamFriends004_GetFriendPersonaName_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetFriendPersonaName( params->steamIDFriend );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendAvatar( struct cppISteamFriends_SteamFriends004_GetFriendAvatar_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetFriendAvatar( params->steamIDFriend, params->eAvatarSize );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendGamePlayed( struct cppISteamFriends_SteamFriends004_GetFriendGamePlayed_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetFriendGamePlayed( params->steamIDFriend, params->pulGameID, params->punGameIP, params->pusGamePort, params->pusQueryPort );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendPersonaNameHistory( struct cppISteamFriends_SteamFriends004_GetFriendPersonaNameHistory_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetFriendPersonaNameHistory( params->steamIDFriend, params->iPersonaName );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_HasFriend( struct cppISteamFriends_SteamFriends004_HasFriend_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->HasFriend( params->steamIDFriend, params->iFriendFlags );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetClanCount( struct cppISteamFriends_SteamFriends004_GetClanCount_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetClanCount( );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetClanByIndex( struct cppISteamFriends_SteamFriends004_GetClanByIndex_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
*params->_ret = iface->GetClanByIndex( params->iClan );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetClanName( struct cppISteamFriends_SteamFriends004_GetClanName_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetClanName( params->steamIDClan );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendCountFromSource( struct cppISteamFriends_SteamFriends004_GetFriendCountFromSource_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->GetFriendCountFromSource( params->steamIDSource );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_GetFriendFromSourceByIndex( struct cppISteamFriends_SteamFriends004_GetFriendFromSourceByIndex_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
*params->_ret = iface->GetFriendFromSourceByIndex( params->steamIDSource, params->iFriend );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_IsUserInSource( struct cppISteamFriends_SteamFriends004_IsUserInSource_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
params->_ret = iface->IsUserInSource( params->steamIDUser, params->steamIDSource );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_SetInGameVoiceSpeaking( struct cppISteamFriends_SteamFriends004_SetInGameVoiceSpeaking_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
iface->SetInGameVoiceSpeaking( params->steamIDUser, params->bSpeaking );
|
|
}
|
|
|
|
void cppISteamFriends_SteamFriends004_ActivateGameOverlay( struct cppISteamFriends_SteamFriends004_ActivateGameOverlay_params *params )
|
|
{
|
|
struct cppISteamFriends_SteamFriends004 *iface = (struct cppISteamFriends_SteamFriends004 *)params->linux_side;
|
|
iface->ActivateGameOverlay( params->pchDialog );
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|