Mercurial > pidgin
view libpurple/plugins/simple.c @ 29341:a52831eada67
Add pidgin-2 and purple-2 .pc variants
Instead of adding ${includedir}/libpurple to the include path, purple-2 adds
${includedir}. This allows projects to #include <libpurple/debug.h> rather than
#include <debug.h>, which prevents libpurple's headers colliding with the
project's own, and is more conventional.
media/codec.h needed tweaking to compile.
| author | Will Thompson <will.thompson@collabora.co.uk> |
|---|---|
| date | Sun, 20 Dec 2009 18:03:58 +0000 |
| parents | 3cc856ca2338 |
| children |
line wrap: on
line source
#include "internal.h" #include "debug.h" #include "plugin.h" #include "version.h" /** Plugin id : type-author-name (to guarantee uniqueness) */ #define SIMPLE_PLUGIN_ID "core-ewarmenhoven-simple" static gboolean plugin_load(PurplePlugin *plugin) { purple_debug(PURPLE_DEBUG_INFO, "simple", "simple plugin loaded.\n"); return TRUE; } static gboolean plugin_unload(PurplePlugin *plugin) { purple_debug(PURPLE_DEBUG_INFO, "simple", "simple plugin unloaded.\n"); return TRUE; } static PurplePluginInfo info = { PURPLE_PLUGIN_MAGIC, PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, PURPLE_PLUGIN_STANDARD, /**< type */ NULL, /**< ui_requirement */ 0, /**< flags */ NULL, /**< dependencies */ PURPLE_PRIORITY_DEFAULT, /**< priority */ SIMPLE_PLUGIN_ID, /**< id */ N_("Simple Plugin"), /**< name */ DISPLAY_VERSION, /**< version */ /** summary */ N_("Tests to see that most things are working."), /** description */ N_("Tests to see that most things are working."), "Eric Warmenhoven <eric@warmenhoven.org>", /**< author */ PURPLE_WEBSITE, /**< homepage */ plugin_load, /**< load */ plugin_unload, /**< unload */ NULL, /**< destroy */ NULL, /**< ui_info */ NULL, /**< extra_info */ NULL, NULL, /* Padding */ NULL, NULL, NULL, NULL }; static void init_plugin(PurplePlugin *plugin) { } PURPLE_INIT_PLUGIN(simple, init_plugin, info)
