2020-05-14 15:17:06 +02:00
|
|
|
/*
|
|
|
|
* Ntdll Unix interface
|
|
|
|
*
|
|
|
|
* Copyright (C) 2020 Alexandre Julliard
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NTDLL_UNIXLIB_H
|
|
|
|
#define __NTDLL_UNIXLIB_H
|
|
|
|
|
2020-05-17 11:07:02 +02:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
2020-05-14 15:17:06 +02:00
|
|
|
/* increment this when you change the function table */
|
2020-05-17 11:44:16 +02:00
|
|
|
#define NTDLL_UNIXLIB_VERSION 4
|
2020-05-14 15:17:06 +02:00
|
|
|
|
|
|
|
struct unix_funcs
|
|
|
|
{
|
2020-05-17 11:09:30 +02:00
|
|
|
/* environment functions */
|
2020-05-17 11:44:16 +02:00
|
|
|
void (CDECL *get_main_args)( int *argc, char **argv[], char **envp[] );
|
2020-05-17 11:09:30 +02:00
|
|
|
const char * (CDECL *get_version)(void);
|
|
|
|
const char * (CDECL *get_build_id)(void);
|
|
|
|
void (CDECL *get_host_version)( const char **sysname, const char **release );
|
|
|
|
|
2020-05-17 11:04:47 +02:00
|
|
|
/* virtual memory functions */
|
|
|
|
NTSTATUS (CDECL *map_so_dll)( const IMAGE_NT_HEADERS *nt_descr, HMODULE module );
|
|
|
|
void (CDECL *mmap_add_reserved_area)( void *addr, SIZE_T size );
|
|
|
|
void (CDECL *mmap_remove_reserved_area)( void *addr, SIZE_T size );
|
|
|
|
int (CDECL *mmap_is_in_reserved_area)( void *addr, SIZE_T size );
|
|
|
|
int (CDECL *mmap_enum_reserved_areas)( int (CDECL *enum_func)(void *base, SIZE_T size, void *arg),
|
|
|
|
void *arg, int top_down );
|
2020-05-17 11:07:02 +02:00
|
|
|
|
|
|
|
/* debugging functions */
|
|
|
|
void (CDECL *dbg_init)(void);
|
|
|
|
unsigned char (CDECL *dbg_get_channel_flags)( struct __wine_debug_channel *channel );
|
|
|
|
const char * (CDECL *dbg_strdup)( const char *str );
|
|
|
|
int (CDECL *dbg_output)( const char *str );
|
|
|
|
int (CDECL *dbg_header)( enum __wine_debug_class cls, struct __wine_debug_channel *channel,
|
|
|
|
const char *function );
|
2020-05-14 15:17:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __NTDLL_UNIXLIB_H */
|