| 40 * #PurpleDebugUiInterface defines the behavior that libpurple uses to |
42 * #PurpleDebugUiInterface defines the behavior that libpurple uses to |
| 41 * interface the debug API with the user interface. |
43 * interface the debug API with the user interface. |
| 42 * |
44 * |
| 43 * Since: 3.0.0 |
45 * Since: 3.0.0 |
| 44 */ |
46 */ |
| |
47 PURPLE_AVAILABLE_IN_3_0 |
| 45 G_DECLARE_INTERFACE(PurpleDebugUi, purple_debug_ui, PURPLE, DEBUG_UI, GObject) |
48 G_DECLARE_INTERFACE(PurpleDebugUi, purple_debug_ui, PURPLE, DEBUG_UI, GObject) |
| 46 |
49 |
| 47 #include "debug.h" |
50 #include "debug.h" |
| 48 |
51 |
| 49 /** |
52 /** |
| 80 * Returns: %TRUE if the given level and category will be output by @ui, %FALSE |
83 * Returns: %TRUE if the given level and category will be output by @ui, %FALSE |
| 81 * otherwise. |
84 * otherwise. |
| 82 * |
85 * |
| 83 * Since: 3.0.0 |
86 * Since: 3.0.0 |
| 84 */ |
87 */ |
| |
88 PURPLE_AVAILABLE_IN_3_0 |
| 85 gboolean purple_debug_ui_is_enabled(PurpleDebugUi *ui, PurpleDebugLevel level, const gchar *category); |
89 gboolean purple_debug_ui_is_enabled(PurpleDebugUi *ui, PurpleDebugLevel level, const gchar *category); |
| 86 |
90 |
| 87 /** |
91 /** |
| 88 * purple_debug_ui_print: |
92 * purple_debug_ui_print: |
| 89 * @ui: The #PurpleDebugUi instance. |
93 * @ui: The #PurpleDebugUi instance. |
| 93 * |
97 * |
| 94 * Outputs @arg_s via @ui with the given @level and optional @category. |
98 * Outputs @arg_s via @ui with the given @level and optional @category. |
| 95 * |
99 * |
| 96 * Since: 3.0.0 |
100 * Since: 3.0.0 |
| 97 */ |
101 */ |
| |
102 PURPLE_AVAILABLE_IN_3_0 |
| 98 void purple_debug_ui_print(PurpleDebugUi *ui, PurpleDebugLevel level, const gchar *category, const gchar *arg_s); |
103 void purple_debug_ui_print(PurpleDebugUi *ui, PurpleDebugLevel level, const gchar *category, const gchar *arg_s); |
| 99 |
104 |
| 100 G_END_DECLS |
105 G_END_DECLS |
| 101 |
106 |
| 102 #endif /* PURPLE_DEBUG_UI_H */ |
107 #endif /* PURPLE_DEBUG_UI_H */ |