Mercurial > pidgin
comparison finch/gntplugin.h @ 15852:c5487dd19e61
merge of '31ed92ba1b530f050510b4958686e3013ba4176c'
and '41f65a78d919384ad599d73c656a367d92292a41'
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Tue, 20 Mar 2007 14:37:22 +0000 |
parents | 32c366eeeb99 |
children | 66dff3dfdea6 |
comparison
equal
deleted
inserted
replaced
15851:5198bd455160 | 15852:c5487dd19e61 |
---|---|
1 /** | 1 /** |
2 * @file gntplugin.h GNT Plugins API | 2 * @file gntplugin.h GNT Plugins API |
3 * @ingroup gntui | 3 * @ingroup gntui |
4 * | 4 * |
5 * gaim | 5 * purple |
6 * | 6 * |
7 * Gaim is the legal property of its developers, whose names are too numerous | 7 * Purple is the legal property of its developers, whose names are too numerous |
8 * to list here. Please refer to the COPYRIGHT file distributed with this | 8 * to list here. Please refer to the COPYRIGHT file distributed with this |
9 * source distribution. | 9 * source distribution. |
10 * | 10 * |
11 * This program is free software; you can redistribute it and/or modify | 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 | 12 * it under the terms of the GNU General Public License as published by |
29 | 29 |
30 #include <plugin.h> | 30 #include <plugin.h> |
31 | 31 |
32 #include <string.h> | 32 #include <string.h> |
33 | 33 |
34 #include "gntgaim.h" | 34 #include "finch.h" |
35 | 35 |
36 /********************************************************************** | 36 /********************************************************************** |
37 * @name GNT Plugins API | 37 * @name GNT Plugins API |
38 **********************************************************************/ | 38 **********************************************************************/ |
39 /*@{*/ | 39 /*@{*/ |
40 | 40 |
41 typedef GntWidget* (*FinchPluginFrame) (); | 41 typedef GntWidget* (*FinchPluginFrame) (); |
42 | 42 |
43 /* Guess where these came from */ | 43 /* Guess where these came from */ |
44 #define GAIM_GNT_PLUGIN_TYPE GAIM_GNT_UI | 44 #define FINCH_PLUGIN_TYPE FINCH_UI |
45 | 45 |
46 /** | 46 /** |
47 * Decide whether a plugin is a GNT-plugin. | 47 * Decide whether a plugin is a GNT-plugin. |
48 */ | 48 */ |
49 #define GAIM_IS_GNT_PLUGIN(plugin) \ | 49 #define PURPLE_IS_GNT_PLUGIN(plugin) \ |
50 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ | 50 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ |
51 !strcmp((plugin)->info->ui_requirement, GAIM_GNT_PLUGIN_TYPE)) | 51 !strcmp((plugin)->info->ui_requirement, FINCH_PLUGIN_TYPE)) |
52 | 52 |
53 /** | 53 /** |
54 * Get the ui-info from GNT-plugins. | 54 * Get the ui-info from GNT-plugins. |
55 */ | 55 */ |
56 #define GAIM_GNT_PLUGIN_UI_INFO(plugin) \ | 56 #define FINCH_PLUGIN_UI_INFO(plugin) \ |
57 (FinchPluginFrame)((plugin)->info->ui_info) | 57 (FinchPluginFrame)((plugin)->info->ui_info) |
58 | 58 |
59 /** | 59 /** |
60 * Show a list of plugins. | 60 * Show a list of plugins. |
61 */ | 61 */ |