Mercurial > pidgin.yaz
annotate finch/gntplugin.h @ 31859:5043fc53f957
Add a name I noticed was missing from COPYRIGHT.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Thu, 24 Mar 2011 15:18:14 +0000 |
parents | c38d72677c8a |
children |
rev | line source |
---|---|
15818 | 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:
15871
diff
changeset
|
3 * @ingroup finch |
20074
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
4 */ |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
5 |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
6 /* finch |
15818 | 7 * |
15871
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
8 * Finch is the legal property of its developers, whose names are too numerous |
15818 | 9 * to list here. Please refer to the COPYRIGHT file distributed with this |
10 * source distribution. | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License as published by | |
14 * the Free Software Foundation; either version 2 of the License, or | |
15 * (at your option) any later version. | |
16 * | |
17 * This program is distributed in the hope that it will be useful, | |
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 * GNU General Public License for more details. | |
21 * | |
22 * You should have received a copy of the GNU General Public License | |
23 * along with this program; if not, write to the Free Software | |
19680
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16310
diff
changeset
|
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15818 | 25 */ |
26 #ifndef _GNT_PLUGIN_H | |
27 #define _GNT_PLUGIN_H | |
28 | |
29 #include <gnt.h> | |
30 | |
31 #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
|
32 #include <pluginpref.h> |
15818 | 33 |
34 #include <string.h> | |
35 | |
15823 | 36 #include "finch.h" |
15818 | 37 |
38 /********************************************************************** | |
39 * @name GNT Plugins API | |
40 **********************************************************************/ | |
41 /*@{*/ | |
42 | |
22007
c38d72677c8a
Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@wiktel.com>
parents:
20074
diff
changeset
|
43 typedef GntWidget* (*FinchPluginFrame) (void); |
15818 | 44 |
45 /* Guess where these came from */ | |
15823 | 46 #define FINCH_PLUGIN_TYPE FINCH_UI |
15818 | 47 |
48 /** | |
49 * Decide whether a plugin is a GNT-plugin. | |
50 */ | |
15823 | 51 #define PURPLE_IS_GNT_PLUGIN(plugin) \ |
15818 | 52 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ |
15823 | 53 !strcmp((plugin)->info->ui_requirement, FINCH_PLUGIN_TYPE)) |
15818 | 54 |
55 /** | |
56 * Get the ui-info from GNT-plugins. | |
57 */ | |
15823 | 58 #define FINCH_PLUGIN_UI_INFO(plugin) \ |
15818 | 59 (FinchPluginFrame)((plugin)->info->ui_info) |
60 | |
61 /** | |
62 * Show a list of plugins. | |
63 */ | |
64 void finch_plugins_show_all(void); | |
65 | |
66 /** | |
67 * Save the list of loaded plugins. | |
68 */ | |
69 void finch_plugins_save_loaded(void); | |
70 | |
71 /*@}*/ | |
72 | |
73 #endif |