2018-01-18 20:29:49 +01:00
|
|
|
/* This file is auto-generated, do not edit. */
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "vrclient_private.h"
|
|
|
|
|
2018-06-04 17:45:00 +02:00
|
|
|
#include "flatapi.h"
|
|
|
|
|
2018-01-18 20:29:49 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
|
|
|
|
2019-09-17 19:52:18 +02:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRScreenshots_IVRScreenshots_001_RequestScreenshot, 20)
|
2023-09-23 20:52:28 +02:00
|
|
|
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)
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_RequestScreenshot(struct w_steam_iface *_this, uint32_t *pOutScreenshotHandle, uint32_t type, const char *pchPreviewFilename, const char *pchVRFilename)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_RequestScreenshot_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.pOutScreenshotHandle = pOutScreenshotHandle,
|
|
|
|
.type = type,
|
|
|
|
.pchPreviewFilename = pchPreviewFilename,
|
|
|
|
.pchVRFilename = pchVRFilename,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_RequestScreenshot, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_HookScreenshot(struct w_steam_iface *_this, uint32_t *pSupportedTypes, int32_t numTypes)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_HookScreenshot_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.pSupportedTypes = pSupportedTypes,
|
|
|
|
.numTypes = numTypes,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_HookScreenshot, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType(struct w_steam_iface *_this, uint32_t screenshotHandle, uint32_t *pError)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.screenshotHandle = screenshotHandle,
|
|
|
|
.pError = pError,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
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)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.screenshotHandle = screenshotHandle,
|
|
|
|
.filenameType = filenameType,
|
|
|
|
.pchFilename = pchFilename,
|
|
|
|
.cchFilename = cchFilename,
|
|
|
|
.pError = pError,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress(struct w_steam_iface *_this, uint32_t screenshotHandle, float flProgress)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.screenshotHandle = screenshotHandle,
|
|
|
|
.flProgress = flProgress,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot(struct w_steam_iface *_this, uint32_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.pOutScreenshotHandle = pOutScreenshotHandle,
|
|
|
|
.pchPreviewFilename = pchPreviewFilename,
|
|
|
|
.pchVRFilename = pchVRFilename,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVRScreenshots_IVRScreenshots_001_SubmitScreenshot(struct w_steam_iface *_this, uint32_t screenshotHandle, uint32_t type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_SubmitScreenshot_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.screenshotHandle = screenshotHandle,
|
|
|
|
.type = type,
|
|
|
|
.pchSourcePreviewFilename = pchSourcePreviewFilename,
|
|
|
|
.pchSourceVRFilename = pchSourceVRFilename,
|
|
|
|
};
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRScreenshots_IVRScreenshots_001_SubmitScreenshot, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2018-01-18 20:29:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
extern vtable_ptr winIVRScreenshots_IVRScreenshots_001_vtable;
|
|
|
|
|
2023-10-02 20:00:22 +02:00
|
|
|
DEFINE_RTTI_DATA0(winIVRScreenshots_IVRScreenshots_001, 0, ".?AVIVRScreenshots@@")
|
|
|
|
|
|
|
|
__ASM_BLOCK_BEGIN(winIVRScreenshots_IVRScreenshots_001_vtables)
|
2018-01-18 20:29:49 +01:00
|
|
|
__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)
|
|
|
|
);
|
2023-10-02 20:00:22 +02:00
|
|
|
__ASM_BLOCK_END
|
2018-01-18 20:29:49 +01:00
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *create_winIVRScreenshots_IVRScreenshots_001(void *u_iface)
|
2018-01-18 20:29:49 +01:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
2018-01-18 20:29:49 +01:00
|
|
|
TRACE("-> %p\n", r);
|
|
|
|
r->vtable = &winIVRScreenshots_IVRScreenshots_001_vtable;
|
2023-09-24 14:50:45 +02:00
|
|
|
r->u_iface = u_iface;
|
2018-01-18 20:29:49 +01:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void destroy_winIVRScreenshots_IVRScreenshots_001(struct w_steam_iface *object)
|
2018-04-19 15:50:32 +02:00
|
|
|
{
|
|
|
|
TRACE("%p\n", object);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *create_winIVRScreenshots_IVRScreenshots_001_FnTable(void *u_iface)
|
2018-06-04 17:45:00 +02:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
2018-06-04 17:45:00 +02:00
|
|
|
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);
|
2018-07-30 17:40:06 +02:00
|
|
|
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);
|
2018-06-04 17:45:00 +02:00
|
|
|
for (i = 0; i < 7; i++)
|
|
|
|
vtable[i] = &thunks[i];
|
2023-09-24 14:50:45 +02:00
|
|
|
r->u_iface = u_iface;
|
2018-06-04 17:45:00 +02:00
|
|
|
r->vtable = (void *)vtable;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void destroy_winIVRScreenshots_IVRScreenshots_001_FnTable(struct w_steam_iface *object)
|
2018-06-04 17:45:00 +02:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
TRACE("%p\n", object);
|
|
|
|
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object->vtable);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
2018-06-04 17:45:00 +02:00
|
|
|
}
|
|
|
|
|
2023-10-02 20:00:22 +02:00
|
|
|
void init_winIVRScreenshots_rtti( char *base )
|
|
|
|
{
|
|
|
|
#ifdef __x86_64__
|
|
|
|
init_winIVRScreenshots_IVRScreenshots_001_rtti( base );
|
|
|
|
#endif /* __x86_64__ */
|
|
|
|
}
|