lsteamclient: Wrap parameters in structures.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-09-27 14:34:23 +02:00 committed by Arkadiusz Hiler
parent e4d75b2fb0
commit 6b21c32d2a
439 changed files with 109952 additions and 43685 deletions

View file

@ -12,231 +12,175 @@ extern "C" {
#define SDKVER_149
#include "struct_converters.h"
#include "cppISteamUtils_SteamUtils009.h"
uint32 cppISteamUtils_SteamUtils009_GetSecondsSinceAppActive(void *linux_side)
void cppISteamUtils_SteamUtils009_GetSecondsSinceAppActive( struct cppISteamUtils_SteamUtils009_GetSecondsSinceAppActive_params *params )
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetSecondsSinceAppActive();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetSecondsSinceAppActive( );
}
uint32 cppISteamUtils_SteamUtils009_GetSecondsSinceComputerActive(void *linux_side)
void cppISteamUtils_SteamUtils009_GetSecondsSinceComputerActive( struct cppISteamUtils_SteamUtils009_GetSecondsSinceComputerActive_params *params )
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetSecondsSinceComputerActive();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetSecondsSinceComputerActive( );
}
EUniverse cppISteamUtils_SteamUtils009_GetConnectedUniverse(void *linux_side)
void cppISteamUtils_SteamUtils009_GetConnectedUniverse( struct cppISteamUtils_SteamUtils009_GetConnectedUniverse_params *params )
{
EUniverse _ret;
_ret = ((ISteamUtils*)linux_side)->GetConnectedUniverse();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetConnectedUniverse( );
}
uint32 cppISteamUtils_SteamUtils009_GetServerRealTime(void *linux_side)
void cppISteamUtils_SteamUtils009_GetServerRealTime( struct cppISteamUtils_SteamUtils009_GetServerRealTime_params *params )
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetServerRealTime();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetServerRealTime( );
}
const char * cppISteamUtils_SteamUtils009_GetIPCountry(void *linux_side)
void cppISteamUtils_SteamUtils009_GetIPCountry( struct cppISteamUtils_SteamUtils009_GetIPCountry_params *params )
{
const char *_ret;
_ret = ((ISteamUtils*)linux_side)->GetIPCountry();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetIPCountry( );
}
bool cppISteamUtils_SteamUtils009_GetImageSize(void *linux_side, int iImage, uint32 *pnWidth, uint32 *pnHeight)
void cppISteamUtils_SteamUtils009_GetImageSize( struct cppISteamUtils_SteamUtils009_GetImageSize_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetImageSize((int)iImage, (uint32 *)pnWidth, (uint32 *)pnHeight);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetImageSize( (int)params->iImage, (uint32 *)params->pnWidth, (uint32 *)params->pnHeight );
}
bool cppISteamUtils_SteamUtils009_GetImageRGBA(void *linux_side, int iImage, uint8 *pubDest, int nDestBufferSize)
void cppISteamUtils_SteamUtils009_GetImageRGBA( struct cppISteamUtils_SteamUtils009_GetImageRGBA_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetImageRGBA((int)iImage, (uint8 *)pubDest, (int)nDestBufferSize);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetImageRGBA( (int)params->iImage, (uint8 *)params->pubDest, (int)params->nDestBufferSize );
}
bool cppISteamUtils_SteamUtils009_GetCSERIPPort(void *linux_side, uint32 *unIP, uint16 *usPort)
void cppISteamUtils_SteamUtils009_GetCSERIPPort( struct cppISteamUtils_SteamUtils009_GetCSERIPPort_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetCSERIPPort((uint32 *)unIP, (uint16 *)usPort);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetCSERIPPort( (uint32 *)params->unIP, (uint16 *)params->usPort );
}
uint8 cppISteamUtils_SteamUtils009_GetCurrentBatteryPower(void *linux_side)
void cppISteamUtils_SteamUtils009_GetCurrentBatteryPower( struct cppISteamUtils_SteamUtils009_GetCurrentBatteryPower_params *params )
{
uint8 _ret;
_ret = ((ISteamUtils*)linux_side)->GetCurrentBatteryPower();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetCurrentBatteryPower( );
}
uint32 cppISteamUtils_SteamUtils009_GetAppID(void *linux_side)
void cppISteamUtils_SteamUtils009_GetAppID( struct cppISteamUtils_SteamUtils009_GetAppID_params *params )
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetAppID();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetAppID( );
}
void cppISteamUtils_SteamUtils009_SetOverlayNotificationPosition(void *linux_side, ENotificationPosition eNotificationPosition)
void cppISteamUtils_SteamUtils009_SetOverlayNotificationPosition( struct cppISteamUtils_SteamUtils009_SetOverlayNotificationPosition_params *params )
{
((ISteamUtils*)linux_side)->SetOverlayNotificationPosition((ENotificationPosition)eNotificationPosition);
((ISteamUtils*)params->linux_side)->SetOverlayNotificationPosition( (ENotificationPosition)params->eNotificationPosition );
}
bool cppISteamUtils_SteamUtils009_IsAPICallCompleted(void *linux_side, SteamAPICall_t hSteamAPICall, bool *pbFailed)
void cppISteamUtils_SteamUtils009_IsAPICallCompleted( struct cppISteamUtils_SteamUtils009_IsAPICallCompleted_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsAPICallCompleted((SteamAPICall_t)hSteamAPICall, (bool *)pbFailed);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->IsAPICallCompleted( (SteamAPICall_t)params->hSteamAPICall, (bool *)params->pbFailed );
}
ESteamAPICallFailure cppISteamUtils_SteamUtils009_GetAPICallFailureReason(void *linux_side, SteamAPICall_t hSteamAPICall)
void cppISteamUtils_SteamUtils009_GetAPICallFailureReason( struct cppISteamUtils_SteamUtils009_GetAPICallFailureReason_params *params )
{
ESteamAPICallFailure _ret;
_ret = ((ISteamUtils*)linux_side)->GetAPICallFailureReason((SteamAPICall_t)hSteamAPICall);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetAPICallFailureReason( (SteamAPICall_t)params->hSteamAPICall );
}
bool cppISteamUtils_SteamUtils009_GetAPICallResult(void *linux_side, SteamAPICall_t hSteamAPICall, void *pCallback, int cubCallback, int iCallbackExpected, bool *pbFailed)
void cppISteamUtils_SteamUtils009_GetAPICallResult( struct cppISteamUtils_SteamUtils009_GetAPICallResult_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetAPICallResult((SteamAPICall_t)hSteamAPICall, (void *)pCallback, (int)cubCallback, (int)iCallbackExpected, (bool *)pbFailed);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetAPICallResult( (SteamAPICall_t)params->hSteamAPICall, (void *)params->pCallback, (int)params->cubCallback, (int)params->iCallbackExpected, (bool *)params->pbFailed );
}
void cppISteamUtils_SteamUtils009_RunFrame(void *linux_side)
void cppISteamUtils_SteamUtils009_RunFrame( struct cppISteamUtils_SteamUtils009_RunFrame_params *params )
{
((ISteamUtils*)linux_side)->RunFrame();
((ISteamUtils*)params->linux_side)->RunFrame( );
}
uint32 cppISteamUtils_SteamUtils009_GetIPCCallCount(void *linux_side)
void cppISteamUtils_SteamUtils009_GetIPCCallCount( struct cppISteamUtils_SteamUtils009_GetIPCCallCount_params *params )
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetIPCCallCount();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetIPCCallCount( );
}
void cppISteamUtils_SteamUtils009_SetWarningMessageHook(void *linux_side, SteamAPIWarningMessageHook_t pFunction)
void cppISteamUtils_SteamUtils009_SetWarningMessageHook( struct cppISteamUtils_SteamUtils009_SetWarningMessageHook_params *params )
{
pFunction = (SteamAPIWarningMessageHook_t)manual_convert_SteamAPIWarningMessageHook_t((void*)pFunction);
((ISteamUtils*)linux_side)->SetWarningMessageHook((SteamAPIWarningMessageHook_t)pFunction);
params->pFunction = (SteamAPIWarningMessageHook_t)manual_convert_SteamAPIWarningMessageHook_t( (void *)params->pFunction );
((ISteamUtils*)params->linux_side)->SetWarningMessageHook( (SteamAPIWarningMessageHook_t)params->pFunction );
}
bool cppISteamUtils_SteamUtils009_IsOverlayEnabled(void *linux_side)
void cppISteamUtils_SteamUtils009_IsOverlayEnabled( struct cppISteamUtils_SteamUtils009_IsOverlayEnabled_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsOverlayEnabled();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->IsOverlayEnabled( );
}
bool cppISteamUtils_SteamUtils009_BOverlayNeedsPresent(void *linux_side)
void cppISteamUtils_SteamUtils009_BOverlayNeedsPresent( struct cppISteamUtils_SteamUtils009_BOverlayNeedsPresent_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->BOverlayNeedsPresent();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->BOverlayNeedsPresent( );
}
SteamAPICall_t cppISteamUtils_SteamUtils009_CheckFileSignature(void *linux_side, const char *szFileName)
void cppISteamUtils_SteamUtils009_CheckFileSignature( struct cppISteamUtils_SteamUtils009_CheckFileSignature_params *params )
{
SteamAPICall_t _ret;
_ret = ((ISteamUtils*)linux_side)->CheckFileSignature((const char *)szFileName);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->CheckFileSignature( (const char *)params->szFileName );
}
bool cppISteamUtils_SteamUtils009_ShowGamepadTextInput(void *linux_side, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32 unCharMax, const char *pchExistingText)
void cppISteamUtils_SteamUtils009_ShowGamepadTextInput( struct cppISteamUtils_SteamUtils009_ShowGamepadTextInput_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->ShowGamepadTextInput((EGamepadTextInputMode)eInputMode, (EGamepadTextInputLineMode)eLineInputMode, (const char *)pchDescription, (uint32)unCharMax, (const char *)pchExistingText);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->ShowGamepadTextInput( (EGamepadTextInputMode)params->eInputMode, (EGamepadTextInputLineMode)params->eLineInputMode, (const char *)params->pchDescription, (uint32)params->unCharMax, (const char *)params->pchExistingText );
}
uint32 cppISteamUtils_SteamUtils009_GetEnteredGamepadTextLength(void *linux_side)
void cppISteamUtils_SteamUtils009_GetEnteredGamepadTextLength( struct cppISteamUtils_SteamUtils009_GetEnteredGamepadTextLength_params *params )
{
uint32 _ret;
_ret = ((ISteamUtils*)linux_side)->GetEnteredGamepadTextLength();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetEnteredGamepadTextLength( );
}
bool cppISteamUtils_SteamUtils009_GetEnteredGamepadTextInput(void *linux_side, char *pchText, uint32 cchText)
void cppISteamUtils_SteamUtils009_GetEnteredGamepadTextInput( struct cppISteamUtils_SteamUtils009_GetEnteredGamepadTextInput_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->GetEnteredGamepadTextInput((char *)pchText, (uint32)cchText);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetEnteredGamepadTextInput( (char *)params->pchText, (uint32)params->cchText );
}
const char * cppISteamUtils_SteamUtils009_GetSteamUILanguage(void *linux_side)
void cppISteamUtils_SteamUtils009_GetSteamUILanguage( struct cppISteamUtils_SteamUtils009_GetSteamUILanguage_params *params )
{
const char *_ret;
_ret = ((ISteamUtils*)linux_side)->GetSteamUILanguage();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetSteamUILanguage( );
}
bool cppISteamUtils_SteamUtils009_IsSteamRunningInVR(void *linux_side)
void cppISteamUtils_SteamUtils009_IsSteamRunningInVR( struct cppISteamUtils_SteamUtils009_IsSteamRunningInVR_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsSteamRunningInVR();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->IsSteamRunningInVR( );
}
void cppISteamUtils_SteamUtils009_SetOverlayNotificationInset(void *linux_side, int nHorizontalInset, int nVerticalInset)
void cppISteamUtils_SteamUtils009_SetOverlayNotificationInset( struct cppISteamUtils_SteamUtils009_SetOverlayNotificationInset_params *params )
{
((ISteamUtils*)linux_side)->SetOverlayNotificationInset((int)nHorizontalInset, (int)nVerticalInset);
((ISteamUtils*)params->linux_side)->SetOverlayNotificationInset( (int)params->nHorizontalInset, (int)params->nVerticalInset );
}
bool cppISteamUtils_SteamUtils009_IsSteamInBigPictureMode(void *linux_side)
void cppISteamUtils_SteamUtils009_IsSteamInBigPictureMode( struct cppISteamUtils_SteamUtils009_IsSteamInBigPictureMode_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsSteamInBigPictureMode();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->IsSteamInBigPictureMode( );
}
void cppISteamUtils_SteamUtils009_StartVRDashboard(void *linux_side)
void cppISteamUtils_SteamUtils009_StartVRDashboard( struct cppISteamUtils_SteamUtils009_StartVRDashboard_params *params )
{
((ISteamUtils*)linux_side)->StartVRDashboard();
((ISteamUtils*)params->linux_side)->StartVRDashboard( );
}
bool cppISteamUtils_SteamUtils009_IsVRHeadsetStreamingEnabled(void *linux_side)
void cppISteamUtils_SteamUtils009_IsVRHeadsetStreamingEnabled( struct cppISteamUtils_SteamUtils009_IsVRHeadsetStreamingEnabled_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsVRHeadsetStreamingEnabled();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->IsVRHeadsetStreamingEnabled( );
}
void cppISteamUtils_SteamUtils009_SetVRHeadsetStreamingEnabled(void *linux_side, bool bEnabled)
void cppISteamUtils_SteamUtils009_SetVRHeadsetStreamingEnabled( struct cppISteamUtils_SteamUtils009_SetVRHeadsetStreamingEnabled_params *params )
{
((ISteamUtils*)linux_side)->SetVRHeadsetStreamingEnabled((bool)bEnabled);
((ISteamUtils*)params->linux_side)->SetVRHeadsetStreamingEnabled( (bool)params->bEnabled );
}
bool cppISteamUtils_SteamUtils009_IsSteamChinaLauncher(void *linux_side)
void cppISteamUtils_SteamUtils009_IsSteamChinaLauncher( struct cppISteamUtils_SteamUtils009_IsSteamChinaLauncher_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->IsSteamChinaLauncher();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->IsSteamChinaLauncher( );
}
bool cppISteamUtils_SteamUtils009_InitFilterText(void *linux_side)
void cppISteamUtils_SteamUtils009_InitFilterText( struct cppISteamUtils_SteamUtils009_InitFilterText_params *params )
{
bool _ret;
_ret = ((ISteamUtils*)linux_side)->InitFilterText();
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->InitFilterText( );
}
int cppISteamUtils_SteamUtils009_FilterText(void *linux_side, char *pchOutFilteredText, uint32 nByteSizeOutFilteredText, const char *pchInputMessage, bool bLegalOnly)
void cppISteamUtils_SteamUtils009_FilterText( struct cppISteamUtils_SteamUtils009_FilterText_params *params )
{
int _ret;
_ret = ((ISteamUtils*)linux_side)->FilterText((char *)pchOutFilteredText, (uint32)nByteSizeOutFilteredText, (const char *)pchInputMessage, (bool)bLegalOnly);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->FilterText( (char *)params->pchOutFilteredText, (uint32)params->nByteSizeOutFilteredText, (const char *)params->pchInputMessage, (bool)params->bLegalOnly );
}
ESteamIPv6ConnectivityState cppISteamUtils_SteamUtils009_GetIPv6ConnectivityState(void *linux_side, ESteamIPv6ConnectivityProtocol eProtocol)
void cppISteamUtils_SteamUtils009_GetIPv6ConnectivityState( struct cppISteamUtils_SteamUtils009_GetIPv6ConnectivityState_params *params )
{
ESteamIPv6ConnectivityState _ret;
_ret = ((ISteamUtils*)linux_side)->GetIPv6ConnectivityState((ESteamIPv6ConnectivityProtocol)eProtocol);
return (_ret);
params->_ret = ((ISteamUtils*)params->linux_side)->GetIPv6ConnectivityState( (ESteamIPv6ConnectivityProtocol)params->eProtocol );
}
#ifdef __cplusplus