/soc/2013/ankitkv/gobjectification: 440525358dfb: Removed the IP...

Ankit Vani a at nevitus.org
Thu Sep 19 06:41:58 EDT 2013


Changeset: 440525358dfb51b2dd4ecfac1b173dfc43a4f43d
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-19 16:10 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/440525358dfb

Description:

Removed the IPC tests

diffstat:

 libpurple/plugins/Makefile.am       |    2 -
 libpurple/plugins/ipc-test-client.c |  114 ------------------------------------
 libpurple/plugins/ipc-test-server.c |   99 -------------------------------
 3 files changed, 0 insertions(+), 215 deletions(-)

diffs (235 lines):

diff --git a/libpurple/plugins/Makefile.am b/libpurple/plugins/Makefile.am
--- a/libpurple/plugins/Makefile.am
+++ b/libpurple/plugins/Makefile.am
@@ -136,8 +136,6 @@ EXTRA_DIST = \
 	dbus-buddyicons-example.py \
 	filectl.c \
 	fortuneprofile.pl \
-	ipc-test-client.c \
-	ipc-test-server.c \
 	startup.py
 
 AM_CPPFLAGS = \
diff --git a/libpurple/plugins/ipc-test-client.c b/libpurple/plugins/ipc-test-client.c
deleted file mode 100644
--- a/libpurple/plugins/ipc-test-client.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * IPC test client plugin.
- *
- * Copyright (C) 2003 Christian Hammond.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02111-1301, USA.
- */
-#include "internal.h"
-#include "debug.h"
-#include "plugins.h"
-#include "version.h"
-
-#define IPC_TEST_CLIENT_PLUGIN_ID "core-ipc-test-client"
-
-static gboolean
-plugin_load(PurplePlugin *plugin)
-{
-	PurplePlugin *server_plugin;
-	gboolean ok;
-	int result;
-
-	server_plugin = purple_plugins_find_with_id("core-ipc-test-server");
-
-	if (server_plugin == NULL)
-	{
-		purple_debug_error("ipc-test-client",
-						 "Unable to locate plugin core-ipc-test-server, "
-						 "needed for IPC.\n");
-
-		return TRUE;
-	}
-
-	result = (int)purple_plugin_ipc_call(server_plugin, "add", &ok, 36, 6);
-
-	if (!ok)
-	{
-		purple_debug_error("ipc-test-client",
-						 "Unable to call IPC function 'add' in "
-						 "core-ipc-test-server plugin.");
-
-		return TRUE;
-	}
-
-	purple_debug_info("ipc-test-client", "36 + 6 = %d\n", result);
-
-	result = (int)purple_plugin_ipc_call(server_plugin, "sub", &ok, 50, 8);
-
-	if (!ok)
-	{
-		purple_debug_error("ipc-test-client",
-						 "Unable to call IPC function 'sub' in "
-						 "core-ipc-test-server plugin.");
-
-		return TRUE;
-	}
-
-	purple_debug_info("ipc-test-client", "50 - 8 = %d\n", result);
-
-	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       */
-
-	IPC_TEST_CLIENT_PLUGIN_ID,                        /**< id             */
-	N_("IPC Test Client"),                            /**< name           */
-	DISPLAY_VERSION,                                  /**< version        */
-	                                                  /**  summary        */
-	N_("Test plugin IPC support, as a client."),
-	                                                  /**  description    */
-	N_("Test plugin IPC support, as a client. This locates the server "
-	   "plugin and calls the commands registered."),
-	"Christian Hammond <chipx86 at gnupdate.org>",       /**< author         */
-	PURPLE_WEBSITE,                                     /**< homepage       */
-
-	plugin_load,                                      /**< load           */
-	NULL,                                             /**< unload         */
-	NULL,                                             /**< destroy        */
-
-	NULL,                                             /**< ui_info        */
-	NULL,                                             /**< extra_info     */
-	NULL,
-	NULL
-};
-
-static void
-init_plugin(PurplePlugin *plugin)
-{
-	info.dependencies = g_list_append(info.dependencies,
-									  "core-ipc-test-server");
-}
-
-PURPLE_INIT_PLUGIN(ipctestclient, init_plugin, info)
diff --git a/libpurple/plugins/ipc-test-server.c b/libpurple/plugins/ipc-test-server.c
deleted file mode 100644
--- a/libpurple/plugins/ipc-test-server.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * IPC test server plugin.
- *
- * Copyright (C) 2003 Christian Hammond.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02111-1301, USA.
- */
-#define IPC_TEST_SERVER_PLUGIN_ID "core-ipc-test-server"
-
-#include "internal.h"
-#include "debug.h"
-#include "plugins.h"
-#include "version.h"
-
-static int
-add_func(int i1, int i2)
-{
-	purple_debug_misc("ipc-test-server", "Got %d, %d, returning %d\n",
-					i1, i2, i1 + i2);
-	return i1 + i2;
-}
-
-static int
-sub_func(int i1, int i2)
-{
-	purple_debug_misc("ipc-test-server", "Got %d, %d, returning %d\n",
-					i1, i2, i1 - i2);
-	return i1 - i2;
-}
-
-static gboolean
-plugin_load(PurplePlugin *plugin)
-{
-	purple_plugin_ipc_register(plugin, "add", PURPLE_CALLBACK(add_func),
-							 purple_marshal_INT__INT_INT,
-							 purple_value_new(PURPLE_TYPE_INT), 2,
-							 purple_value_new(PURPLE_TYPE_INT),
-							 purple_value_new(PURPLE_TYPE_INT));
-
-	purple_plugin_ipc_register(plugin, "sub", PURPLE_CALLBACK(sub_func),
-							 purple_marshal_INT__INT_INT,
-							 purple_value_new(PURPLE_TYPE_INT), 2,
-							 purple_value_new(PURPLE_TYPE_INT),
-							 purple_value_new(PURPLE_TYPE_INT));
-
-	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       */
-
-	IPC_TEST_SERVER_PLUGIN_ID,                        /**< id             */
-	N_("IPC Test Server"),                            /**< name           */
-	DISPLAY_VERSION,                                  /**< version        */
-	                                                  /**  summary        */
-	N_("Test plugin IPC support, as a server."),
-	                                                  /**  description    */
-	N_("Test plugin IPC support, as a server. This registers the IPC "
-	   "commands."),
-	"Christian Hammond <chipx86 at gnupdate.org>",       /**< author         */
-	PURPLE_WEBSITE,                                     /**< homepage       */
-
-	plugin_load,                                      /**< load           */
-	NULL,                                             /**< unload         */
-	NULL,                                             /**< destroy        */
-
-	NULL,                                             /**< ui_info        */
-	NULL,                                             /**< extra_info     */
-	NULL,
-	NULL
-};
-
-static void
-init_plugin(PurplePlugin *plugin)
-{
-}
-
-PURPLE_INIT_PLUGIN(ipctestserver, init_plugin, info)



More information about the Commits mailing list