comparison src/plugin.h @ 9943:f8e395a054e2

[gaim-migrate @ 10835] this all seemed to work last night...hopefully no stray cosmic rays did anything to break it since then committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 03 Sep 2004 21:21:25 +0000
parents 67421e0dc497
children fae50349fd42
comparison
equal deleted inserted replaced
9942:3941c39ccff5 9943:f8e395a054e2
57 #define GAIM_PRIORITY_HIGHEST 9999 57 #define GAIM_PRIORITY_HIGHEST 9999
58 #define GAIM_PRIORITY_LOWEST -9999 58 #define GAIM_PRIORITY_LOWEST -9999
59 59
60 #define GAIM_PLUGIN_FLAG_INVISIBLE 0x01 60 #define GAIM_PLUGIN_FLAG_INVISIBLE 0x01
61 61
62 #define GAIM_PLUGIN_API_VERSION 4 62 #define GAIM_PLUGIN_MAGIC 0xc0cac01a /* this must be greater than 4 */
63 #define GAIM_LOADER_API_VERSION 2
64 63
65 /** 64 /**
66 * Detailed information about a plugin. 65 * Detailed information about a plugin.
67 * 66 *
68 * This is used in the version 2.0 API and up. 67 * This is used in the version 2.0 API and up.
69 */ 68 */
70 struct _GaimPluginInfo 69 struct _GaimPluginInfo
71 { 70 {
72 unsigned int api_version; 71 unsigned int magic;
72 unsigned int major_version;
73 unsigned int minor_version;
73 GaimPluginType type; 74 GaimPluginType type;
74 char *ui_requirement; 75 char *ui_requirement;
75 unsigned long flags; 76 unsigned long flags;
76 GList *dependencies; 77 GList *dependencies;
77 GaimPluginPriority priority; 78 GaimPluginPriority priority;
97 /** 98 /**
98 * Extra information for loader plugins. 99 * Extra information for loader plugins.
99 */ 100 */
100 struct _GaimPluginLoaderInfo 101 struct _GaimPluginLoaderInfo
101 { 102 {
102 unsigned int api_version;
103
104 GList *exts; 103 GList *exts;
105 104
106 gboolean (*probe)(GaimPlugin *plugin); 105 gboolean (*probe)(GaimPlugin *plugin);
107 gboolean (*load)(GaimPlugin *plugin); 106 gboolean (*load)(GaimPlugin *plugin);
108 gboolean (*unload)(GaimPlugin *plugin); 107 gboolean (*unload)(GaimPlugin *plugin);