2019-02-06 18:19:39 +03:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-05-02 11:43:23 +03:00
|
|
|
#define __cdecl
|
2019-02-06 18:19:39 +03:00
|
|
|
#include "steamworks_sdk_099y/steam_api.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma pop_macro("__cdecl")
|
2019-02-06 18:19:39 +03:00
|
|
|
#include "steamclient_private.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 18:05:29 +03:00
|
|
|
#define SDKVER_099y
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamUser_SteamUser008.h"
|
2023-09-24 00:44:45 +03:00
|
|
|
|
|
|
|
struct cppISteamUser_SteamUser008
|
|
|
|
{
|
|
|
|
#ifdef __cplusplus
|
|
|
|
virtual int32_t GetHSteamUser( ) = 0;
|
|
|
|
virtual bool BLoggedOn( ) = 0;
|
|
|
|
virtual CSteamID GetSteamID( ) = 0;
|
2023-09-28 20:02:26 +03:00
|
|
|
virtual int32_t InitiateGameConnection( void *, int32_t, CSteamID, CGameID *, uint32_t, uint16_t, bool, void *, int32_t ) = 0;
|
2023-09-24 00:44:45 +03:00
|
|
|
virtual void TerminateGameConnection( uint32_t, uint16_t ) = 0;
|
|
|
|
virtual void TrackAppUsageEvent( CGameID, int32_t, const char * ) = 0;
|
|
|
|
virtual void RefreshSteam2Login( ) = 0;
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
};
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUser_SteamUser008_GetHSteamUser( struct cppISteamUser_SteamUser008_GetHSteamUser_params *params )
|
2019-02-06 18:19:39 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUser_SteamUser008 *iface = (struct cppISteamUser_SteamUser008 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetHSteamUser( );
|
2019-02-06 18:19:39 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUser_SteamUser008_BLoggedOn( struct cppISteamUser_SteamUser008_BLoggedOn_params *params )
|
2019-02-06 18:19:39 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUser_SteamUser008 *iface = (struct cppISteamUser_SteamUser008 *)params->linux_side;
|
|
|
|
params->_ret = iface->BLoggedOn( );
|
2019-02-06 18:19:39 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUser_SteamUser008_GetSteamID( struct cppISteamUser_SteamUser008_GetSteamID_params *params )
|
2019-02-06 18:19:39 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUser_SteamUser008 *iface = (struct cppISteamUser_SteamUser008 *)params->linux_side;
|
|
|
|
*params->_ret = iface->GetSteamID( );
|
2019-02-06 18:19:39 +03:00
|
|
|
}
|
|
|
|
|
2023-09-28 20:02:26 +03:00
|
|
|
void cppISteamUser_SteamUser008_InitiateGameConnection( struct cppISteamUser_SteamUser008_InitiateGameConnection_params *params )
|
|
|
|
{
|
|
|
|
struct cppISteamUser_SteamUser008 *iface = (struct cppISteamUser_SteamUser008 *)params->linux_side;
|
|
|
|
params->_ret = iface->InitiateGameConnection( params->pBlob, params->cbMaxBlob, params->steamID, ¶ms->gameID, params->unIPServer, params->usPortServer, params->bSecure, params->pvSteam2GetEncryptionKey, params->cbSteam2GetEncryptionKey );
|
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUser_SteamUser008_TerminateGameConnection( struct cppISteamUser_SteamUser008_TerminateGameConnection_params *params )
|
2019-02-06 18:19:39 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUser_SteamUser008 *iface = (struct cppISteamUser_SteamUser008 *)params->linux_side;
|
|
|
|
iface->TerminateGameConnection( params->unIPServer, params->usPortServer );
|
2019-02-06 18:19:39 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUser_SteamUser008_TrackAppUsageEvent( struct cppISteamUser_SteamUser008_TrackAppUsageEvent_params *params )
|
2019-02-06 18:19:39 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUser_SteamUser008 *iface = (struct cppISteamUser_SteamUser008 *)params->linux_side;
|
|
|
|
iface->TrackAppUsageEvent( params->gameID, params->eAppUsageEvent, params->pchExtraInfo );
|
2019-02-06 18:19:39 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUser_SteamUser008_RefreshSteam2Login( struct cppISteamUser_SteamUser008_RefreshSteam2Login_params *params )
|
2019-02-06 18:19:39 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUser_SteamUser008 *iface = (struct cppISteamUser_SteamUser008 *)params->linux_side;
|
|
|
|
iface->RefreshSteam2Login( );
|
2019-02-06 18:19:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|