2 * Definitions for the Wine library
4 * Copyright 2000 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_WINE_LIBRARY_H
22 #define __WINE_WINE_LIBRARY_H
25 #include <sys/types.h>
30 #ifdef __WINE_WINE_TEST_H
31 #error This file should not be used in Wine tests
34 #ifdef __WINE_USE_MSVCRT
35 #error This file should not be used with msvcrt headers
44 extern const char *wine_get_version(void);
45 extern const char *wine_get_build_id(void);
46 extern void wine_init_argv0_path( const char *argv0
);
47 extern void wine_exec_wine_binary( const char *name
, char **argv
, const char *env_var
);
51 typedef void (*load_dll_callback_t
)( void *, const char * );
52 extern void wine_dll_set_callback( load_dll_callback_t load
);
53 extern void __wine_dll_register( const IMAGE_NT_HEADERS
*header
, const char *filename
);
54 extern void wine_init( int argc
, char *argv
[], char *error
, int error_size
);
58 extern void *wine_anon_mmap( void *start
, size_t size
, int prot
, int flags
);
59 extern void wine_mmap_add_reserved_area( void *addr
, size_t size
);
60 extern void wine_mmap_remove_reserved_area( void *addr
, size_t size
, int unmap
);
61 extern int wine_mmap_is_in_reserved_area( void *addr
, size_t size
);
62 extern int wine_mmap_enum_reserved_areas( int (*enum_func
)(void *base
, size_t size
, void *arg
),
63 void *arg
, int top_down
);
69 #endif /* __WINE_WINE_LIBRARY_H */