Sat, 13 Oct 2012 00:11:57 +0200
Temporary http api testing entry point
| libpurple/protocols/gg/gg.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/gg/gg.c Fri Oct 12 23:03:55 2012 +0200 +++ b/libpurple/protocols/gg/gg.c Sat Oct 13 00:11:57 2012 +0200 @@ -55,6 +55,14 @@ /* ---------------------------------------------------------------------- */ +static void ggp_action_test_http(PurplePluginAction *action) +{ + purple_debug_info("http-test", "Testing http...\n"); + purple_debug_info("http-test", "Testing http done.\n"); +} + +/* ---------------------------------------------------------------------- */ + ggp_buddy_data * ggp_buddy_get_data(PurpleBuddy *buddy) { ggp_buddy_data *buddy_data = purple_buddy_get_protocol_data(buddy); @@ -1314,6 +1322,10 @@ GList *m = NULL; PurplePluginAction *act; + act = purple_plugin_action_new(_("Test new HTTP API"), + ggp_action_test_http); + m = g_list_append(m, act); + act = purple_plugin_action_new(_("Change password..."), ggp_action_chpass); m = g_list_append(m, act);