1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- |
---|
2 | * |
---|
3 | * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu> |
---|
4 | * |
---|
5 | * This program is free software; you can redistribute it and/or modify |
---|
6 | * it under the terms of the GNU General Public License as published by |
---|
7 | * the Free Software Foundation; either version 2 of the License, or |
---|
8 | * (at your option) any later version. |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | * GNU General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU General Public License |
---|
16 | * along with this program; if not, write to the Free Software |
---|
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
18 | * |
---|
19 | * Authors: William Jon McCann <mccann@jhu.edu> |
---|
20 | * |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef __GDM_LOG_H |
---|
24 | #define __GDM_LOG_H |
---|
25 | |
---|
26 | #include <stdarg.h> |
---|
27 | #include <glib.h> |
---|
28 | |
---|
29 | G_BEGIN_DECLS |
---|
30 | |
---|
31 | void gdm_log_default_handler (const gchar *log_domain, |
---|
32 | GLogLevelFlags log_level, |
---|
33 | const gchar *message, |
---|
34 | gpointer unused_data); |
---|
35 | void gdm_log_set_debug (gboolean debug); |
---|
36 | void gdm_log_toggle_debug (void); |
---|
37 | void gdm_log_init (void); |
---|
38 | void gdm_log_shutdown (void); |
---|
39 | |
---|
40 | /* compatibility */ |
---|
41 | #define gdm_fail g_critical |
---|
42 | #define gdm_error g_warning |
---|
43 | #define gdm_info g_message |
---|
44 | #define gdm_debug g_debug |
---|
45 | |
---|
46 | #define gdm_assert g_assert |
---|
47 | #define gdm_assert_not_reached g_assert_not_reached |
---|
48 | |
---|
49 | G_END_DECLS |
---|
50 | |
---|
51 | #endif /* __GDM_LOG_H */ |
---|