2018-01-18 22:29:49 +03:00
|
|
|
#include "vrclient_private.h"
|
|
|
|
#include "vrclient_defs.h"
|
|
|
|
#include "openvr_v1.0.2/openvr.h"
|
|
|
|
using namespace vr;
|
|
|
|
extern "C" {
|
|
|
|
#include "struct_converters.h"
|
|
|
|
}
|
|
|
|
#include "cppIVRSettings_IVRSettings_001.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-09-28 11:22:41 +03:00
|
|
|
|
|
|
|
struct cppIVRSettings_IVRSettings_001
|
|
|
|
{
|
|
|
|
#ifdef __cplusplus
|
|
|
|
virtual const char * GetSettingsErrorNameFromEnum( uint32_t ) = 0;
|
|
|
|
virtual bool Sync( bool, uint32_t * ) = 0;
|
|
|
|
virtual bool GetBool( const char *, const char *, bool, uint32_t * ) = 0;
|
|
|
|
virtual void SetBool( const char *, const char *, bool, uint32_t * ) = 0;
|
|
|
|
virtual int32_t GetInt32( const char *, const char *, int32_t, uint32_t * ) = 0;
|
|
|
|
virtual void SetInt32( const char *, const char *, int32_t, uint32_t * ) = 0;
|
|
|
|
virtual float GetFloat( const char *, const char *, float, uint32_t * ) = 0;
|
|
|
|
virtual void SetFloat( const char *, const char *, float, uint32_t * ) = 0;
|
|
|
|
virtual void GetString( const char *, const char *, char *, uint32_t, const char *, uint32_t * ) = 0;
|
|
|
|
virtual void SetString( const char *, const char *, const char *, uint32_t * ) = 0;
|
|
|
|
virtual void RemoveSection( const char *, uint32_t * ) = 0;
|
|
|
|
virtual void RemoveKeyInSection( const char *, const char *, uint32_t * ) = 0;
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
};
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_GetSettingsErrorNameFromEnum( struct cppIVRSettings_IVRSettings_001_GetSettingsErrorNameFromEnum_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetSettingsErrorNameFromEnum( params->eError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_Sync( struct cppIVRSettings_IVRSettings_001_Sync_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
params->_ret = iface->Sync( params->bForce, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_GetBool( struct cppIVRSettings_IVRSettings_001_GetBool_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetBool( params->pchSection, params->pchSettingsKey, params->bDefaultValue, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_SetBool( struct cppIVRSettings_IVRSettings_001_SetBool_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
iface->SetBool( params->pchSection, params->pchSettingsKey, params->bValue, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_GetInt32( struct cppIVRSettings_IVRSettings_001_GetInt32_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetInt32( params->pchSection, params->pchSettingsKey, params->nDefaultValue, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_SetInt32( struct cppIVRSettings_IVRSettings_001_SetInt32_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
iface->SetInt32( params->pchSection, params->pchSettingsKey, params->nValue, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_GetFloat( struct cppIVRSettings_IVRSettings_001_GetFloat_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFloat( params->pchSection, params->pchSettingsKey, params->flDefaultValue, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_SetFloat( struct cppIVRSettings_IVRSettings_001_SetFloat_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
iface->SetFloat( params->pchSection, params->pchSettingsKey, params->flValue, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_GetString( struct cppIVRSettings_IVRSettings_001_GetString_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
iface->GetString( params->pchSection, params->pchSettingsKey, params->pchValue, params->unValueLen, params->pchDefaultValue, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_SetString( struct cppIVRSettings_IVRSettings_001_SetString_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
iface->SetString( params->pchSection, params->pchSettingsKey, params->pchValue, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_RemoveSection( struct cppIVRSettings_IVRSettings_001_RemoveSection_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
iface->RemoveSection( params->pchSection, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_RemoveKeyInSection( struct cppIVRSettings_IVRSettings_001_RemoveKeyInSection_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRSettings_IVRSettings_001 *iface = (struct cppIVRSettings_IVRSettings_001 *)params->linux_side;
|
|
|
|
iface->RemoveKeyInSection( params->pchSection, params->pchSettingsKey, params->peError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|