Merged pidgin/main into default
[pidgin-git.git] / finch / gntdebug.h
blobba2b27f1e1bd1cac1c19c63775a7b502de27d48c
1 /* finch
3 * Finch 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.
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.
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.
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
22 #ifndef _GNT_DEBUG_H
23 #define _GNT_DEBUG_H
24 /**
25 * SECTION:gntdebug
26 * @section_id: finch-gntdebug
27 * @short_description: <filename>gntdebug.h</filename>
28 * @title: Debug API
31 #include "debug.h"
33 G_BEGIN_DECLS
35 /**********************************************************************
36 * GNT Debug API
37 **********************************************************************/
39 #define FINCH_TYPE_DEBUG_UI (finch_debug_ui_get_type())
40 #if GLIB_CHECK_VERSION(2,44,0)
41 G_DECLARE_FINAL_TYPE(FinchDebugUi, finch_debug_ui, FINCH, DEBUG_UI, GObject)
42 #else
43 GType finch_debug_ui_get_type(void);
44 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
45 typedef struct _FinchDebugUi FinchDebugUi;
46 typedef struct { GObjectClass parent_class; } FinchDebugUiClass;
47 static inline FinchDebugUi *
48 FINCH_DEBUG_UI(gpointer ptr)
50 return G_TYPE_CHECK_INSTANCE_CAST(ptr, finch_debug_ui_get_type(), FinchDebugUi);
52 static inline gboolean
53 FINCH_IS_DEBUG_UI(gpointer ptr)
55 return G_TYPE_CHECK_INSTANCE_TYPE(ptr, finch_debug_ui_get_type());
57 G_GNUC_END_IGNORE_DEPRECATIONS
58 #endif
60 /**
61 * finch_debug_ui_new:
63 * Perform necessary initializations.
65 FinchDebugUi *finch_debug_ui_new(void);
67 /**
68 * finch_debug_window_show:
70 * Show the debug window.
72 void finch_debug_window_show(void);
74 G_END_DECLS
76 #endif