Mercurial > pidgin
comparison plugins/simple.c @ 13688:428f86e1fd27
[gaim-migrate @ 16091]
SF Patch #1464437
"1. A sample plugin ID with a comment explaining its purpose
2. One tiny comment alignment fix."
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Mon, 24 Apr 2006 20:41:15 +0000 |
| parents | bb0d7b719af2 |
| children |
comparison
equal
deleted
inserted
replaced
| 13687:22ac7f523fc9 | 13688:428f86e1fd27 |
|---|---|
| 1 #include "internal.h" | 1 #include "internal.h" |
| 2 #include "debug.h" | 2 #include "debug.h" |
| 3 #include "plugin.h" | 3 #include "plugin.h" |
| 4 #include "version.h" | 4 #include "version.h" |
| 5 | |
| 6 /** Plugin id : type-author-name (to guarantee uniqueness) */ | |
| 7 #define SIMPLE_PLUGIN_ID "core-ewarmenhoven-simple" | |
| 5 | 8 |
| 6 static gboolean | 9 static gboolean |
| 7 plugin_load(GaimPlugin *plugin) | 10 plugin_load(GaimPlugin *plugin) |
| 8 { | 11 { |
| 9 gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin loaded.\n"); | 12 gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin loaded.\n"); |
| 28 NULL, /**< ui_requirement */ | 31 NULL, /**< ui_requirement */ |
| 29 0, /**< flags */ | 32 0, /**< flags */ |
| 30 NULL, /**< dependencies */ | 33 NULL, /**< dependencies */ |
| 31 GAIM_PRIORITY_DEFAULT, /**< priority */ | 34 GAIM_PRIORITY_DEFAULT, /**< priority */ |
| 32 | 35 |
| 33 NULL, /**< id */ | 36 SIMPLE_PLUGIN_ID, /**< id */ |
| 34 N_("Simple Plugin"), /**< name */ | 37 N_("Simple Plugin"), /**< name */ |
| 35 VERSION, /**< version */ | 38 VERSION, /**< version */ |
| 36 /** summary */ | 39 /** summary */ |
| 37 N_("Tests to see that most things are working."), | 40 N_("Tests to see that most things are working."), |
| 38 /** description */ | 41 /** description */ |
| 39 N_("Tests to see that most things are working."), | 42 N_("Tests to see that most things are working."), |
| 40 "Eric Warmenhoven <eric@warmenhoven.org>", /**< author */ | 43 "Eric Warmenhoven <eric@warmenhoven.org>", /**< author */ |
| 41 GAIM_WEBSITE, /**< homepage */ | 44 GAIM_WEBSITE, /**< homepage */ |
| 42 | 45 |
| 43 plugin_load, /**< load */ | 46 plugin_load, /**< load */ |
| 44 plugin_unload, /**< unload */ | 47 plugin_unload, /**< unload */ |
| 45 NULL, /**< destroy */ | 48 NULL, /**< destroy */ |
| 46 | 49 |
