2023-09-29 12:28:17 +03:00
|
|
|
/* This file is auto-generated, do not edit. */
|
|
|
|
#include "unix_private.h"
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
NTSTATUS IVRScreenshots_IVRScreenshots_001_RequestScreenshot( void *args )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_RequestScreenshot_params *params = (struct IVRScreenshots_IVRScreenshots_001_RequestScreenshot_params *)args;
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRScreenshots_IVRScreenshots_001 *iface = (struct u_IVRScreenshots_IVRScreenshots_001 *)params->linux_side;
|
2023-10-03 00:13:55 +03:00
|
|
|
char *u_pchPreviewFilename = vrclient_dos_to_unix_path( params->pchPreviewFilename );
|
|
|
|
char *u_pchVRFilename = vrclient_dos_to_unix_path( params->pchVRFilename );
|
|
|
|
params->_ret = (uint32_t)iface->RequestScreenshot( params->pOutScreenshotHandle, params->type, u_pchPreviewFilename, u_pchVRFilename );
|
|
|
|
vrclient_free_path( u_pchPreviewFilename );
|
|
|
|
vrclient_free_path( u_pchVRFilename );
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS IVRScreenshots_IVRScreenshots_001_HookScreenshot( void *args )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_HookScreenshot_params *params = (struct IVRScreenshots_IVRScreenshots_001_HookScreenshot_params *)args;
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRScreenshots_IVRScreenshots_001 *iface = (struct u_IVRScreenshots_IVRScreenshots_001 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->HookScreenshot( params->pSupportedTypes, params->numTypes );
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType( void *args )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType_params *params = (struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyType_params *)args;
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRScreenshots_IVRScreenshots_001 *iface = (struct u_IVRScreenshots_IVRScreenshots_001 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetScreenshotPropertyType( params->screenshotHandle, params->pError );
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename( void *args )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename_params *params = (struct IVRScreenshots_IVRScreenshots_001_GetScreenshotPropertyFilename_params *)args;
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRScreenshots_IVRScreenshots_001 *iface = (struct u_IVRScreenshots_IVRScreenshots_001 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetScreenshotPropertyFilename( params->screenshotHandle, params->filenameType, params->pchFilename, params->cchFilename, params->pError );
|
2023-10-03 00:53:50 +03:00
|
|
|
params->_ret = vrclient_unix_path_to_dos_path( params->_ret, params->pchFilename, params->pchFilename, params->cchFilename );
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress( void *args )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress_params *params = (struct IVRScreenshots_IVRScreenshots_001_UpdateScreenshotProgress_params *)args;
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRScreenshots_IVRScreenshots_001 *iface = (struct u_IVRScreenshots_IVRScreenshots_001 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->UpdateScreenshotProgress( params->screenshotHandle, params->flProgress );
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot( void *args )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot_params *params = (struct IVRScreenshots_IVRScreenshots_001_TakeStereoScreenshot_params *)args;
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRScreenshots_IVRScreenshots_001 *iface = (struct u_IVRScreenshots_IVRScreenshots_001 *)params->linux_side;
|
2023-10-03 00:13:55 +03:00
|
|
|
char *u_pchPreviewFilename = vrclient_dos_to_unix_path( params->pchPreviewFilename );
|
|
|
|
char *u_pchVRFilename = vrclient_dos_to_unix_path( params->pchVRFilename );
|
|
|
|
params->_ret = (uint32_t)iface->TakeStereoScreenshot( params->pOutScreenshotHandle, u_pchPreviewFilename, u_pchVRFilename );
|
|
|
|
vrclient_free_path( u_pchPreviewFilename );
|
|
|
|
vrclient_free_path( u_pchVRFilename );
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS IVRScreenshots_IVRScreenshots_001_SubmitScreenshot( void *args )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct IVRScreenshots_IVRScreenshots_001_SubmitScreenshot_params *params = (struct IVRScreenshots_IVRScreenshots_001_SubmitScreenshot_params *)args;
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRScreenshots_IVRScreenshots_001 *iface = (struct u_IVRScreenshots_IVRScreenshots_001 *)params->linux_side;
|
2023-10-03 00:13:55 +03:00
|
|
|
char *u_pchSourcePreviewFilename = vrclient_dos_to_unix_path( params->pchSourcePreviewFilename );
|
|
|
|
char *u_pchSourceVRFilename = vrclient_dos_to_unix_path( params->pchSourceVRFilename );
|
|
|
|
params->_ret = (uint32_t)iface->SubmitScreenshot( params->screenshotHandle, params->type, u_pchSourcePreviewFilename, u_pchSourceVRFilename );
|
|
|
|
vrclient_free_path( u_pchSourcePreviewFilename );
|
|
|
|
vrclient_free_path( u_pchSourceVRFilename );
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|