/soc/2013/ankitkv/gobjectification: 4001f8ff04ce: Add "extra-cb"...
Ankit Vani
a at nevitus.org
Sun Jan 12 09:55:45 EST 2014
Changeset: 4001f8ff04ceedec0dd3a2c6e36f1f6401057e2e
Author: Ankit Vani <a at nevitus.org>
Date: 2014-01-12 20:22 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/4001f8ff04ce
Description:
Add "extra-cb" callback to gg plugin to return the libgadu version
diffstat:
libpurple/protocols/gg/gg.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (24 lines):
diff --git a/libpurple/protocols/gg/gg.c b/libpurple/protocols/gg/gg.c
--- a/libpurple/protocols/gg/gg.c
+++ b/libpurple/protocols/gg/gg.c
@@ -1153,6 +1153,12 @@ PURPLE_DEFINE_TYPE_EXTENDED(
ggp_protocol_xfer_iface_init)
);
+static gchar *
+plugin_extra(PurplePlugin *plugin)
+{
+ return g_strdup_printf("Using libgadu version %s", gg_libgadu_version());
+}
+
static PurplePluginInfo *
plugin_query(GError **error)
{
@@ -1171,6 +1177,7 @@ plugin_query(GError **error)
"authors", authors,
"website", PURPLE_WEBSITE,
"abi-version", PURPLE_ABI_VERSION,
+ "extra-cb", plugin_extra,
"flags", PURPLE_PLUGIN_INFO_FLAGS_INTERNAL |
PURPLE_PLUGIN_INFO_FLAGS_AUTO_LOAD,
NULL
More information about the Commits
mailing list