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
20 #include "wine/unixlib.h"
25 unix_ime_process_text_input
,
26 unix_ime_using_input_method
,
32 /* FIXME: Use __wine_unix_call when the rest of the stack is ready */
33 extern NTSTATUS
unix_call(enum macdrv_funcs code
, void *params
) DECLSPEC_HIDDEN
;
34 #define MACDRV_CALL(func, params) unix_call( unix_ ## func, params )
36 /* macdrv_ime_process_text_input params */
37 struct process_text_input_params
42 const BYTE
*key_state
;
47 /* macdrv_init params */
48 struct localized_string
57 struct localized_string
*strings
;
60 /* macdrv_notify_icon params */
61 struct notify_icon_params
64 struct _NOTIFYICONDATAW
*data
;
67 /* driver client callbacks exposed with KernelCallbackTable interface */
68 enum macdrv_client_funcs
70 client_func_dnd_query_drop
= NtUserDriverCallbackFirst
,
71 client_func_dnd_query_exited
,
72 client_func_ime_query_char_rect
,
73 client_func_ime_set_text
,
77 /* macdrv_dnd_query_drop params */
78 struct dnd_query_drop_params
87 /* macdrv_dnd_query_exited params */
88 struct dnd_query_exited_params
93 /* macdrv_ime_query_char_rect result */
94 struct ime_query_char_rect_result
101 /* macdrv_ime_query_char_rect params */
102 struct ime_query_char_rect_params
108 struct ime_query_char_rect_result
*result
; /* FIXME: Use NtCallbackReturn instead */
111 /* macdrv_ime_set_text params */
112 struct ime_set_text_params
121 C_ASSERT(client_func_last
<= NtUserDriverCallbackLast
+ 1);