Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5ef250c0
Commit
5ef250c0
authored
Jun 07, 2022
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Mar 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Add initial unixlib stub.
Signed-off-by:
Alexandros Frantzis
<
alexandros.frantzis@collabora.com
>
parent
2a79056e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
126 additions
and
1 deletion
+126
-1
Makefile.in
dlls/winewayland.drv/Makefile.in
+3
-1
dllmain.c
dlls/winewayland.drv/dllmain.c
+4
-0
unixlib.h
dlls/winewayland.drv/unixlib.h
+32
-0
waylanddrv.h
dlls/winewayland.drv/waylanddrv.h
+30
-0
waylanddrv_dll.h
dlls/winewayland.drv/waylanddrv_dll.h
+4
-0
waylanddrv_main.c
dlls/winewayland.drv/waylanddrv_main.c
+53
-0
No files found.
dlls/winewayland.drv/Makefile.in
View file @
5ef250c0
MODULE
=
winewayland.drv
UNIXLIB
=
winewayland.so
C_SRCS
=
\
dllmain.c
dllmain.c
\
waylanddrv_main.c
RC_SRCS
=
version.rc
dlls/winewayland.drv/dllmain.c
View file @
5ef250c0
...
...
@@ -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
;
}
dlls/winewayland.drv/unixlib.h
0 → 100644
View file @
5ef250c0
/*
* 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 */
dlls/winewayland.drv/waylanddrv.h
0 → 100644
View file @
5ef250c0
/*
* 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 */
dlls/winewayland.drv/waylanddrv_dll.h
View file @
5ef250c0
...
...
@@ -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 */
dlls/winewayland.drv/waylanddrv_main.c
0 → 100644
View file @
5ef250c0
/*
* 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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment