mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
|
//====== Copyright <20> 1996-2014 Valve Corporation, All rights reserved. =======
|
|||
|
//
|
|||
|
// Purpose: interface to Steam Video
|
|||
|
//
|
|||
|
//=============================================================================
|
|||
|
|
|||
|
#ifndef ISTEAMVIDEO_H
|
|||
|
#define ISTEAMVIDEO_H
|
|||
|
#ifdef _WIN32
|
|||
|
#pragma once
|
|||
|
#endif
|
|||
|
|
|||
|
#include "isteamclient.h"
|
|||
|
|
|||
|
// callbacks
|
|||
|
#if defined( VALVE_CALLBACK_PACK_SMALL )
|
|||
|
#pragma pack( push, 4 )
|
|||
|
#elif defined( VALVE_CALLBACK_PACK_LARGE )
|
|||
|
#pragma pack( push, 8 )
|
|||
|
#else
|
|||
|
#error isteamclient.h must be included
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
// Purpose: Steam Video api
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
class ISteamVideo
|
|||
|
{
|
|||
|
public:
|
|||
|
|
|||
|
// Get a URL suitable for streaming the given Video app ID's video
|
|||
|
virtual void GetVideoURL( AppId_t unVideoAppID ) = 0;
|
|||
|
|
|||
|
};
|
|||
|
|
|||
|
#define STEAMVIDEO_INTERFACE_VERSION "STEAMVIDEO_INTERFACE_V001"
|
|||
|
|
|||
|
DEFINE_CALLBACK( GetVideoURLResult_t, k_iClientVideoCallbacks + 11 )
|
|||
|
CALLBACK_MEMBER( 0, EResult, m_eResult )
|
|||
|
CALLBACK_MEMBER( 1, AppId_t, m_unVideoAppID )
|
|||
|
CALLBACK_MEMBER( 2, char, m_rgchURL[256] )
|
|||
|
END_DEFINE_CALLBACK_1()
|
|||
|
|
|||
|
|
|||
|
#pragma pack( pop )
|
|||
|
|
|||
|
|
|||
|
#endif // ISTEAMVIDEO_H
|