2023-09-30 11:48:58 +03:00
|
|
|
#ifndef __VRCLIENT_UNIXLIB_H
|
|
|
|
#define __VRCLIENT_UNIXLIB_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
2023-10-04 22:32:49 +03:00
|
|
|
#include <assert.h>
|
2023-09-30 11:48:58 +03:00
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winternl.h>
|
|
|
|
|
2023-09-30 11:48:58 +03:00
|
|
|
#include "vrclient_structs.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2023-11-07 22:56:28 +03:00
|
|
|
#include "wine/unixlib.h"
|
|
|
|
|
2023-10-04 22:32:49 +03:00
|
|
|
#include <pshpack1.h>
|
|
|
|
|
2023-09-30 11:48:58 +03: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 13:38:31 +03:00
|
|
|
struct vrclient_init_params
|
|
|
|
{
|
2023-10-04 23:02:15 +03:00
|
|
|
int8_t _ret;
|
2023-10-02 20:57:26 +03:00
|
|
|
HMODULE winevulkan;
|
2023-10-19 13:38:31 +03:00
|
|
|
char *unix_path;
|
|
|
|
};
|
|
|
|
|
2023-09-30 15:15:53 +03: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 13:38:31 +03:00
|
|
|
|
2023-10-04 22:32:49 +03:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2023-10-04 18:39:31 +03: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 14:08:49 +03:00
|
|
|
|
2023-09-30 11:48:58 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
#include "unixlib_generated.h"
|
|
|
|
|
2023-09-30 11:48:58 +03:00
|
|
|
#endif /* __VRCLIENT_UNIXLIB_H */
|