| 1 #include "internal.h" |
|
| 2 #include "debug.h" |
|
| 3 #include "plugin.h" |
|
| 4 #include "version.h" |
|
| 5 |
|
| 6 /** Plugin id : type-author-name (to guarantee uniqueness) */ |
|
| 7 #define SIMPLE_PLUGIN_ID "core-ewarmenhoven-simple" |
|
| 8 |
|
| 9 static gboolean |
|
| 10 plugin_load(GaimPlugin *plugin) |
|
| 11 { |
|
| 12 gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin loaded.\n"); |
|
| 13 |
|
| 14 return TRUE; |
|
| 15 } |
|
| 16 |
|
| 17 static gboolean |
|
| 18 plugin_unload(GaimPlugin *plugin) |
|
| 19 { |
|
| 20 gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin unloaded.\n"); |
|
| 21 |
|
| 22 return TRUE; |
|
| 23 } |
|
| 24 |
|
| 25 static GaimPluginInfo info = |
|
| 26 { |
|
| 27 GAIM_PLUGIN_MAGIC, |
|
| 28 GAIM_MAJOR_VERSION, |
|
| 29 GAIM_MINOR_VERSION, |
|
| 30 GAIM_PLUGIN_STANDARD, /**< type */ |
|
| 31 NULL, /**< ui_requirement */ |
|
| 32 0, /**< flags */ |
|
| 33 NULL, /**< dependencies */ |
|
| 34 GAIM_PRIORITY_DEFAULT, /**< priority */ |
|
| 35 |
|
| 36 SIMPLE_PLUGIN_ID, /**< id */ |
|
| 37 N_("Simple Plugin"), /**< name */ |
|
| 38 VERSION, /**< version */ |
|
| 39 /** summary */ |
|
| 40 N_("Tests to see that most things are working."), |
|
| 41 /** description */ |
|
| 42 N_("Tests to see that most things are working."), |
|
| 43 "Eric Warmenhoven <eric@warmenhoven.org>", /**< author */ |
|
| 44 GAIM_WEBSITE, /**< homepage */ |
|
| 45 |
|
| 46 plugin_load, /**< load */ |
|
| 47 plugin_unload, /**< unload */ |
|
| 48 NULL, /**< destroy */ |
|
| 49 |
|
| 50 NULL, /**< ui_info */ |
|
| 51 NULL, /**< extra_info */ |
|
| 52 NULL, |
|
| 53 NULL |
|
| 54 }; |
|
| 55 |
|
| 56 static void |
|
| 57 init_plugin(GaimPlugin *plugin) |
|
| 58 { |
|
| 59 } |
|
| 60 |
|
| 61 GAIM_INIT_PLUGIN(simple, init_plugin, info) |
|