2 * Copyright © 2011 Canonical Limited
4 * SPDX-License-Identifier: LGPL-2.1-or-later
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, 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.
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/>.
19 * Author: Ryan Lortie <desrt@desrt.ca>
22 #ifndef __GLIB_INIT_H__
23 #define __GLIB_INIT_H__
25 #include "gmessages.h"
27 extern GLogLevelFlags g_log_always_fatal;
28 extern GLogLevelFlags g_log_msg_prefix;
30 void glib_init (void);
31 void g_quark_init (void);
32 void g_error_init (void);
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);
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);
53 #endif /* __GLIB_INIT_H__ */