mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
e9aeba85f2
CW-Bug-Id: #22729
185 lines
7.8 KiB
C
185 lines
7.8 KiB
C
/* This file is auto-generated, do not edit. */
|
|
#include <stdarg.h>
|
|
#include <stdint.h>
|
|
|
|
#include "vrclient_private.h"
|
|
|
|
#include "flatapi.h"
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_RequestScreenshot, 20)
|
|
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_HookScreenshot, 12)
|
|
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType, 12)
|
|
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename, 24)
|
|
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress, 12)
|
|
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot, 16)
|
|
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot, 20)
|
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_RequestScreenshot(struct w_steam_iface *_this, uint32_t *pOutScreenshotHandle, uint32_t type, const char *pchPreviewFilename, const char *pchVRFilename)
|
|
{
|
|
struct IVRScreenshots_IVRScreenshots_001_RequestScreenshot_params params =
|
|
{
|
|
.linux_side = _this->u_iface,
|
|
.pOutScreenshotHandle = pOutScreenshotHandle,
|
|
.type = type,
|
|
.pchPreviewFilename = pchPreviewFilename,
|
|
.pchVRFilename = pchVRFilename,
|
|
};
|
|
TRACE("%p\n", _this);
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_RequestScreenshot, ¶ms );
|
|
return params._ret;
|
|
}
|
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_HookScreenshot(struct w_steam_iface *_this, uint32_t *pSupportedTypes, int32_t numTypes)
|
|
{
|
|
struct IVRScreenshots_IVRScreenshots_001_HookScreenshot_params params =
|
|
{
|
|
.linux_side = _this->u_iface,
|
|
.pSupportedTypes = pSupportedTypes,
|
|
.numTypes = numTypes,
|
|
};
|
|
TRACE("%p\n", _this);
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_HookScreenshot, ¶ms );
|
|
return params._ret;
|
|
}
|
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType(struct w_steam_iface *_this, uint32_t screenshotHandle, uint32_t *pError)
|
|
{
|
|
struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType_params params =
|
|
{
|
|
.linux_side = _this->u_iface,
|
|
.screenshotHandle = screenshotHandle,
|
|
.pError = pError,
|
|
};
|
|
TRACE("%p\n", _this);
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType, ¶ms );
|
|
return params._ret;
|
|
}
|
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename(struct w_steam_iface *_this, uint32_t screenshotHandle, uint32_t filenameType, char *pchFilename, uint32_t cchFilename, uint32_t *pError)
|
|
{
|
|
struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename_params params =
|
|
{
|
|
.linux_side = _this->u_iface,
|
|
.screenshotHandle = screenshotHandle,
|
|
.filenameType = filenameType,
|
|
.pchFilename = pchFilename,
|
|
.cchFilename = cchFilename,
|
|
.pError = pError,
|
|
};
|
|
TRACE("%p\n", _this);
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename, ¶ms );
|
|
return params._ret;
|
|
}
|
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress(struct w_steam_iface *_this, uint32_t screenshotHandle, float flProgress)
|
|
{
|
|
struct IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress_params params =
|
|
{
|
|
.linux_side = _this->u_iface,
|
|
.screenshotHandle = screenshotHandle,
|
|
.flProgress = flProgress,
|
|
};
|
|
TRACE("%p\n", _this);
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress, ¶ms );
|
|
return params._ret;
|
|
}
|
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot(struct w_steam_iface *_this, uint32_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename)
|
|
{
|
|
struct IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot_params params =
|
|
{
|
|
.linux_side = _this->u_iface,
|
|
.pOutScreenshotHandle = pOutScreenshotHandle,
|
|
.pchPreviewFilename = pchPreviewFilename,
|
|
.pchVRFilename = pchVRFilename,
|
|
};
|
|
TRACE("%p\n", _this);
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot, ¶ms );
|
|
return params._ret;
|
|
}
|
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot(struct w_steam_iface *_this, uint32_t screenshotHandle, uint32_t type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename)
|
|
{
|
|
struct IVRScreenshots_IVRScreenshots_001_SubmitScreenshot_params params =
|
|
{
|
|
.linux_side = _this->u_iface,
|
|
.screenshotHandle = screenshotHandle,
|
|
.type = type,
|
|
.pchSourcePreviewFilename = pchSourcePreviewFilename,
|
|
.pchSourceVRFilename = pchSourceVRFilename,
|
|
};
|
|
TRACE("%p\n", _this);
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_SubmitScreenshot, ¶ms );
|
|
return params._ret;
|
|
}
|
|
|
|
extern vtable_ptr winIVRScreenshots_IVRScreenshots_001_vtable;
|
|
|
|
DEFINE_RTTI_DATA0(winIVRScreenshots_IVRScreenshots_001, 0, ".?AVIVRScreenshots@@")
|
|
|
|
__ASM_BLOCK_BEGIN(winIVRScreenshots_IVRScreenshots_001_vtables)
|
|
__ASM_VTABLE(winIVRScreenshots_IVRScreenshots_001,
|
|
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_RequestScreenshot)
|
|
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_HookScreenshot)
|
|
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType)
|
|
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename)
|
|
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress)
|
|
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot)
|
|
VTABLE_ADD_FUNC(winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot)
|
|
);
|
|
__ASM_BLOCK_END
|
|
|
|
struct w_steam_iface *create_winIVRScreenshots_IVRScreenshots_001(void *u_iface)
|
|
{
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
|
TRACE("-> %p\n", r);
|
|
r->vtable = &winIVRScreenshots_IVRScreenshots_001_vtable;
|
|
r->u_iface = u_iface;
|
|
return r;
|
|
}
|
|
|
|
void destroy_winIVRScreenshots_IVRScreenshots_001(struct w_steam_iface *object)
|
|
{
|
|
TRACE("%p\n", object);
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
}
|
|
|
|
struct w_steam_iface *create_winIVRScreenshots_IVRScreenshots_001_FnTable(void *u_iface)
|
|
{
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
|
struct thunk *thunks = alloc_thunks(7);
|
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 7 * sizeof(*vtable));
|
|
int i;
|
|
|
|
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
|
|
init_thunk(&thunks[0], r, winIVRScreenshots_IVRScreenshots_001_RequestScreenshot, 4, FALSE, FALSE);
|
|
init_thunk(&thunks[1], r, winIVRScreenshots_IVRScreenshots_001_HookScreenshot, 2, FALSE, FALSE);
|
|
init_thunk(&thunks[2], r, winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType, 2, FALSE, FALSE);
|
|
init_thunk(&thunks[3], r, winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename, 5, FALSE, FALSE);
|
|
init_thunk(&thunks[4], r, winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress, 2, TRUE, FALSE);
|
|
init_thunk(&thunks[5], r, winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot, 3, FALSE, FALSE);
|
|
init_thunk(&thunks[6], r, winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot, 4, FALSE, FALSE);
|
|
for (i = 0; i < 7; i++)
|
|
vtable[i] = &thunks[i];
|
|
r->u_iface = u_iface;
|
|
r->vtable = (void *)vtable;
|
|
return r;
|
|
}
|
|
|
|
void destroy_winIVRScreenshots_IVRScreenshots_001_FnTable(struct w_steam_iface *object)
|
|
{
|
|
TRACE("%p\n", object);
|
|
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
|
|
HeapFree(GetProcessHeap(), 0, object->vtable);
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
}
|
|
|
|
void init_winIVRScreenshots_rtti( char *base )
|
|
{
|
|
#ifdef __x86_64__
|
|
init_winIVRScreenshots_IVRScreenshots_001_rtti( base );
|
|
#endif /* __x86_64__ */
|
|
}
|