Mercurial > pidgin.yaz
annotate finch/gntplugin.h @ 20350:4d4eb6831722
applied changes from 3ae1e4b3dac8092886b4b8ab961d8d505433b4c4
through 4d5bbc54236419e777e3df044678b798605409bf
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 21 Oct 2007 04:49:59 +0000 |
parents | 6b8bc3309ab7 |
children | c38d72677c8a |
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 |
20251
6b8bc3309ab7
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@wiktel.com>
parents:
19680
diff
changeset
|
4 */ |
6b8bc3309ab7
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@wiktel.com>
parents:
19680
diff
changeset
|
5 |
6b8bc3309ab7
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@wiktel.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 | |
43 typedef GntWidget* (*FinchPluginFrame) (); | |
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 |