Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/plugin.h Wed Apr 21 23:40:39 2004 +0000 +++ b/src/plugin.h Thu Apr 22 01:53:18 2004 +0000 @@ -29,9 +29,9 @@ #include "signals.h" #include "value.h" -typedef struct _GaimPlugin GaimPlugin; /**< GaimPlugin */ -typedef struct _GaimPluginInfo GaimPluginInfo; /**< GaimPluginInfo */ -typedef struct _GaimPluginUiInfo GaimPluginUiInfo; /**< GaimPluginUiInfo */ +typedef struct _GaimPlugin GaimPlugin; +typedef struct _GaimPluginInfo GaimPluginInfo; +typedef struct _GaimPluginUiInfo GaimPluginUiInfo; typedef struct _GaimPluginLoaderInfo GaimPluginLoaderInfo; typedef int GaimPluginPriority; /**< Plugin priority. */ @@ -56,6 +56,9 @@ #define GAIM_PLUGIN_FLAG_INVISIBLE 0x01 +#define GAIM_PLUGIN_API_VERSION 3 +#define GAIM_LOADER_API_VERSION 2 + /** * Detailed information about a plugin. * @@ -92,6 +95,8 @@ */ struct _GaimPluginLoaderInfo { + unsigned int api_version; + GList *exts; gboolean (*probe)(GaimPlugin *plugin);