2018-01-18 10:24:05 -06:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 09:00:45 -05:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-05-02 10:43:23 +02:00
|
|
|
#define __cdecl
|
2023-09-18 16:58:31 +03:00
|
|
|
#include "steamworks_sdk_158/steam_api.h"
|
|
|
|
#include "steamworks_sdk_158/steamnetworkingtypes.h"
|
2019-08-16 09:00:45 -05:00
|
|
|
#pragma pop_macro("__cdecl")
|
2018-10-30 14:06:46 -05:00
|
|
|
#include "steamclient_private.h"
|
2018-01-18 10:24:05 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-09-18 16:58:31 +03:00
|
|
|
#define SDKVER_158
|
2019-02-26 09:05:29 -06:00
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamVideo_STEAMVIDEO_INTERFACE_V002.h"
|
2023-09-23 23:44:45 +02:00
|
|
|
|
|
|
|
struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002
|
|
|
|
{
|
|
|
|
#ifdef __cplusplus
|
|
|
|
virtual void GetVideoURL( uint32_t ) = 0;
|
|
|
|
virtual bool IsBroadcasting( int32_t * ) = 0;
|
|
|
|
virtual void GetOPFSettings( uint32_t ) = 0;
|
|
|
|
virtual bool GetOPFStringForApp( uint32_t, char *, int32_t * ) = 0;
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
};
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamVideo_STEAMVIDEO_INTERFACE_V002_GetVideoURL( struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002_GetVideoURL_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002 *iface = (struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002 *)params->linux_side;
|
|
|
|
iface->GetVideoURL( params->unVideoAppID );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamVideo_STEAMVIDEO_INTERFACE_V002_IsBroadcasting( struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002_IsBroadcasting_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002 *iface = (struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002 *)params->linux_side;
|
|
|
|
params->_ret = iface->IsBroadcasting( params->pnNumViewers );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamVideo_STEAMVIDEO_INTERFACE_V002_GetOPFSettings( struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002_GetOPFSettings_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002 *iface = (struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002 *)params->linux_side;
|
|
|
|
iface->GetOPFSettings( params->unVideoAppID );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamVideo_STEAMVIDEO_INTERFACE_V002_GetOPFStringForApp( struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002_GetOPFStringForApp_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002 *iface = (struct cppISteamVideo_STEAMVIDEO_INTERFACE_V002 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetOPFStringForApp( params->unVideoAppID, params->pchBuffer, params->pnBufferSize );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|