Commit f55f0b84 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Remove load_builtin_dll() and get_load_order() from the Unix interface.

parent bb065801
...@@ -1375,21 +1375,6 @@ done: ...@@ -1375,21 +1375,6 @@ done:
/*********************************************************************** /***********************************************************************
* load_builtin_dll
*/
static NTSTATUS CDECL load_builtin_dll( UNICODE_STRING *nt_name, void **module,
SECTION_IMAGE_INFORMATION *image_info, BOOL prefer_native )
{
SIZE_T size;
NTSTATUS status;
status = find_builtin_dll( nt_name, module, &size, image_info, current_machine, prefer_native );
if (status == STATUS_IMAGE_NOT_AT_BASE) status = STATUS_SUCCESS;
return status;
}
/***********************************************************************
* load_builtin * load_builtin
* *
* Load the builtin dll if specified by load order configuration. * Load the builtin dll if specified by load order configuration.
...@@ -1794,11 +1779,9 @@ static struct unix_funcs unix_funcs = ...@@ -1794,11 +1779,9 @@ static struct unix_funcs unix_funcs =
ntdll_tan, ntdll_tan,
virtual_release_address_space, virtual_release_address_space,
load_so_dll, load_so_dll,
load_builtin_dll,
init_builtin_dll, init_builtin_dll,
init_unix_lib, init_unix_lib,
unwind_builtin_dll, unwind_builtin_dll,
get_load_order,
__wine_dbg_get_channel_flags, __wine_dbg_get_channel_flags,
__wine_dbg_strdup, __wine_dbg_strdup,
__wine_dbg_output, __wine_dbg_output,
......
...@@ -378,7 +378,7 @@ static enum loadorder get_load_order_value( HANDLE std_key, HANDLE app_key, WCHA ...@@ -378,7 +378,7 @@ static enum loadorder get_load_order_value( HANDLE std_key, HANDLE app_key, WCHA
* Return the loadorder of a module. * Return the loadorder of a module.
* The system directory and '.dll' extension is stripped from the path. * The system directory and '.dll' extension is stripped from the path.
*/ */
enum loadorder CDECL get_load_order( const UNICODE_STRING *nt_name ) enum loadorder get_load_order( const UNICODE_STRING *nt_name )
{ {
static const WCHAR prefixW[] = {'\\','?','?','\\'}; static const WCHAR prefixW[] = {'\\','?','?','\\'};
enum loadorder ret = LO_INVALID; enum loadorder ret = LO_INVALID;
......
...@@ -400,7 +400,18 @@ static inline void context_init_xstate( CONTEXT *context, void *xstate_buffer ) ...@@ -400,7 +400,18 @@ static inline void context_init_xstate( CONTEXT *context, void *xstate_buffer )
} }
#endif #endif
extern enum loadorder CDECL get_load_order( const UNICODE_STRING *nt_name ) DECLSPEC_HIDDEN; enum loadorder
{
LO_INVALID,
LO_DISABLED,
LO_NATIVE,
LO_BUILTIN,
LO_NATIVE_BUILTIN, /* native then builtin */
LO_BUILTIN_NATIVE, /* builtin then native */
LO_DEFAULT /* nothing specified, use default strategy */
};
extern enum loadorder get_load_order( const UNICODE_STRING *nt_name ) DECLSPEC_HIDDEN;
static inline size_t ntdll_wcslen( const WCHAR *str ) static inline size_t ntdll_wcslen( const WCHAR *str )
{ {
......
...@@ -25,19 +25,8 @@ ...@@ -25,19 +25,8 @@
struct _DISPATCHER_CONTEXT; struct _DISPATCHER_CONTEXT;
enum loadorder
{
LO_INVALID,
LO_DISABLED,
LO_NATIVE,
LO_BUILTIN,
LO_NATIVE_BUILTIN, /* native then builtin */
LO_BUILTIN_NATIVE, /* builtin then native */
LO_DEFAULT /* nothing specified, use default strategy */
};
/* increment this when you change the function table */ /* increment this when you change the function table */
#define NTDLL_UNIXLIB_VERSION 119 #define NTDLL_UNIXLIB_VERSION 120
struct unix_funcs struct unix_funcs
{ {
...@@ -85,13 +74,10 @@ struct unix_funcs ...@@ -85,13 +74,10 @@ struct unix_funcs
/* loader functions */ /* loader functions */
NTSTATUS (CDECL *load_so_dll)( UNICODE_STRING *nt_name, void **module ); NTSTATUS (CDECL *load_so_dll)( UNICODE_STRING *nt_name, void **module );
NTSTATUS (CDECL *load_builtin_dll)( UNICODE_STRING *name, void **module,
SECTION_IMAGE_INFORMATION *image_info, BOOL prefer_native );
void (CDECL *init_builtin_dll)( void *module ); void (CDECL *init_builtin_dll)( void *module );
NTSTATUS (CDECL *init_unix_lib)( void *module, DWORD reason, const void *ptr_in, void *ptr_out ); NTSTATUS (CDECL *init_unix_lib)( void *module, DWORD reason, const void *ptr_in, void *ptr_out );
NTSTATUS (CDECL *unwind_builtin_dll)( ULONG type, struct _DISPATCHER_CONTEXT *dispatch, NTSTATUS (CDECL *unwind_builtin_dll)( ULONG type, struct _DISPATCHER_CONTEXT *dispatch,
CONTEXT *context ); CONTEXT *context );
enum loadorder (CDECL *get_load_order)( const UNICODE_STRING *nt_name );
/* debugging functions */ /* debugging functions */
unsigned char (CDECL *dbg_get_channel_flags)( struct __wine_debug_channel *channel ); unsigned char (CDECL *dbg_get_channel_flags)( struct __wine_debug_channel *channel );
......
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