Mercurial > pidgin
comparison src/plugin.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 | 92cbf9713795 |
| children | c61be128dff3 |
comparison
equal
deleted
inserted
replaced
| 8748:13d592f485d1 | 8749:d7b8eb1f0a18 |
|---|---|
| 27 | 27 |
| 28 #include <gmodule.h> | 28 #include <gmodule.h> |
| 29 #include "signals.h" | 29 #include "signals.h" |
| 30 #include "value.h" | 30 #include "value.h" |
| 31 | 31 |
| 32 typedef struct _GaimPlugin GaimPlugin; /**< GaimPlugin */ | 32 typedef struct _GaimPlugin GaimPlugin; |
| 33 typedef struct _GaimPluginInfo GaimPluginInfo; /**< GaimPluginInfo */ | 33 typedef struct _GaimPluginInfo GaimPluginInfo; |
| 34 typedef struct _GaimPluginUiInfo GaimPluginUiInfo; /**< GaimPluginUiInfo */ | 34 typedef struct _GaimPluginUiInfo GaimPluginUiInfo; |
| 35 typedef struct _GaimPluginLoaderInfo GaimPluginLoaderInfo; | 35 typedef struct _GaimPluginLoaderInfo GaimPluginLoaderInfo; |
| 36 | 36 |
| 37 typedef int GaimPluginPriority; /**< Plugin priority. */ | 37 typedef int GaimPluginPriority; /**< Plugin priority. */ |
| 38 | 38 |
| 39 #include "pluginpref.h" | 39 #include "pluginpref.h" |
| 53 #define GAIM_PRIORITY_DEFAULT 0 | 53 #define GAIM_PRIORITY_DEFAULT 0 |
| 54 #define GAIM_PRIORITY_HIGHEST 9999 | 54 #define GAIM_PRIORITY_HIGHEST 9999 |
| 55 #define GAIM_PRIORITY_LOWEST -9999 | 55 #define GAIM_PRIORITY_LOWEST -9999 |
| 56 | 56 |
| 57 #define GAIM_PLUGIN_FLAG_INVISIBLE 0x01 | 57 #define GAIM_PLUGIN_FLAG_INVISIBLE 0x01 |
| 58 | |
| 59 #define GAIM_PLUGIN_API_VERSION 3 | |
| 60 #define GAIM_LOADER_API_VERSION 2 | |
| 58 | 61 |
| 59 /** | 62 /** |
| 60 * Detailed information about a plugin. | 63 * Detailed information about a plugin. |
| 61 * | 64 * |
| 62 * This is used in the version 2.0 API and up. | 65 * This is used in the version 2.0 API and up. |
| 90 /** | 93 /** |
| 91 * Extra information for loader plugins. | 94 * Extra information for loader plugins. |
| 92 */ | 95 */ |
| 93 struct _GaimPluginLoaderInfo | 96 struct _GaimPluginLoaderInfo |
| 94 { | 97 { |
| 98 unsigned int api_version; | |
| 99 | |
| 95 GList *exts; | 100 GList *exts; |
| 96 | 101 |
| 97 gboolean (*probe)(GaimPlugin *plugin); | 102 gboolean (*probe)(GaimPlugin *plugin); |
| 98 gboolean (*load)(GaimPlugin *plugin); | 103 gboolean (*load)(GaimPlugin *plugin); |
| 99 gboolean (*unload)(GaimPlugin *plugin); | 104 gboolean (*unload)(GaimPlugin *plugin); |
