Mercurial > pidgin
comparison src/plugin.h @ 5944:158196b2db19
[gaim-migrate @ 6385]
Added #ifdef __cplusplus lines so that things will link right with C++.
Also added some doxygen comment blocks that didn't previously exist.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 23 Jun 2003 06:40:13 +0000 |
parents | 8f5ccf9e590a |
children | 90d0849abd3c |
comparison
equal
deleted
inserted
replaced
5943:a4f2aba0848d | 5944:158196b2db19 |
---|---|
20 * along with this program; if not, write to the Free Software | 20 * along with this program; if not, write to the Free Software |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 */ | 22 */ |
23 #ifndef _GAIM_PLUGIN_H_ | 23 #ifndef _GAIM_PLUGIN_H_ |
24 #define _GAIM_PLUGIN_H_ | 24 #define _GAIM_PLUGIN_H_ |
25 | |
25 #include <gmodule.h> | 26 #include <gmodule.h> |
26 | 27 |
27 typedef enum _GaimPluginType GaimPluginType; /**< GaimPluginType */ | |
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 | 33 |
34 /* XXX */ | |
35 #include "config.h" | |
36 #include "event.h" | 34 #include "event.h" |
37 | 35 |
38 /** | 36 /** |
39 * Plugin types. | 37 * Plugin types. |
40 */ | 38 */ |
41 enum _GaimPluginType | 39 typedef enum |
42 { | 40 { |
43 GAIM_PLUGIN_UNKNOWN = -1, /**< Unknown type. */ | 41 GAIM_PLUGIN_UNKNOWN = -1, /**< Unknown type. */ |
44 GAIM_PLUGIN_STANDARD = 0, /**< Standard plugin. */ | 42 GAIM_PLUGIN_STANDARD = 0, /**< Standard plugin. */ |
45 GAIM_PLUGIN_LOADER, /**< Loader plugin. */ | 43 GAIM_PLUGIN_LOADER, /**< Loader plugin. */ |
46 GAIM_PLUGIN_PROTOCOL /**< Protocol plugin. */ | 44 GAIM_PLUGIN_PROTOCOL /**< Protocol plugin. */ |
47 }; | 45 |
46 } GaimPluginType; | |
48 | 47 |
49 #define GAIM_PRIORITY_DEFAULT 0 | 48 #define GAIM_PRIORITY_DEFAULT 0 |
50 #define GAIM_PRIORITY_HIGHEST 9999 | 49 #define GAIM_PRIORITY_HIGHEST 9999 |
51 #define GAIM_PRIORITY_LOWEST -9999 | 50 #define GAIM_PRIORITY_LOWEST -9999 |
52 | 51 |
132 initfunc((plugin)); \ | 131 initfunc((plugin)); \ |
133 return gaim_plugin_register(plugin); \ | 132 return gaim_plugin_register(plugin); \ |
134 } | 133 } |
135 #endif | 134 #endif |
136 | 135 |
136 #ifdef __cplusplus | |
137 extern "C" { | |
138 #endif | |
139 | |
137 /**************************************************************************/ | 140 /**************************************************************************/ |
138 /** @name Plugin namespace */ | 141 /** @name Plugin API */ |
139 /**************************************************************************/ | 142 /**************************************************************************/ |
140 /*@{*/ | 143 /*@{*/ |
141 | 144 |
142 /** | 145 /** |
143 * Creates a new plugin structure. | 146 * Creates a new plugin structure. |
224 gboolean gaim_plugin_is_loaded(const GaimPlugin *plugin); | 227 gboolean gaim_plugin_is_loaded(const GaimPlugin *plugin); |
225 | 228 |
226 /*@}*/ | 229 /*@}*/ |
227 | 230 |
228 /**************************************************************************/ | 231 /**************************************************************************/ |
229 /** @name Plugins namespace */ | 232 /** @name Plugins API */ |
230 /**************************************************************************/ | 233 /**************************************************************************/ |
231 /*@{*/ | 234 /*@{*/ |
232 | 235 |
233 /** | 236 /** |
234 * Sets the search paths for plugins. | 237 * Sets the search paths for plugins. |
366 */ | 369 */ |
367 GList *gaim_plugins_get_all(void); | 370 GList *gaim_plugins_get_all(void); |
368 | 371 |
369 /*@}*/ | 372 /*@}*/ |
370 | 373 |
374 #ifdef __cplusplus | |
375 } | |
376 #endif | |
377 | |
371 #endif /* _GAIM_PLUGIN_H_ */ | 378 #endif /* _GAIM_PLUGIN_H_ */ |