Imported Upstream version 2.74.3
[platform/upstream/glib.git] / glib / glib-init.h
1 /*
2  * Copyright © 2011 Canonical Limited
3  *
4  * SPDX-License-Identifier: LGPL-2.1-or-later
5  *
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.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * 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.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18  *
19  * Author: Ryan Lortie <desrt@desrt.ca>
20  */
21
22 #ifndef __GLIB_INIT_H__
23 #define __GLIB_INIT_H__
24
25 #include "gmessages.h"
26
27 extern GLogLevelFlags g_log_always_fatal;
28 extern GLogLevelFlags g_log_msg_prefix;
29
30 void glib_init (void);
31 void g_quark_init (void);
32 void g_error_init (void);
33
34 #ifdef G_OS_WIN32
35 #include <windows.h>
36
37 void g_thread_win32_process_detach (void);
38 void g_thread_win32_thread_detach (void);
39 void g_thread_win32_init (void);
40 void g_console_win32_init (void);
41 void g_clock_win32_init (void);
42 void g_crash_handler_win32_init (void);
43 void g_crash_handler_win32_deinit (void);
44 gboolean _g_win32_call_rtl_version (OSVERSIONINFOEXW *info);
45
46 extern HMODULE glib_dll;
47 gchar *g_win32_find_helper_executable_path (const gchar *process_name, void *dll_handle);
48 int g_win32_reopen_noninherited (int fd, int mode, GError **err);
49 gboolean g_win32_handle_is_socket (void *h);
50
51 #endif
52
53 #endif /* __GLIB_INIT_H__ */