/soc/2013/ankitkv/gobjectification: b860bdf364a1: Fixed static l...

Ankit Vani a at nevitus.org
Mon Sep 16 12:03:09 EDT 2013


Changeset: b860bdf364a1d9c18ec622f8b314aca826523684
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-16 21:06 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/b860bdf364a1

Description:

Fixed static linking of protocols

diffstat:

 libpurple/plugins.h |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (57 lines):

diff --git a/libpurple/plugins.h b/libpurple/plugins.h
--- a/libpurple/plugins.h
+++ b/libpurple/plugins.h
@@ -173,7 +173,7 @@ struct _PurplePluginAction {
  *
  * Defines the plugin's entry points.
  */
-#if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PROTOCOL)
+#if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL)
 #define PURPLE_PLUGIN_INIT(pluginname,pluginquery,pluginload,pluginunload) \
 	PurplePluginInfo * pluginname##_plugin_query(void); \
 	PurplePluginInfo * pluginname##_plugin_query(void) { \
@@ -193,7 +193,7 @@ struct _PurplePluginAction {
 		if (e) g_error_free(e); \
 		return unloaded; \
 	}
-#else /* PURPLE_PLUGINS  && !PURPLE_STATIC_PROTOCOL */
+#else /* PURPLE_PLUGINS  && !PURPLE_STATIC_PRPL */
 #define PURPLE_PLUGIN_INIT(pluginname,pluginquery,pluginload,pluginunload) \
 	G_MODULE_EXPORT GPluginPluginInfo *gplugin_plugin_query(GError **e); \
 	G_MODULE_EXPORT GPluginPluginInfo *gplugin_plugin_query(GError **e) { \
@@ -224,7 +224,7 @@ struct _PurplePluginAction {
  * @param t_n  The name of the new type, in lowercase, words separated by '_'.
  * @param T_P  The #GType of the parent type.
  */
-#if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PROTOCOL)
+#if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL)
 #define PURPLE_DEFINE_TYPE(TN, t_n, T_P) PURPLE_DEFINE_STATIC_TYPE(TN, t_n, T_P)
 #else
 #define PURPLE_DEFINE_TYPE(TN, t_n, T_P) PURPLE_DEFINE_DYNAMIC_TYPE(TN, t_n, T_P)
@@ -242,7 +242,7 @@ struct _PurplePluginAction {
  * @param flags  #GTypeFlags to register the type with.
  * @param CODE   Custom code that gets inserted in *_get_type().
  */
-#if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PROTOCOL)
+#if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL)
 #define PURPLE_DEFINE_TYPE_EXTENDED PURPLE_DEFINE_STATIC_TYPE_EXTENDED
 #else
 #define PURPLE_DEFINE_TYPE_EXTENDED PURPLE_DEFINE_DYNAMIC_TYPE_EXTENDED
@@ -275,7 +275,7 @@ struct _PurplePluginAction {
  * @param TYPE_IFACE  The #GType of the interface to add.
  * @param iface_init  The interface init function.
  */
-#if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PROTOCOL)
+#if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL)
 #define PURPLE_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init) \
 	PURPLE_IMPLEMENT_INTERFACE_STATIC(TYPE_IFACE, iface_init)
 #else
@@ -354,7 +354,7 @@ GType type_name##_get_type(void) { \
 	return type_name##_type_id; \
 } \
 void type_name##_register_type(PurplePlugin *); \
-void type_name##_register_type(PurplePlugin *) { }
+void type_name##_register_type(PurplePlugin *plugin) { }
 
 G_BEGIN_DECLS
 



More information about the Commits mailing list