2018-01-18 19:24:05 +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
|
2018-01-18 19:24:05 +03:00
|
|
|
#include "steamworks_sdk_103/steam_api.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma pop_macro("__cdecl")
|
2018-10-30 22:06:46 +03:00
|
|
|
#include "steamclient_private.h"
|
2018-01-18 19:24:05 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 18:05:29 +03:00
|
|
|
#define SDKVER_103
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamUtils_SteamUtils002.h"
|
2023-09-24 00:44:45 +03:00
|
|
|
|
|
|
|
struct cppISteamUtils_SteamUtils002
|
|
|
|
{
|
|
|
|
#ifdef __cplusplus
|
|
|
|
virtual uint32_t GetSecondsSinceAppActive( ) = 0;
|
|
|
|
virtual uint32_t GetSecondsSinceComputerActive( ) = 0;
|
|
|
|
virtual uint32_t GetConnectedUniverse( ) = 0;
|
|
|
|
virtual uint32_t GetServerRealTime( ) = 0;
|
|
|
|
virtual const char * GetIPCountry( ) = 0;
|
|
|
|
virtual bool GetImageSize( int32_t, uint32_t *, uint32_t * ) = 0;
|
|
|
|
virtual bool GetImageRGBA( int32_t, uint8_t *, int32_t ) = 0;
|
|
|
|
virtual bool GetCSERIPPort( uint32_t *, uint16_t * ) = 0;
|
|
|
|
virtual uint8_t GetCurrentBatteryPower( ) = 0;
|
|
|
|
virtual uint32_t GetAppID( ) = 0;
|
|
|
|
virtual void SetOverlayNotificationPosition( uint32_t ) = 0;
|
|
|
|
virtual bool IsAPICallCompleted( uint64_t, bool * ) = 0;
|
|
|
|
virtual uint32_t GetAPICallFailureReason( uint64_t ) = 0;
|
|
|
|
virtual bool GetAPICallResult( uint64_t, void *, int32_t, int32_t, bool * ) = 0;
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
};
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetSecondsSinceAppActive( struct cppISteamUtils_SteamUtils002_GetSecondsSinceAppActive_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetSecondsSinceAppActive( );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetSecondsSinceComputerActive( struct cppISteamUtils_SteamUtils002_GetSecondsSinceComputerActive_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetSecondsSinceComputerActive( );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetConnectedUniverse( struct cppISteamUtils_SteamUtils002_GetConnectedUniverse_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetConnectedUniverse( );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetServerRealTime( struct cppISteamUtils_SteamUtils002_GetServerRealTime_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetServerRealTime( );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetIPCountry( struct cppISteamUtils_SteamUtils002_GetIPCountry_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetIPCountry( );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetImageSize( struct cppISteamUtils_SteamUtils002_GetImageSize_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetImageSize( params->iImage, params->pnWidth, params->pnHeight );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetImageRGBA( struct cppISteamUtils_SteamUtils002_GetImageRGBA_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetImageRGBA( params->iImage, params->pubDest, params->nDestBufferSize );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetCSERIPPort( struct cppISteamUtils_SteamUtils002_GetCSERIPPort_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetCSERIPPort( params->unIP, params->usPort );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetCurrentBatteryPower( struct cppISteamUtils_SteamUtils002_GetCurrentBatteryPower_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetCurrentBatteryPower( );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetAppID( struct cppISteamUtils_SteamUtils002_GetAppID_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetAppID( );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_SetOverlayNotificationPosition( struct cppISteamUtils_SteamUtils002_SetOverlayNotificationPosition_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
iface->SetOverlayNotificationPosition( params->eNotificationPosition );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_IsAPICallCompleted( struct cppISteamUtils_SteamUtils002_IsAPICallCompleted_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->IsAPICallCompleted( params->hSteamAPICall, params->pbFailed );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetAPICallFailureReason( struct cppISteamUtils_SteamUtils002_GetAPICallFailureReason_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetAPICallFailureReason( params->hSteamAPICall );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamUtils_SteamUtils002_GetAPICallResult( struct cppISteamUtils_SteamUtils002_GetAPICallResult_params *params )
|
2018-01-18 19:24:05 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamUtils_SteamUtils002 *iface = (struct cppISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, params->pCallback, params->cubCallback, params->iCallbackExpected, params->pbFailed );
|
2018-01-18 19:24:05 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|