#include #include #include "version.h" #include "pidgin.h" #include "gtkconv.h" #include "gtkplugin.h" #define SEND_BUTTON_PLUGIN_ID "gtk-send-button" static gboolean plugin_load(PurplePlugin *plugin) { g_print("plugin_load: Entering\n"); return TRUE; } static gboolean plugin_unload(PurplePlugin *plugin) { g_print("plugin_unload: Entering\n"); return TRUE; } static void plugin_init(PurplePlugin *plugin) { g_print("plugin_init: Entering\n"); } static PurplePluginInfo info = { PURPLE_PLUGIN_MAGIC, PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, PURPLE_PLUGIN_STANDARD, /**< type */ PIDGIN_PLUGIN_TYPE, /**< ui_requirement */ 0, /**< flags */ NULL, /**< dependencies */ PURPLE_PRIORITY_DEFAULT, /**< priority */ SEND_BUTTON_PLUGIN_ID, /**< id */ N_("Send Button"), /**< name */ VERSION, /**< version */ /** summary */ N_("Adds a button you can click to send your message"), /** description */ N_("Adds a button to the conversation window for sending messages when a physical keyboard is unavailable."), "Gabriel Schulhof ", /**< author */ "http://pidgin.garage.maemo.org/", /**< homepage */ plugin_load, /**< load */ plugin_unload, /**< unload */ NULL, /**< destroy */ NULL, /**< ui_info */ NULL, /**< extra_info */ NULL, NULL, /* padding */ NULL, NULL, NULL, NULL }; PURPLE_INIT_PLUGIN(NULL, plugin_init, info) /* 1. Compiled with: cc -g -Wall -O0 -shared '-DVERSION="0.0.1"' `pkg-config --cflags --libs pidgin` send-button.c -o send-button.so 2. Copied send-button.so to /usr/lib/pidgin 3. Started Pidgin 4. Not showing up in Tools -> Plugins */