winewayland.drv: Add initial unixlib stub.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
This commit is contained in:
Alexandros Frantzis 2022-06-07 12:17:12 +03:00 committed by Alexandre Julliard
parent 2a79056e9a
commit 5ef250c0d1
6 changed files with 126 additions and 1 deletions

View file

@ -1,6 +1,8 @@
MODULE = winewayland.drv
UNIXLIB = winewayland.so
C_SRCS = \
dllmain.c
dllmain.c \
waylanddrv_main.c
RC_SRCS = version.rc

View file

@ -25,6 +25,10 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
if (reason != DLL_PROCESS_ATTACH) return TRUE;
DisableThreadLibraryCalls(instance);
if (__wine_init_unix_call()) return FALSE;
if (WAYLANDDRV_UNIX_CALL(init, NULL))
return FALSE;
return TRUE;
}

View file

@ -0,0 +1,32 @@
/*
* Copyright 2022 Alexandros Frantzis for Collabora Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_WAYLANDDRV_UNIXLIB_H
#define __WINE_WAYLANDDRV_UNIXLIB_H
#include <stdarg.h>
#include "winternl.h"
#include "wine/unixlib.h"
enum waylanddrv_unix_func
{
waylanddrv_unix_func_init,
waylanddrv_unix_func_count,
};
#endif /* __WINE_WAYLANDDRV_UNIXLIB_H */

View file

@ -0,0 +1,30 @@
/*
* Wayland driver
*
* Copyright 2020 Alexandros Frantzis for Collabora Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_WAYLANDDRV_H
#define __WINE_WAYLANDDRV_H
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include "unixlib.h"
#endif /* __WINE_WAYLANDDRV_H */

View file

@ -25,4 +25,8 @@
#include "windef.h"
#include "winbase.h"
#include "unixlib.h"
#define WAYLANDDRV_UNIX_CALL(func, params) WINE_UNIX_CALL(waylanddrv_unix_func_ ## func, params)
#endif /* __WINE_WAYLANDDRV_DLL_H */

View file

@ -0,0 +1,53 @@
/*
* WAYLANDDRV initialization code
*
* Copyright 2020 Alexandre Frantzis for Collabora Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep unix
#endif
#include "config.h"
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "waylanddrv.h"
static NTSTATUS waylanddrv_unix_init(void *arg)
{
return 0;
}
const unixlib_entry_t __wine_unix_call_funcs[] =
{
waylanddrv_unix_init,
};
C_ASSERT(ARRAYSIZE(__wine_unix_call_funcs) == waylanddrv_unix_func_count);
#ifdef _WIN64
const unixlib_entry_t __wine_unix_call_wow64_funcs[] =
{
waylanddrv_unix_init,
};
C_ASSERT(ARRAYSIZE(__wine_unix_call_wow64_funcs) == waylanddrv_unix_func_count);
#endif /* _WIN64 */