Mercurial > pidgin.yaz
annotate finch/gntplugin.h @ 15974:1a12ce76c4f4
The network module now registers the signal 'network-configuration-changed' and emits it when a network change is detected via libnm or the win32 network monitor. The UI could also emit this signal if it knows something network.c doesn't. UPnP and NAT-PMP respond to the signal by clearing their IP address caches; changing networks without quitting/relaunching will now lead to the new IP address being (lazily) determined. This commit also enables nat-pmp and adds nat-pmp.[h|c] to the build process; please let me know if there are any problems building, as I only have OS X test machines.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sat, 31 Mar 2007 20:33:54 +0000 |
parents | 66dff3dfdea6 |
children | 0f0832c13fcb |
rev | line source |
---|---|
15818 | 1 /** |
2 * @file gntplugin.h GNT Plugins API | |
3 * @ingroup gntui | |
4 * | |
15871
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
5 * finch |
15818 | 6 * |
15871
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
7 * Finch is the legal property of its developers, whose names are too numerous |
15818 | 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> | |
31 | |
32 #include <string.h> | |
33 | |
15823 | 34 #include "finch.h" |
15818 | 35 |
36 /********************************************************************** | |
37 * @name GNT Plugins API | |
38 **********************************************************************/ | |
39 /*@{*/ | |
40 | |
41 typedef GntWidget* (*FinchPluginFrame) (); | |
42 | |
43 /* Guess where these came from */ | |
15823 | 44 #define FINCH_PLUGIN_TYPE FINCH_UI |
15818 | 45 |
46 /** | |
47 * Decide whether a plugin is a GNT-plugin. | |
48 */ | |
15823 | 49 #define PURPLE_IS_GNT_PLUGIN(plugin) \ |
15818 | 50 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ |
15823 | 51 !strcmp((plugin)->info->ui_requirement, FINCH_PLUGIN_TYPE)) |
15818 | 52 |
53 /** | |
54 * Get the ui-info from GNT-plugins. | |
55 */ | |
15823 | 56 #define FINCH_PLUGIN_UI_INFO(plugin) \ |
15818 | 57 (FinchPluginFrame)((plugin)->info->ui_info) |
58 | |
59 /** | |
60 * Show a list of plugins. | |
61 */ | |
62 void finch_plugins_show_all(void); | |
63 | |
64 /** | |
65 * Save the list of loaded plugins. | |
66 */ | |
67 void finch_plugins_save_loaded(void); | |
68 | |
69 /*@}*/ | |
70 | |
71 #endif |