Mercurial > pidgin
comparison src/prpl.h @ 8749:d7b8eb1f0a18
[gaim-migrate @ 9504]
Bumped up the plugin API version number, and added version numbers for
loader plugins and protocol plugins. Authors will want to update their
plugins, and possibly use GAIM_PLUGIN_API_VERSION, GAIM_PRPL_API_VERSION,
and GAIM_LOADER_API_VERSION constants.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 22 Apr 2004 01:53:18 +0000 |
parents | 7024b595b6ae |
children | 80b4c956d7ae |
comparison
equal
deleted
inserted
replaced
8748:13d592f485d1 | 8749:d7b8eb1f0a18 |
---|---|
95 */ | 95 */ |
96 typedef enum | 96 typedef enum |
97 { | 97 { |
98 GAIM_CONV_IM_AUTO_RESP = 0x0001, /**< Auto response. */ | 98 GAIM_CONV_IM_AUTO_RESP = 0x0001, /**< Auto response. */ |
99 GAIM_CONV_IM_IMAGES = 0x0002 /**< Contains images. */ | 99 GAIM_CONV_IM_IMAGES = 0x0002 /**< Contains images. */ |
100 | |
100 } GaimConvImFlags; | 101 } GaimConvImFlags; |
101 | 102 |
102 #include "blist.h" | 103 #include "blist.h" |
103 #include "proxy.h" | 104 #include "proxy.h" |
104 #include "plugin.h" | 105 #include "plugin.h" |
203 * Every protocol plugin initializes this structure. It is the gateway | 204 * Every protocol plugin initializes this structure. It is the gateway |
204 * between gaim and the protocol plugin. | 205 * between gaim and the protocol plugin. |
205 */ | 206 */ |
206 struct _GaimPluginProtocolInfo | 207 struct _GaimPluginProtocolInfo |
207 { | 208 { |
209 unsigned int api_version; /**< API version number. */ | |
210 | |
208 GaimProtocolOptions options; /**< Protocol options. */ | 211 GaimProtocolOptions options; /**< Protocol options. */ |
209 | 212 |
210 GList *user_splits; /* A GList of GaimAccountUserSplit */ | 213 GList *user_splits; /* A GList of GaimAccountUserSplit */ |
211 GList *protocol_options; /* A GList of GaimAccountOption */ | 214 GList *protocol_options; /* A GList of GaimAccountOption */ |
212 | 215 |
341 ((plugin)->info->type == GAIM_PLUGIN_PROTOCOL) | 344 ((plugin)->info->type == GAIM_PLUGIN_PROTOCOL) |
342 | 345 |
343 #define GAIM_PLUGIN_PROTOCOL_INFO(plugin) \ | 346 #define GAIM_PLUGIN_PROTOCOL_INFO(plugin) \ |
344 ((GaimPluginProtocolInfo *)(plugin)->info->extra_info) | 347 ((GaimPluginProtocolInfo *)(plugin)->info->extra_info) |
345 | 348 |
349 #define GAIM_PRPL_API_VERSION 2 | |
346 | 350 |
347 #ifdef __cplusplus | 351 #ifdef __cplusplus |
348 extern "C" { | 352 extern "C" { |
349 #endif | 353 #endif |
350 | 354 |