Proton/lsteamclient/cppISteamUser_SteamUser013.cpp

143 lines
6.8 KiB
C++
Raw Normal View History

2018-01-18 19:24:05 +03:00
#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
2018-01-18 19:24:05 +03:00
#include "steamworks_sdk_110/steam_api.h"
#pragma pop_macro("__cdecl")
#include "steamclient_private.h"
2018-01-18 19:24:05 +03:00
#ifdef __cplusplus
extern "C" {
#endif
#define SDKVER_110
#include "struct_converters.h"
#include "cppISteamUser_SteamUser013.h"
struct cppISteamUser_SteamUser013
{
#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;
#endif /* __cplusplus */
};
void cppISteamUser_SteamUser013_GetHSteamUser( struct cppISteamUser_SteamUser013_GetHSteamUser_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->GetHSteamUser( );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_BLoggedOn( struct cppISteamUser_SteamUser013_BLoggedOn_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->BLoggedOn( );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_GetSteamID( struct cppISteamUser_SteamUser013_GetSteamID_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
*params->_ret = iface->GetSteamID( );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_InitiateGameConnection( struct cppISteamUser_SteamUser013_InitiateGameConnection_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->InitiateGameConnection( params->pAuthBlob, params->cbMaxAuthBlob, params->steamIDGameServer, params->unIPServer, params->usPortServer, params->bSecure );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_TerminateGameConnection( struct cppISteamUser_SteamUser013_TerminateGameConnection_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
iface->TerminateGameConnection( params->unIPServer, params->usPortServer );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_TrackAppUsageEvent( struct cppISteamUser_SteamUser013_TrackAppUsageEvent_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
iface->TrackAppUsageEvent( params->gameID, params->eAppUsageEvent, params->pchExtraInfo );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_GetUserDataFolder( struct cppISteamUser_SteamUser013_GetUserDataFolder_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->GetUserDataFolder( params->pchBuffer, params->cubBuffer );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_StartVoiceRecording( struct cppISteamUser_SteamUser013_StartVoiceRecording_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
iface->StartVoiceRecording( );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_StopVoiceRecording( struct cppISteamUser_SteamUser013_StopVoiceRecording_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
iface->StopVoiceRecording( );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_GetAvailableVoice( struct cppISteamUser_SteamUser013_GetAvailableVoice_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->GetAvailableVoice( params->pcbCompressed, params->pcbUncompressed );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_GetVoice( struct cppISteamUser_SteamUser013_GetVoice_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->GetVoice( params->bWantCompressed, params->pDestBuffer, params->cbDestBufferSize, params->nBytesWritten, params->bWantUncompressed, params->pUncompressedDestBuffer, params->cbUncompressedDestBufferSize, params->nUncompressBytesWritten );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_DecompressVoice( struct cppISteamUser_SteamUser013_DecompressVoice_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->DecompressVoice( params->pCompressed, params->cbCompressed, params->pDestBuffer, params->cbDestBufferSize, params->nBytesWritten );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_GetAuthSessionTicket( struct cppISteamUser_SteamUser013_GetAuthSessionTicket_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->GetAuthSessionTicket( params->pTicket, params->cbMaxTicket, params->pcbTicket );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_BeginAuthSession( struct cppISteamUser_SteamUser013_BeginAuthSession_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->BeginAuthSession( params->pAuthTicket, params->cbAuthTicket, params->steamID );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_EndAuthSession( struct cppISteamUser_SteamUser013_EndAuthSession_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
iface->EndAuthSession( params->steamID );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_CancelAuthTicket( struct cppISteamUser_SteamUser013_CancelAuthTicket_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
iface->CancelAuthTicket( params->hAuthTicket );
2018-01-18 19:24:05 +03:00
}
void cppISteamUser_SteamUser013_UserHasLicenseForApp( struct cppISteamUser_SteamUser013_UserHasLicenseForApp_params *params )
2018-01-18 19:24:05 +03:00
{
struct cppISteamUser_SteamUser013 *iface = (struct cppISteamUser_SteamUser013 *)params->linux_side;
params->_ret = iface->UserHasLicenseForApp( params->steamID, params->appID );
2018-01-18 19:24:05 +03:00
}
#ifdef __cplusplus
}
#endif