2022-06-04 13:22:23 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2022 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ntuser.h"
|
|
|
|
#include "wine/unixlib.h"
|
|
|
|
|
|
|
|
enum android_funcs
|
|
|
|
{
|
2022-06-04 13:27:59 +00:00
|
|
|
unix_create_desktop,
|
2022-06-04 13:48:13 +00:00
|
|
|
unix_dispatch_ioctl,
|
2022-06-04 13:22:23 +00:00
|
|
|
unix_init,
|
2022-06-04 13:48:13 +00:00
|
|
|
unix_java_init,
|
|
|
|
unix_java_uninit,
|
2022-06-06 23:50:48 +00:00
|
|
|
unix_register_window,
|
2022-06-04 13:22:23 +00:00
|
|
|
unix_funcs_count
|
|
|
|
};
|
|
|
|
|
|
|
|
/* FIXME: Use __wine_unix_call when the rest of the stack is ready */
|
|
|
|
#define ANDROID_CALL(func, params) unix_call( unix_ ## func, params )
|
2022-06-04 13:48:13 +00:00
|
|
|
|
2022-06-06 23:50:48 +00:00
|
|
|
/* android_init params */
|
|
|
|
struct init_params
|
|
|
|
{
|
|
|
|
PNTAPCFUNC register_window_callback;
|
2022-06-06 20:32:48 +00:00
|
|
|
NTSTATUS (WINAPI *pNtWaitForMultipleObjects)( ULONG,const HANDLE*,BOOLEAN,BOOLEAN,const LARGE_INTEGER* );
|
|
|
|
NTSTATUS (CDECL *unix_call)( enum android_funcs code, void *params );
|
2022-06-06 23:50:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-06-04 13:48:13 +00:00
|
|
|
/* android_ioctl params */
|
|
|
|
struct ioctl_params
|
|
|
|
{
|
|
|
|
struct _IRP *irp;
|
|
|
|
DWORD client_id;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-06-06 23:50:48 +00:00
|
|
|
/* android_register_window params */
|
|
|
|
struct register_window_params
|
|
|
|
{
|
|
|
|
UINT_PTR arg1;
|
|
|
|
UINT_PTR arg2;
|
|
|
|
UINT_PTR arg3;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-06-04 13:48:13 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
client_start_device = NtUserDriverCallbackFirst,
|
|
|
|
};
|