| |
1 /* pidgin |
| |
2 * |
| |
3 * Pidgin is the legal property of its developers, whose names are too numerous |
| |
4 * to list here. Please refer to the COPYRIGHT file distributed with this |
| |
5 * source distribution. |
| |
6 * |
| |
7 * This program is free software; you can redistribute it and/or modify |
| |
8 * it under the terms of the GNU General Public License as published by |
| |
9 * the Free Software Foundation; either version 2 of the License, or |
| |
10 * (at your option) any later version. |
| |
11 * |
| |
12 * This program is distributed in the hope that it will be useful, |
| |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| |
15 * GNU General Public License for more details. |
| |
16 * |
| |
17 * You should have received a copy of the GNU General Public License |
| |
18 * along with this program; if not, write to the Free Software |
| |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| |
20 */ |
| |
21 |
| |
22 #ifndef PIDGIN_DEBUG_H |
| |
23 #define PIDGIN_DEBUG_H |
| |
24 /** |
| |
25 * SECTION:gtkdebug |
| |
26 * @section_id: pidgin-gtkdebug |
| |
27 * @short_description: <filename>pidgindebug.h</filename> |
| |
28 * @title: Debug API |
| |
29 */ |
| |
30 |
| |
31 #include "debug.h" |
| |
32 |
| |
33 G_BEGIN_DECLS |
| |
34 |
| |
35 #define PIDGIN_TYPE_DEBUG_UI (pidgin_debug_ui_get_type()) |
| |
36 #if GLIB_CHECK_VERSION(2,44,0) |
| |
37 G_DECLARE_FINAL_TYPE(PidginDebugUi, pidgin_debug_ui, PIDGIN, DEBUG_UI, GObject) |
| |
38 #else |
| |
39 GType pidgin_debug_ui_get_type(void); |
| |
40 G_GNUC_BEGIN_IGNORE_DEPRECATIONS |
| |
41 typedef struct _PidginDebugUi PidginDebugUi; |
| |
42 typedef struct { GObjectClass parent_class; } PidginDebugUiClass; |
| |
43 static inline PidginDebugUi * |
| |
44 PIDGIN_DEBUG_UI(gpointer ptr) |
| |
45 { |
| |
46 return G_TYPE_CHECK_INSTANCE_CAST(ptr, pidgin_debug_ui_get_type(), PidginDebugUi); |
| |
47 } |
| |
48 static inline gboolean |
| |
49 PIDGIN_IS_DEBUG_UI(gpointer ptr) |
| |
50 { |
| |
51 return G_TYPE_CHECK_INSTANCE_TYPE(ptr, pidgin_debug_ui_get_type()); |
| |
52 } |
| |
53 G_GNUC_END_IGNORE_DEPRECATIONS |
| |
54 #endif |
| |
55 |
| |
56 /** |
| |
57 * pidgin_debug_ui_new: |
| |
58 * |
| |
59 * Initializes the GTK+ debug system. |
| |
60 */ |
| |
61 PidginDebugUi *pidgin_debug_ui_new(void); |
| |
62 |
| |
63 /** |
| |
64 * pidgin_debug_get_handle: |
| |
65 * |
| |
66 * Get the handle for the GTK+ debug system. |
| |
67 * |
| |
68 * Returns: the handle to the debug system |
| |
69 */ |
| |
70 void *pidgin_debug_get_handle(void); |
| |
71 |
| |
72 /** |
| |
73 * pidgin_debug_window_show: |
| |
74 * |
| |
75 * Shows the debug window. |
| |
76 */ |
| |
77 void pidgin_debug_window_show(void); |
| |
78 |
| |
79 /** |
| |
80 * pidgin_debug_window_hide: |
| |
81 * |
| |
82 * Hides the debug window. |
| |
83 */ |
| |
84 void pidgin_debug_window_hide(void); |
| |
85 |
| |
86 G_END_DECLS |
| |
87 |
| |
88 #endif /* PIDGIN_DEBUG_H */ |