/cpw/tomkiewicz/http: 9841cd35df83: Temporary http api testing e...

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Fri Oct 12 18:12:06 EDT 2012


Changeset: 9841cd35df83e6ecb923e2f15e355d0473023f90
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-10-13 00:11 +0200
Branch:	 default
URL: http://hg.pidgin.im/cpw/tomkiewicz/http/rev/9841cd35df83

Description:

Temporary http api testing entry point

diffstat:

 libpurple/protocols/gg/gg.c |  12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diffs (29 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
@@ -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 @@ static GList *ggp_actions(PurplePlugin *
 	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);



More information about the Commits mailing list