/soc/2013/ankitkv/gobjectification: a8217d8aafc2: Fixed PURPLE_D...

Ankit Vani a at nevitus.org
Sun Sep 8 02:42:07 EDT 2013


Changeset: a8217d8aafc2981e427b81db5bff1c6947ecfaf7
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-08 12:06 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/a8217d8aafc2

Description:

Fixed PURPLE_DEFINE_TYPE_EXTENDED so that multiple interfaces can be implemented

diffstat:

 libpurple/plugins.h |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (24 lines):

diff --git a/libpurple/plugins.h b/libpurple/plugins.h
--- a/libpurple/plugins.h
+++ b/libpurple/plugins.h
@@ -236,15 +236,16 @@ struct _PurplePluginAction {
  * A more general version of PURPLE_DEFINE_TYPE() which allows you to
  * specify #GTypeFlags and custom code.
  *
+ * @param TN     The name of the new type, in Camel case.
+ * @param t_n    The name of the new type, in lowercase, words separated by '_'.
+ * @param T_P    The #GType of the parent type.
  * @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)
-#define PURPLE_DEFINE_TYPE_EXTENDED(TypeName, type_name, TYPE_PARENT, flags, CODE) \
-	PURPLE_DEFINE_STATIC_TYPE_EXTENDED(TypeName, type_name, TYPE_PARENT, flags, CODE)
+#define PURPLE_DEFINE_TYPE_EXTENDED PURPLE_DEFINE_STATIC_TYPE_EXTENDED
 #else
-#define PURPLE_DEFINE_TYPE_EXTENDED(TypeName, type_name, TYPE_PARENT, flags, CODE) \
-	PURPLE_DEFINE_DYNAMIC_TYPE_EXTENDED(TypeName, type_name, TYPE_PARENT, flags, CODE)
+#define PURPLE_DEFINE_TYPE_EXTENDED PURPLE_DEFINE_DYNAMIC_TYPE_EXTENDED
 #endif
 
 /**



More information about the Commits mailing list