mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-11 02:00:20 +02:00
Currently does nothing other than load it (as the library also doesn't do anything yet). Ensured it was working by temporarily creating a test entrypoint and doing `Call` on to it. Next step after this is to reimplement some of the nasty hacks FEX is doing inside the unixlib code itself.
29 lines
726 B
C++
29 lines
726 B
C++
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
// SPDX-FileCopyrightText: Copyright (C) 2021 Alexandre Julliard
|
|
|
|
#pragma once
|
|
|
|
#include <winternl.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
constexpr NTSTATUS STATUS_SUCCESS = 0;
|
|
constexpr NTSTATUS STATUS_NOT_SUPPORTED = 0xC00000BB;
|
|
constexpr NTSTATUS STATUS_INTERNAL_ERROR = 0xC00000E5;
|
|
|
|
typedef UINT64 unixlib_handle_t;
|
|
|
|
extern NTSTATUS(WINAPI* __wine_set_unix_env)(const char*, const char*);
|
|
|
|
extern NTSTATUS(WINAPI* __wine_unix_call_dispatcher)(unixlib_handle_t, unsigned int, void*);
|
|
|
|
static inline NTSTATUS __wine_unix_call(unixlib_handle_t handle, unsigned int code, void* args) {
|
|
return __wine_unix_call_dispatcher(handle, code, args);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|