libpurple/debug.h

Thu, 25 Aug 2022 21:34:53 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 25 Aug 2022 21:34:53 -0500
branch
gtk4
changeset 41591
ad6f5ffc2825
parent 41208
48baac6c8989
child 42394
b3bc5ad00646
permissions
-rw-r--r--

Port the invite dialog to GTK4

Testing Done:
Opened the dialog via conversations -> invite and made sure it worked as expected.

Reviewed at https://reviews.imfreedom.org/r/1644/

40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
1 /*
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
2 * Purple - Internet Messaging Library
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
8046
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 7035
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 7035
diff changeset
7 * source distribution.
6483
d12ecdf8e489 [gaim-migrate @ 6997]
Christian Hammond <chipx86@chipx86.com>
parents: 5944
diff changeset
8 *
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 * (at your option) any later version.
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 *
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 * GNU General Public License for more details.
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 *
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
21 */
35487
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35486
diff changeset
22
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40245
diff changeset
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40245
diff changeset
24 # error "only <purple.h> may be included directly"
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40245
diff changeset
25 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40245
diff changeset
26
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39532
diff changeset
27 #ifndef PURPLE_DEBUG_H
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39532
diff changeset
28 #define PURPLE_DEBUG_H
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
29
10307
f3ba80364053 [gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents: 8046
diff changeset
30 #include <glib.h>
35572
5c4846317f2f Box the *UiOps structures
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
31 #include <glib-object.h>
5c4846317f2f Box the *UiOps structures
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
32
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
33 #include <stdarg.h>
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
34
38643
cb7fbf08fcb7 Convert PurpleDebugUiOps into an interface.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38560
diff changeset
35 G_BEGIN_DECLS
35572
5c4846317f2f Box the *UiOps structures
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
36
40524
a3b1cde8d2d8 Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents: 40474
diff changeset
37 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
38 * PurpleDebugLevel:
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
39 * @PURPLE_DEBUG_ALL: All debug levels.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
40 * @PURPLE_DEBUG_MISC: General chatter.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
41 * @PURPLE_DEBUG_INFO: General operation Information.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
42 * @PURPLE_DEBUG_WARNING: Warnings.
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
43 * @PURPLE_DEBUG_ERROR: Errors.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
44 * @PURPLE_DEBUG_FATAL: Fatal errors.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
45 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
46 * Available debug levels.
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47 */
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
48 typedef enum {
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
49 PURPLE_DEBUG_ALL = 0,
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
50 PURPLE_DEBUG_MISC,
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
51 PURPLE_DEBUG_INFO,
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
52 PURPLE_DEBUG_WARNING,
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
53 PURPLE_DEBUG_ERROR,
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
54 PURPLE_DEBUG_FATAL
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
55
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
56 } PurpleDebugLevel;
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
57
40950
c3fc77a3c015 Separate PurpleDebugUi out to its own file
Gary Kramlich <grim@reaperworld.com>
parents: 40874
diff changeset
58 #include "purpledebugui.h"
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
59
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
60 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
61 * purple_debug:
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
62 * @level: The debug level.
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35024
diff changeset
63 * @category: The category (or %NULL).
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
64 * @format: The format string.
38560
3007790519bf libpurple: Add some trivial parameter documentation strings
Mike Ruprecht <cmaiku@gmail.com>
parents: 37113
diff changeset
65 * @...: The parameters to insert into the format string.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
66 *
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
67 * Outputs debug information.
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
68 */
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
69 void purple_debug(PurpleDebugLevel level, const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(3, 4);
5212
ad90ea13028b [gaim-migrate @ 5582]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
70
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
71 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
72 * purple_debug_misc:
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
73 * @category: The category or %NULL.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
74 * @format: The format string.
38560
3007790519bf libpurple: Add some trivial parameter documentation strings
Mike Ruprecht <cmaiku@gmail.com>
parents: 37113
diff changeset
75 * @...: The parameters to insert into the format string.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
76 *
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
77 * Outputs misc. level debug information.
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
78 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
79 * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_MISC as the
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
80 * level.
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
81 *
35471
a23769351b31 Remove @see
Ankit Vani <a@nevitus.org>
parents: 35467
diff changeset
82 * See purple_debug().
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
83 */
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
84 void purple_debug_misc(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
85
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
86 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
87 * purple_debug_info:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
88 * @category: The category (or %NULL).
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
89 * @format: The format string.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
90 * @...: The parameters to insert into the format string.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
91 *
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
92 * Outputs info level debug information.
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
93 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
94 * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_INFO as
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
95 * the level.
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
96 *
35471
a23769351b31 Remove @see
Ankit Vani <a@nevitus.org>
parents: 35467
diff changeset
97 * See purple_debug().
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
98 */
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
99 void purple_debug_info(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
100
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
101 /**
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
102 * purple_debug_warning:
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
103 * @category: The category or %NULL.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
104 * @format: The format string.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
105 * @...: The parameters to insert into the format string.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
106 *
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
107 * Outputs warning level debug information.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
108 *
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
109 * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_WARNING as the
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
110 * level.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
111 *
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
112 * See purple_debug().
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
113 */
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
114 void purple_debug_warning(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
115
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
116 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
117 * purple_debug_error:
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
118 * @category: The category or %NULL.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
119 * @format: The format string.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
120 * @...: The parameters to insert into the format string.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
121 *
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
122 * Outputs error level debug information.
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
123 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
124 * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_ERROR as the
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
125 * level.
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
126 *
35471
a23769351b31 Remove @see
Ankit Vani <a@nevitus.org>
parents: 35467
diff changeset
127 * See purple_debug().
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
128 */
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
129 void purple_debug_error(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
130
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
131 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
132 * purple_debug_fatal:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
133 * @category: The category (or %NULL).
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
134 * @format: The format string.
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
135 * @...: The parameters to insert into the format string.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
136 *
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
137 * Outputs fatal error level debug information.
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
138 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
139 * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_ERROR as the
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
140 * level.
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
141 *
35471
a23769351b31 Remove @see
Ankit Vani <a@nevitus.org>
parents: 35467
diff changeset
142 * See purple_debug().
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
143 */
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
144 void purple_debug_fatal(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
6721
41d2d86860f3 [gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents: 6483
diff changeset
145
10307
f3ba80364053 [gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents: 8046
diff changeset
146 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
147 * purple_debug_set_verbose:
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
148 * @verbose: %TRUE to enable verbose debugging or %FALSE to disable it.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
149 *
27542
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
150 * Enable or disable verbose debugging. This ordinarily should only be called
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
151 * by purple_debug_init(), but there are cases where this can be useful for
27542
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
152 * plugins.
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
153 */
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
154 void purple_debug_set_verbose(gboolean verbose);
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
155
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
156 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
157 * purple_debug_is_verbose:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
158 *
27542
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
159 * Check if verbose logging is enabled.
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
160 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
161 * Returns: %TRUE if verbose debugging is enabled, %FALSE if it is not.
27542
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
162 */
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
163 gboolean purple_debug_is_verbose(void);
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
164
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
165 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
166 * purple_debug_set_unsafe:
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
167 * @unsafe: %TRUE to enable debug logging of messages that could potentially
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
168 * contain passwords and other sensitive information. %FALSE to
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
169 * disable it.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
170 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
171 * Enable or disable unsafe debugging. This ordinarily should only be called by
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
172 * purple_debug_init(), but there are cases where this can be useful for
27542
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
173 * plugins.
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
174 */
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
175 void purple_debug_set_unsafe(gboolean unsafe);
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
176
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
177 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
178 * purple_debug_is_unsafe:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
179 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
180 * Check if unsafe debugging is enabled. Defaults to %FALSE.
27542
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
181 *
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
182 * Returns: %TRUE if the debug logging of all messages is enabled, %FALSE if
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
183 * messages that could potentially contain passwords and other
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
184 * sensitive information are not logged.
27542
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
185 */
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
186 gboolean purple_debug_is_unsafe(void);
a7acdc4ba23f Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22621
diff changeset
187
40828
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
188 /******************************************************************************
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
189 * Debug Subsystem
4ee19005534e Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
190 *****************************************************************************/
10307
f3ba80364053 [gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents: 8046
diff changeset
191
f3ba80364053 [gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents: 8046
diff changeset
192 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
193 * purple_debug_init:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
194 *
10307
f3ba80364053 [gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents: 8046
diff changeset
195 * Initializes the debug subsystem.
f3ba80364053 [gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents: 8046
diff changeset
196 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
197 void purple_debug_init(void);
10307
f3ba80364053 [gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents: 8046
diff changeset
198
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32438
diff changeset
199 G_END_DECLS
5944
f19df037ac58 [gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents: 5212
diff changeset
200
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39532
diff changeset
201 #endif /* PURPLE_DEBUG_H */

mercurial