mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-09 16:07:55 +01:00
lsteamclient: Use manual methods instead of codegen for callbacks.
CW-Bug-Id: #22729
This commit is contained in:
parent
fce62d2dfd
commit
1cf15635ac
14 changed files with 208 additions and 146 deletions
102
lsteamclient/cppISteamUtils_SteamUtils002.hpp
Normal file
102
lsteamclient/cppISteamUtils_SteamUtils002.hpp
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
/* This file is auto-generated, do not edit. */
|
||||
#include "unix_private.h"
|
||||
#include "cppISteamUtils_SteamUtils002.h"
|
||||
|
||||
struct u_ISteamUtils_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 */
|
||||
};
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetSecondsSinceAppActive( struct cppISteamUtils_SteamUtils002_GetSecondsSinceAppActive_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetSecondsSinceAppActive( );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetSecondsSinceComputerActive( struct cppISteamUtils_SteamUtils002_GetSecondsSinceComputerActive_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetSecondsSinceComputerActive( );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetConnectedUniverse( struct cppISteamUtils_SteamUtils002_GetConnectedUniverse_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetConnectedUniverse( );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetServerRealTime( struct cppISteamUtils_SteamUtils002_GetServerRealTime_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetServerRealTime( );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetIPCountry( struct cppISteamUtils_SteamUtils002_GetIPCountry_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetIPCountry( );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetImageSize( struct cppISteamUtils_SteamUtils002_GetImageSize_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetImageSize( params->iImage, params->pnWidth, params->pnHeight );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetImageRGBA( struct cppISteamUtils_SteamUtils002_GetImageRGBA_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetImageRGBA( params->iImage, params->pubDest, params->nDestBufferSize );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetCSERIPPort( struct cppISteamUtils_SteamUtils002_GetCSERIPPort_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetCSERIPPort( params->unIP, params->usPort );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetCurrentBatteryPower( struct cppISteamUtils_SteamUtils002_GetCurrentBatteryPower_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetCurrentBatteryPower( );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetAppID( struct cppISteamUtils_SteamUtils002_GetAppID_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetAppID( );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_SetOverlayNotificationPosition( struct cppISteamUtils_SteamUtils002_SetOverlayNotificationPosition_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
iface->SetOverlayNotificationPosition( params->eNotificationPosition );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_IsAPICallCompleted( struct cppISteamUtils_SteamUtils002_IsAPICallCompleted_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->IsAPICallCompleted( params->hSteamAPICall, params->pbFailed );
|
||||
}
|
||||
|
||||
void cppISteamUtils_SteamUtils002_GetAPICallFailureReason( struct cppISteamUtils_SteamUtils002_GetAPICallFailureReason_params *params )
|
||||
{
|
||||
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
||||
params->_ret = iface->GetAPICallFailureReason( params->hSteamAPICall );
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue