Mercurial > pidgin.yaz
comparison src/plugin.h @ 6485:70d5122bc3ff
[gaim-migrate @ 6999]
Removed the old event system and replaced it with a much better signal
system. There will most likely be some bugs in this, but it seems to be
working for now. Plugins can now generate their own signals, and other
plugins can find those plugins and connect to them. This could give
plugins a form of IPC. It's also useful for other things. It's rather
flexible, except for the damn marshalling, but there's no way around that
that I or the glib people can see.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 18 Aug 2003 01:03:43 +0000 |
parents | 90d0849abd3c |
children | fab81e4b885c |
comparison
equal
deleted
inserted
replaced
6484:5ced8e111473 | 6485:70d5122bc3ff |
---|---|
3 * @ingroup core | 3 * @ingroup core |
4 * | 4 * |
5 * gaim | 5 * gaim |
6 * | 6 * |
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> |
8 * | 8 * |
9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
10 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
11 * the Free Software Foundation; either version 2 of the License, or | 11 * the Free Software Foundation; either version 2 of the License, or |
12 * (at your option) any later version. | 12 * (at your option) any later version. |
13 * | 13 * |
28 typedef struct _GaimPlugin GaimPlugin; /**< GaimPlugin */ | 28 typedef struct _GaimPlugin GaimPlugin; /**< GaimPlugin */ |
29 typedef struct _GaimPluginInfo GaimPluginInfo; /**< GaimPluginInfo */ | 29 typedef struct _GaimPluginInfo GaimPluginInfo; /**< GaimPluginInfo */ |
30 typedef struct _GaimPluginLoaderInfo GaimPluginLoaderInfo; | 30 typedef struct _GaimPluginLoaderInfo GaimPluginLoaderInfo; |
31 | 31 |
32 typedef int GaimPluginPriority; /**< Plugin priority. */ | 32 typedef int GaimPluginPriority; /**< Plugin priority. */ |
33 | |
34 #include "event.h" | |
35 | 33 |
36 /** | 34 /** |
37 * Plugin types. | 35 * Plugin types. |
38 */ | 36 */ |
39 typedef enum | 37 typedef enum |
91 gboolean (*probe)(GaimPlugin *plugin); | 89 gboolean (*probe)(GaimPlugin *plugin); |
92 gboolean (*load)(GaimPlugin *plugin); | 90 gboolean (*load)(GaimPlugin *plugin); |
93 gboolean (*unload)(GaimPlugin *plugin); | 91 gboolean (*unload)(GaimPlugin *plugin); |
94 void (*destroy)(GaimPlugin *plugin); | 92 void (*destroy)(GaimPlugin *plugin); |
95 | 93 |
96 GaimSignalBroadcastFunc broadcast; | 94 /* XXX GaimSignalBroadcastFunc broadcast; */ |
97 }; | 95 }; |
98 | 96 |
99 /** | 97 /** |
100 * A plugin handle. | 98 * A plugin handle. |
101 */ | 99 */ |