widl: Add support for function parameter flags to SLTG typelib generator.
[wine.git] / dlls / winex11.drv / unixlib.h
blob0be0d5dae867eadbc92100f5ee273f8136805e5c
1 /*
2 * Copyright 2022 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "ntuser.h"
20 #include "wine/unixlib.h"
22 enum x11drv_funcs
24 unix_init,
25 unix_tablet_attach_queue,
26 unix_tablet_get_packet,
27 unix_tablet_info,
28 unix_tablet_load_info,
29 unix_funcs_count,
32 #define X11DRV_CALL(func, params) WINE_UNIX_CALL( unix_ ## func, params )
34 /* x11drv_init params */
35 struct init_params
37 WNDPROC foreign_window_proc;
40 /* x11drv_tablet_info params */
41 struct tablet_info_params
43 UINT category;
44 UINT index;
45 void *output;
48 /* x11drv_xim_preedit_state params */
49 struct xim_preedit_state_params
51 HWND hwnd;
52 BOOL open;
55 /* driver client callbacks exposed with KernelCallbackTable interface */
56 enum x11drv_client_funcs
58 client_func_dnd_enter_event = NtUserDriverCallbackFirst,
59 client_func_dnd_position_event,
60 client_func_dnd_post_drop,
61 client_func_dnd_drop_event,
62 client_func_dnd_leave_event,
63 client_func_last
66 C_ASSERT( client_func_last <= NtUserDriverCallbackLast + 1 );
68 /* x11drv_dnd_enter_event and x11drv_dnd_post_drop params */
69 struct format_entry
71 UINT format;
72 UINT size;
73 char data[1];
76 /* x11drv_dnd_position_event params */
77 struct dnd_position_event_params
79 ULONG hwnd;
80 POINT point;
81 DWORD effect;