mirror of
https://github.com/ValveSoftware/Proton
synced 2025-08-31 06:35:23 +00:00
@@ -11,109 +11,158 @@ extern "C" {
|
||||
#define SDKVER_112
|
||||
#include "struct_converters.h"
|
||||
#include "cppISteamUser_SteamUser014.h"
|
||||
|
||||
struct cppISteamUser_SteamUser014
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
virtual int32_t GetHSteamUser( ) = 0;
|
||||
virtual bool BLoggedOn( ) = 0;
|
||||
virtual CSteamID GetSteamID( ) = 0;
|
||||
virtual int32_t InitiateGameConnection( void *, int32_t, CSteamID, uint32_t, uint16_t, bool ) = 0;
|
||||
virtual void TerminateGameConnection( uint32_t, uint16_t ) = 0;
|
||||
virtual void TrackAppUsageEvent( CGameID, int32_t, const char * ) = 0;
|
||||
virtual bool GetUserDataFolder( char *, int32_t ) = 0;
|
||||
virtual void StartVoiceRecording( ) = 0;
|
||||
virtual void StopVoiceRecording( ) = 0;
|
||||
virtual uint32_t GetAvailableVoice( uint32_t *, uint32_t * ) = 0;
|
||||
virtual uint32_t GetVoice( bool, void *, uint32_t, uint32_t *, bool, void *, uint32_t, uint32_t * ) = 0;
|
||||
virtual uint32_t DecompressVoice( const void *, uint32_t, void *, uint32_t, uint32_t * ) = 0;
|
||||
virtual uint32_t GetAuthSessionTicket( void *, int32_t, uint32_t * ) = 0;
|
||||
virtual uint32_t BeginAuthSession( const void *, int32_t, CSteamID ) = 0;
|
||||
virtual void EndAuthSession( CSteamID ) = 0;
|
||||
virtual void CancelAuthTicket( uint32_t ) = 0;
|
||||
virtual uint32_t UserHasLicenseForApp( CSteamID, uint32_t ) = 0;
|
||||
virtual bool BIsBehindNAT( ) = 0;
|
||||
virtual void AdvertiseGame( CSteamID, uint32_t, uint16_t ) = 0;
|
||||
virtual uint64_t RequestEncryptedAppTicket( void *, int32_t ) = 0;
|
||||
virtual bool GetEncryptedAppTicket( void *, int32_t, uint32_t * ) = 0;
|
||||
#endif /* __cplusplus */
|
||||
};
|
||||
|
||||
void cppISteamUser_SteamUser014_GetHSteamUser( struct cppISteamUser_SteamUser014_GetHSteamUser_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->GetHSteamUser( );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->GetHSteamUser( );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_BLoggedOn( struct cppISteamUser_SteamUser014_BLoggedOn_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->BLoggedOn( );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->BLoggedOn( );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_GetSteamID( struct cppISteamUser_SteamUser014_GetSteamID_params *params )
|
||||
{
|
||||
*params->_ret = ((ISteamUser*)params->linux_side)->GetSteamID( );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
*params->_ret = iface->GetSteamID( );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_InitiateGameConnection( struct cppISteamUser_SteamUser014_InitiateGameConnection_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->InitiateGameConnection( (void *)params->pAuthBlob, (int)params->cbMaxAuthBlob, (CSteamID)params->steamIDGameServer, (uint32)params->unIPServer, (uint16)params->usPortServer, (bool)params->bSecure );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->InitiateGameConnection( params->pAuthBlob, params->cbMaxAuthBlob, params->steamIDGameServer, params->unIPServer, params->usPortServer, params->bSecure );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_TerminateGameConnection( struct cppISteamUser_SteamUser014_TerminateGameConnection_params *params )
|
||||
{
|
||||
((ISteamUser*)params->linux_side)->TerminateGameConnection( (uint32)params->unIPServer, (uint16)params->usPortServer );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
iface->TerminateGameConnection( params->unIPServer, params->usPortServer );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_TrackAppUsageEvent( struct cppISteamUser_SteamUser014_TrackAppUsageEvent_params *params )
|
||||
{
|
||||
((ISteamUser*)params->linux_side)->TrackAppUsageEvent( (CGameID)params->gameID, (int)params->eAppUsageEvent, (const char *)params->pchExtraInfo );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
iface->TrackAppUsageEvent( params->gameID, params->eAppUsageEvent, params->pchExtraInfo );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_GetUserDataFolder( struct cppISteamUser_SteamUser014_GetUserDataFolder_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->GetUserDataFolder( (char *)params->pchBuffer, (int)params->cubBuffer );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->GetUserDataFolder( params->pchBuffer, params->cubBuffer );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_StartVoiceRecording( struct cppISteamUser_SteamUser014_StartVoiceRecording_params *params )
|
||||
{
|
||||
((ISteamUser*)params->linux_side)->StartVoiceRecording( );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
iface->StartVoiceRecording( );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_StopVoiceRecording( struct cppISteamUser_SteamUser014_StopVoiceRecording_params *params )
|
||||
{
|
||||
((ISteamUser*)params->linux_side)->StopVoiceRecording( );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
iface->StopVoiceRecording( );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_GetAvailableVoice( struct cppISteamUser_SteamUser014_GetAvailableVoice_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->GetAvailableVoice( (uint32 *)params->pcbCompressed, (uint32 *)params->pcbUncompressed );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->GetAvailableVoice( params->pcbCompressed, params->pcbUncompressed );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_GetVoice( struct cppISteamUser_SteamUser014_GetVoice_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->GetVoice( (bool)params->bWantCompressed, (void *)params->pDestBuffer, (uint32)params->cbDestBufferSize, (uint32 *)params->nBytesWritten, (bool)params->bWantUncompressed, (void *)params->pUncompressedDestBuffer, (uint32)params->cbUncompressedDestBufferSize, (uint32 *)params->nUncompressBytesWritten );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->GetVoice( params->bWantCompressed, params->pDestBuffer, params->cbDestBufferSize, params->nBytesWritten, params->bWantUncompressed, params->pUncompressedDestBuffer, params->cbUncompressedDestBufferSize, params->nUncompressBytesWritten );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_DecompressVoice( struct cppISteamUser_SteamUser014_DecompressVoice_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->DecompressVoice( (const void *)params->pCompressed, (uint32)params->cbCompressed, (void *)params->pDestBuffer, (uint32)params->cbDestBufferSize, (uint32 *)params->nBytesWritten );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->DecompressVoice( params->pCompressed, params->cbCompressed, params->pDestBuffer, params->cbDestBufferSize, params->nBytesWritten );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_GetAuthSessionTicket( struct cppISteamUser_SteamUser014_GetAuthSessionTicket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->GetAuthSessionTicket( (void *)params->pTicket, (int)params->cbMaxTicket, (uint32 *)params->pcbTicket );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->GetAuthSessionTicket( params->pTicket, params->cbMaxTicket, params->pcbTicket );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_BeginAuthSession( struct cppISteamUser_SteamUser014_BeginAuthSession_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->BeginAuthSession( (const void *)params->pAuthTicket, (int)params->cbAuthTicket, (CSteamID)params->steamID );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->BeginAuthSession( params->pAuthTicket, params->cbAuthTicket, params->steamID );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_EndAuthSession( struct cppISteamUser_SteamUser014_EndAuthSession_params *params )
|
||||
{
|
||||
((ISteamUser*)params->linux_side)->EndAuthSession( (CSteamID)params->steamID );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
iface->EndAuthSession( params->steamID );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_CancelAuthTicket( struct cppISteamUser_SteamUser014_CancelAuthTicket_params *params )
|
||||
{
|
||||
((ISteamUser*)params->linux_side)->CancelAuthTicket( (HAuthTicket)params->hAuthTicket );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
iface->CancelAuthTicket( params->hAuthTicket );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_UserHasLicenseForApp( struct cppISteamUser_SteamUser014_UserHasLicenseForApp_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->UserHasLicenseForApp( (CSteamID)params->steamID, (AppId_t)params->appID );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->UserHasLicenseForApp( params->steamID, params->appID );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_BIsBehindNAT( struct cppISteamUser_SteamUser014_BIsBehindNAT_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->BIsBehindNAT( );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->BIsBehindNAT( );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_AdvertiseGame( struct cppISteamUser_SteamUser014_AdvertiseGame_params *params )
|
||||
{
|
||||
((ISteamUser*)params->linux_side)->AdvertiseGame( (CSteamID)params->steamIDGameServer, (uint32)params->unIPServer, (uint16)params->usPortServer );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
iface->AdvertiseGame( params->steamIDGameServer, params->unIPServer, params->usPortServer );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_RequestEncryptedAppTicket( struct cppISteamUser_SteamUser014_RequestEncryptedAppTicket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->RequestEncryptedAppTicket( (void *)params->pDataToInclude, (int)params->cbDataToInclude );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->RequestEncryptedAppTicket( params->pDataToInclude, params->cbDataToInclude );
|
||||
}
|
||||
|
||||
void cppISteamUser_SteamUser014_GetEncryptedAppTicket( struct cppISteamUser_SteamUser014_GetEncryptedAppTicket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamUser*)params->linux_side)->GetEncryptedAppTicket( (void *)params->pTicket, (int)params->cbMaxTicket, (uint32 *)params->pcbTicket );
|
||||
struct cppISteamUser_SteamUser014 *iface = (struct cppISteamUser_SteamUser014 *)params->linux_side;
|
||||
params->_ret = iface->GetEncryptedAppTicket( params->pTicket, params->cbMaxTicket, params->pcbTicket );
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user