2023-09-30 10:48:58 +02:00
|
|
|
#ifndef __VRCLIENT_UNIXLIB_H
|
|
|
|
#define __VRCLIENT_UNIXLIB_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
2023-10-04 21:32:49 +02:00
|
|
|
#include <assert.h>
|
2023-09-30 10:48:58 +02:00
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winternl.h>
|
|
|
|
|
2023-09-30 10:48:58 +02:00
|
|
|
#include "vrclient_structs.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2023-11-07 20:56:28 +01:00
|
|
|
#include "wine/unixlib.h"
|
|
|
|
|
2023-10-04 21:32:49 +02:00
|
|
|
#include <pshpack1.h>
|
|
|
|
|
2023-09-30 10:48:58 +02:00
|
|
|
struct render_model
|
|
|
|
{
|
|
|
|
union
|
|
|
|
{
|
|
|
|
w_RenderModel_t_0912 w_0912;
|
|
|
|
};
|
|
|
|
union
|
|
|
|
{
|
|
|
|
u_RenderModel_t_0912 *u_0912;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct render_model_texture_map
|
|
|
|
{
|
|
|
|
union
|
|
|
|
{
|
|
|
|
w_RenderModel_TextureMap_t_090 w_090;
|
|
|
|
w_RenderModel_TextureMap_t_1237 w_1237;
|
|
|
|
};
|
|
|
|
union
|
|
|
|
{
|
|
|
|
u_RenderModel_TextureMap_t_090 *u_090;
|
|
|
|
u_RenderModel_TextureMap_t_1237 *u_1237;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-10-19 12:38:31 +02:00
|
|
|
struct vrclient_init_params
|
|
|
|
{
|
2023-10-04 22:02:15 +02:00
|
|
|
int8_t _ret;
|
2023-10-02 19:57:26 +02:00
|
|
|
HMODULE winevulkan;
|
2023-10-19 12:38:31 +02:00
|
|
|
char *unix_path;
|
|
|
|
};
|
|
|
|
|
2023-09-30 14:15:53 +02:00
|
|
|
struct vrclient_HmdSystemFactory_params
|
|
|
|
{
|
|
|
|
void *_ret;
|
|
|
|
const char *name;
|
|
|
|
int *return_code;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct vrclient_VRClientCoreFactory_params
|
|
|
|
{
|
|
|
|
void *_ret;
|
|
|
|
const char *name;
|
|
|
|
int *return_code;
|
|
|
|
};
|
2023-10-19 12:38:31 +02:00
|
|
|
|
2023-10-04 21:32:49 +02:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2023-10-04 17:39:31 +02:00
|
|
|
#define VRCLIENT_CALL( code, args ) \
|
|
|
|
({ \
|
|
|
|
NTSTATUS status = WINE_UNIX_CALL( unix_ ## code, args ); \
|
|
|
|
if (status) WARN( #code " failed, status %#x\n", (UINT)status ); \
|
|
|
|
assert( !status ); \
|
|
|
|
status; \
|
|
|
|
})
|
2023-09-30 13:08:49 +02:00
|
|
|
|
2023-09-30 10:48:58 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
#include "unixlib_generated.h"
|
|
|
|
|
2023-09-30 10:48:58 +02:00
|
|
|
#endif /* __VRCLIENT_UNIXLIB_H */
|