Proton/lsteamclient/cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003.cpp

200 lines
13 KiB
C++
Raw Normal View History

2019-02-25 18:44:23 +03:00
#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
#include "steamworks_sdk_158/steam_api.h"
#include "steamworks_sdk_158/steamnetworkingtypes.h"
#pragma pop_macro("__cdecl")
2019-02-25 18:44:23 +03:00
#include "steamclient_private.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SDKVER_158
#include "struct_converters.h"
#include "cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003.h"
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003
{
#ifdef __cplusplus
virtual uint32_t CreateHTTPRequest( uint32_t, const char * ) = 0;
virtual bool SetHTTPRequestContextValue( uint32_t, uint64_t ) = 0;
virtual bool SetHTTPRequestNetworkActivityTimeout( uint32_t, uint32_t ) = 0;
virtual bool SetHTTPRequestHeaderValue( uint32_t, const char *, const char * ) = 0;
virtual bool SetHTTPRequestGetOrPostParameter( uint32_t, const char *, const char * ) = 0;
virtual bool SendHTTPRequest( uint32_t, uint64_t * ) = 0;
virtual bool SendHTTPRequestAndStreamResponse( uint32_t, uint64_t * ) = 0;
virtual bool DeferHTTPRequest( uint32_t ) = 0;
virtual bool PrioritizeHTTPRequest( uint32_t ) = 0;
virtual bool GetHTTPResponseHeaderSize( uint32_t, const char *, uint32_t * ) = 0;
virtual bool GetHTTPResponseHeaderValue( uint32_t, const char *, uint8_t *, uint32_t ) = 0;
virtual bool GetHTTPResponseBodySize( uint32_t, uint32_t * ) = 0;
virtual bool GetHTTPResponseBodyData( uint32_t, uint8_t *, uint32_t ) = 0;
virtual bool GetHTTPStreamingResponseBodyData( uint32_t, uint32_t, uint8_t *, uint32_t ) = 0;
virtual bool ReleaseHTTPRequest( uint32_t ) = 0;
virtual bool GetHTTPDownloadProgressPct( uint32_t, float * ) = 0;
virtual bool SetHTTPRequestRawPostBody( uint32_t, const char *, uint8_t *, uint32_t ) = 0;
virtual uint32_t CreateCookieContainer( bool ) = 0;
virtual bool ReleaseCookieContainer( uint32_t ) = 0;
virtual bool SetCookie( uint32_t, const char *, const char *, const char * ) = 0;
virtual bool SetHTTPRequestCookieContainer( uint32_t, uint32_t ) = 0;
virtual bool SetHTTPRequestUserAgentInfo( uint32_t, const char * ) = 0;
virtual bool SetHTTPRequestRequiresVerifiedCertificate( uint32_t, bool ) = 0;
virtual bool SetHTTPRequestAbsoluteTimeoutMS( uint32_t, uint32_t ) = 0;
virtual bool GetHTTPRequestWasTimedOut( uint32_t, bool * ) = 0;
#endif /* __cplusplus */
};
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_CreateHTTPRequest( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_CreateHTTPRequest_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->CreateHTTPRequest( params->eHTTPRequestMethod, params->pchAbsoluteURL );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestContextValue( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestContextValue_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestContextValue( params->hRequest, params->ulContextValue );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestNetworkActivityTimeout( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestNetworkActivityTimeout_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestNetworkActivityTimeout( params->hRequest, params->unTimeoutSeconds );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestHeaderValue( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestHeaderValue_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestHeaderValue( params->hRequest, params->pchHeaderName, params->pchHeaderValue );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestGetOrPostParameter( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestGetOrPostParameter_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestGetOrPostParameter( params->hRequest, params->pchParamName, params->pchParamValue );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SendHTTPRequest( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SendHTTPRequest_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SendHTTPRequest( params->hRequest, params->pCallHandle );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SendHTTPRequestAndStreamResponse( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SendHTTPRequestAndStreamResponse_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SendHTTPRequestAndStreamResponse( params->hRequest, params->pCallHandle );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_DeferHTTPRequest( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_DeferHTTPRequest_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->DeferHTTPRequest( params->hRequest );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_PrioritizeHTTPRequest( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_PrioritizeHTTPRequest_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->PrioritizeHTTPRequest( params->hRequest );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPResponseHeaderSize( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPResponseHeaderSize_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->GetHTTPResponseHeaderSize( params->hRequest, params->pchHeaderName, params->unResponseHeaderSize );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPResponseHeaderValue( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPResponseHeaderValue_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->GetHTTPResponseHeaderValue( params->hRequest, params->pchHeaderName, params->pHeaderValueBuffer, params->unBufferSize );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPResponseBodySize( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPResponseBodySize_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->GetHTTPResponseBodySize( params->hRequest, params->unBodySize );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPResponseBodyData( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPResponseBodyData_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->GetHTTPResponseBodyData( params->hRequest, params->pBodyDataBuffer, params->unBufferSize );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPStreamingResponseBodyData( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPStreamingResponseBodyData_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->GetHTTPStreamingResponseBodyData( params->hRequest, params->cOffset, params->pBodyDataBuffer, params->unBufferSize );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_ReleaseHTTPRequest( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_ReleaseHTTPRequest_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->ReleaseHTTPRequest( params->hRequest );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPDownloadProgressPct( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPDownloadProgressPct_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->GetHTTPDownloadProgressPct( params->hRequest, params->pflPercentOut );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestRawPostBody( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestRawPostBody_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestRawPostBody( params->hRequest, params->pchContentType, params->pubBody, params->unBodyLen );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_CreateCookieContainer( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_CreateCookieContainer_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->CreateCookieContainer( params->bAllowResponsesToModify );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_ReleaseCookieContainer( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_ReleaseCookieContainer_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->ReleaseCookieContainer( params->hCookieContainer );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetCookie( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetCookie_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetCookie( params->hCookieContainer, params->pchHost, params->pchUrl, params->pchCookie );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestCookieContainer( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestCookieContainer_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestCookieContainer( params->hRequest, params->hCookieContainer );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestUserAgentInfo( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestUserAgentInfo_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestUserAgentInfo( params->hRequest, params->pchUserAgentInfo );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestRequiresVerifiedCertificate( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestRequiresVerifiedCertificate_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestRequiresVerifiedCertificate( params->hRequest, params->bRequireVerifiedCertificate );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestAbsoluteTimeoutMS( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_SetHTTPRequestAbsoluteTimeoutMS_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->SetHTTPRequestAbsoluteTimeoutMS( params->hRequest, params->unMilliseconds );
2019-02-25 18:44:23 +03:00
}
void cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPRequestWasTimedOut( struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003_GetHTTPRequestWasTimedOut_params *params )
2019-02-25 18:44:23 +03:00
{
struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *iface = (struct cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION003 *)params->linux_side;
params->_ret = iface->GetHTTPRequestWasTimedOut( params->hRequest, params->pbWasTimedOut );
2019-02-25 18:44:23 +03:00
}
#ifdef __cplusplus
}
#endif