Commit 218e4698 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wineandroid: Use __wine_unix_call.

parent d246c1a1
...@@ -33,7 +33,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(android); ...@@ -33,7 +33,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(android);
static unixlib_handle_t unix_handle; static unixlib_handle_t unix_handle;
static NTSTATUS (CDECL *unix_call)( enum android_funcs code, void *params );
extern NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event ); extern NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event );
static HANDLE stop_event; static HANDLE stop_event;
...@@ -130,12 +129,11 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved ) ...@@ -130,12 +129,11 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
return FALSE; return FALSE;
params.register_window_callback = register_window_callback; params.register_window_callback = register_window_callback;
if (__wine_unix_call( unix_handle, unix_init, &params )) return FALSE; if (ANDROID_CALL( init, &params )) return FALSE;
callback_table = NtCurrentTeb()->Peb->KernelCallbackTable; callback_table = NtCurrentTeb()->Peb->KernelCallbackTable;
callback_table[client_start_device] = android_start_device; callback_table[client_start_device] = android_start_device;
unix_call = params.unix_call;
return TRUE; return TRUE;
} }
......
...@@ -562,8 +562,6 @@ JavaVM **p_java_vm = NULL; ...@@ -562,8 +562,6 @@ JavaVM **p_java_vm = NULL;
jobject *p_java_object = NULL; jobject *p_java_object = NULL;
unsigned short *p_java_gdt_sel = NULL; unsigned short *p_java_gdt_sel = NULL;
static NTSTATUS CDECL unix_call( enum android_funcs code, void *params );
static HRESULT android_init( void *arg ) static HRESULT android_init( void *arg )
{ {
struct init_params *params = arg; struct init_params *params = arg;
...@@ -609,7 +607,6 @@ static HRESULT android_init( void *arg ) ...@@ -609,7 +607,6 @@ static HRESULT android_init( void *arg )
#endif #endif
} }
__wine_set_user_driver( &android_drv_funcs, WINE_GDI_DRIVER_VERSION ); __wine_set_user_driver( &android_drv_funcs, WINE_GDI_DRIVER_VERSION );
params->unix_call = unix_call;
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -625,10 +622,3 @@ const unixlib_entry_t __wine_unix_call_funcs[] = ...@@ -625,10 +622,3 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
C_ASSERT( ARRAYSIZE(__wine_unix_call_funcs) == unix_funcs_count ); C_ASSERT( ARRAYSIZE(__wine_unix_call_funcs) == unix_funcs_count );
/* FIXME: Use __wine_unix_call instead */
static NTSTATUS CDECL unix_call( enum android_funcs code, void *params )
{
return __wine_unix_call_funcs[code]( params );
}
...@@ -30,14 +30,12 @@ enum android_funcs ...@@ -30,14 +30,12 @@ enum android_funcs
unix_funcs_count unix_funcs_count
}; };
/* FIXME: Use __wine_unix_call when the rest of the stack is ready */ #define ANDROID_CALL(func, params) __wine_unix_call( unix_handle, unix_ ## func, params )
#define ANDROID_CALL(func, params) unix_call( unix_ ## func, params )
/* android_init params */ /* android_init params */
struct init_params struct init_params
{ {
PNTAPCFUNC register_window_callback; PNTAPCFUNC register_window_callback;
NTSTATUS (CDECL *unix_call)( enum android_funcs code, void *params );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment