/soc/2013/ankitkv/gobjectification: ec739e43a71c: Added purple_c...

Ankit Vani a at nevitus.org
Sat Jun 22 13:17:16 EDT 2013


Changeset: ec739e43a71c7f47870d000c09312566b0ba62f3
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-22 22:47 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/ec739e43a71c

Description:

Added purple_conversation_* functions to API to redirect to virtual methods

diffstat:

 libpurple/conversation.h |  37 +++++++++++++++++++++++--------------
 1 files changed, 23 insertions(+), 14 deletions(-)

diffs (56 lines):

diff --git a/libpurple/conversation.h b/libpurple/conversation.h
--- a/libpurple/conversation.h
+++ b/libpurple/conversation.h
@@ -136,22 +136,10 @@ struct _PurpleConversationClass {
 			const char *message, PurpleConversationMessageFlags flags,
 			time_t mtime);
 
-	/** TODO pure virtual
-	 * Sends a message to this conversation.
-	 *
-	 * @param conv    The conversation.
-	 * @param message The message to send.
-	 */
+	/** @copydoc purple_conversation_send() TODO */
 	void (*send)(PurpleConversation *conv, const char *message);
 
-	/** TODO pure virtual
-	 * Sends a message to this conversation with specified flags.
-	 *
-	 * @param conv    The conversation.
-	 * @param message The message to send.
-	 * @param flags   The PurpleConversationMessageFlags flags to use in addition to
-	 *                PURPLE_CONVERSATION_MESSAGE_SEND.
-	 */
+	/** @copydoc purple_conversation_send_with_flags() TODO */
 	void (*send_with_flags)(PurpleConversation *conv,
 			const char *message, PurpleConversationMessageFlags flags);
 
@@ -464,6 +452,27 @@ void purple_conversation_write(PurpleCon
 		const char *message, PurpleConversationMessageFlags flags,
 		time_t mtime);
 
+/** TODO pure virtual
+ * Sends a message to this conversation.
+ *
+ * @param conv    The conversation.
+ * @param message The message to send.
+ */
+/** @copydoc purple_conversation_send() TODO */
+void purple_conversation_send(PurpleConversation *conv, const char *message);
+
+/** TODO pure virtual
+ * Sends a message to this conversation with specified flags.
+ *
+ * @param conv    The conversation.
+ * @param message The message to send.
+ * @param flags   The PurpleConversationMessageFlags flags to use in addition to
+ *                PURPLE_CONVERSATION_MESSAGE_SEND.
+ */
+/** @copydoc purple_conversation_send_with_flags() TODO */
+void purple_conversation_send_with_flags(PurpleConversation *conv,
+		const char *message, PurpleConversationMessageFlags flags);
+
 /**
 	Set the features as supported for the given conversation.
 	@param conv      The conversation



More information about the Commits mailing list