Mercurial > pidgin
annotate finch/gntplugin.h @ 19915:8feb06a1c3c1
Finished implem in gtkrequest.c
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Fri, 17 Aug 2007 20:21:04 +0000 |
parents | 8c89913276b3 |
children | 44b4e8bd759b |
rev | line source |
---|---|
15817 | 1 /** |
2 * @file gntplugin.h GNT Plugins API | |
16194
0f0832c13fcb
Rename the Doxygen group from gntui to finch and define the finch group
Richard Laager <rlaager@wiktel.com>
parents:
15870
diff
changeset
|
3 * @ingroup finch |
15817 | 4 * |
15870
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
5 * finch |
15817 | 6 * |
15870
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
7 * Finch is the legal property of its developers, whose names are too numerous |
15817 | 8 * to list here. Please refer to the COPYRIGHT file distributed with this |
9 * source distribution. | |
10 * | |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
24 */ | |
25 #ifndef _GNT_PLUGIN_H | |
26 #define _GNT_PLUGIN_H | |
27 | |
28 #include <gnt.h> | |
29 | |
30 #include <plugin.h> | |
16310
8c89913276b3
Implement the plugin-pref ui using the request api. The preferences for the core plugins can now be modified from Finch. And no new strings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
31 #include <pluginpref.h> |
15817 | 32 |
33 #include <string.h> | |
34 | |
15822 | 35 #include "finch.h" |
15817 | 36 |
37 /********************************************************************** | |
38 * @name GNT Plugins API | |
39 **********************************************************************/ | |
40 /*@{*/ | |
41 | |
42 typedef GntWidget* (*FinchPluginFrame) (); | |
43 | |
44 /* Guess where these came from */ | |
15822 | 45 #define FINCH_PLUGIN_TYPE FINCH_UI |
15817 | 46 |
47 /** | |
48 * Decide whether a plugin is a GNT-plugin. | |
49 */ | |
15822 | 50 #define PURPLE_IS_GNT_PLUGIN(plugin) \ |
15817 | 51 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ |
15822 | 52 !strcmp((plugin)->info->ui_requirement, FINCH_PLUGIN_TYPE)) |
15817 | 53 |
54 /** | |
55 * Get the ui-info from GNT-plugins. | |
56 */ | |
15822 | 57 #define FINCH_PLUGIN_UI_INFO(plugin) \ |
15817 | 58 (FinchPluginFrame)((plugin)->info->ui_info) |
59 | |
60 /** | |
61 * Show a list of plugins. | |
62 */ | |
63 void finch_plugins_show_all(void); | |
64 | |
65 /** | |
66 * Save the list of loaded plugins. | |
67 */ | |
68 void finch_plugins_save_loaded(void); | |
69 | |
70 /*@}*/ | |
71 | |
72 #endif |