libpurple/conversation.h

branch
soc.2013.gobjectification.plugins
changeset 37040
91119588bc3a
parent 37035
e85ed7f4d6e3
parent 35397
31fa3a1aeff5
child 37054
79721d976ad0
--- a/libpurple/conversation.h	Fri Jan 31 19:42:12 2014 +0530
+++ b/libpurple/conversation.h	Fri Jan 31 20:07:33 2014 +0530
@@ -39,77 +39,103 @@
 /** Data Structures                                                       */
 /**************************************************************************/
 
-/** @copydoc _PurpleConversation */
 typedef struct _PurpleConversation           PurpleConversation;
-/** @copydoc _PurpleConversation */
 typedef struct _PurpleConversationClass      PurpleConversationClass;
 
-/** @copydoc _PurpleConversationUiOps */
 typedef struct _PurpleConversationUiOps      PurpleConversationUiOps;
-/** @copydoc _PurpleConversationMessage */
+
 typedef struct _PurpleConversationMessage    PurpleConversationMessage;
 
 /**
+ * PurpleConversationUpdateType:
+ * @PURPLE_CONVERSATION_UPDATE_ADD:      The buddy associated with the
+ *                                       conversation was added.
+ * @PURPLE_CONVERSATION_UPDATE_REMOVE:   The buddy associated with the
+ *                                       conversation was removed.
+ * @PURPLE_CONVERSATION_UPDATE_ACCOUNT:  The purple_account was changed.
+ * @PURPLE_CONVERSATION_UPDATE_TYPING:   The typing state was updated.
+ * @PURPLE_CONVERSATION_UPDATE_UNSEEN:   The unseen state was updated.
+ * @PURPLE_CONVERSATION_UPDATE_LOGGING:  Logging for this conversation was
+ *                                       enabled or disabled.
+ * @PURPLE_CONVERSATION_UPDATE_TOPIC:    The topic for a chat was updated.
+ * @PURPLE_CONVERSATION_UPDATE_E2EE:     The End-to-end encryption state was
+ *                                       updated.
+ * @PURPLE_CONVERSATION_ACCOUNT_ONLINE:  One of the user's accounts went online.
+ * @PURPLE_CONVERSATION_ACCOUNT_OFFLINE: One of the user's accounts went
+ *                                       offline.
+ * @PURPLE_CONVERSATION_UPDATE_AWAY:     The other user went away.
+ * @PURPLE_CONVERSATION_UPDATE_ICON:     The other user's buddy icon changed.
+ * @PURPLE_CONVERSATION_UPDATE_FEATURES: The features for a chat have changed.
+ *
  * Conversation update type.
  */
 typedef enum
 {
-	PURPLE_CONVERSATION_UPDATE_ADD = 0, /**< The buddy associated with the conversation
-	                                         was added.   */
-	PURPLE_CONVERSATION_UPDATE_REMOVE,  /**< The buddy associated with the conversation
-	                                         was removed. */
-	PURPLE_CONVERSATION_UPDATE_ACCOUNT, /**< The purple_account was changed. */
-	PURPLE_CONVERSATION_UPDATE_TYPING,  /**< The typing state was updated. */
-	PURPLE_CONVERSATION_UPDATE_UNSEEN,  /**< The unseen state was updated. */
-	PURPLE_CONVERSATION_UPDATE_LOGGING, /**< Logging for this conversation was
-	                                         enabled or disabled. */
-	PURPLE_CONVERSATION_UPDATE_TOPIC,   /**< The topic for a chat was updated. */
-	PURPLE_CONVERSATION_UPDATE_E2EE,    /**< The End-to-end encryption state was
-	                                         updated. */
+	PURPLE_CONVERSATION_UPDATE_ADD = 0,
+	PURPLE_CONVERSATION_UPDATE_REMOVE,
+	PURPLE_CONVERSATION_UPDATE_ACCOUNT,
+	PURPLE_CONVERSATION_UPDATE_TYPING,
+	PURPLE_CONVERSATION_UPDATE_UNSEEN,
+	PURPLE_CONVERSATION_UPDATE_LOGGING,
+	PURPLE_CONVERSATION_UPDATE_TOPIC,
+	PURPLE_CONVERSATION_UPDATE_E2EE,
+
 	/*
 	 * XXX These need to go when we implement a more generic core/UI event
 	 * system.
 	 */
-	PURPLE_CONVERSATION_ACCOUNT_ONLINE,  /**< One of the user's accounts went online.  */
-	PURPLE_CONVERSATION_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */
-	PURPLE_CONVERSATION_UPDATE_AWAY,     /**< The other user went away.                */
-	PURPLE_CONVERSATION_UPDATE_ICON,     /**< The other user's buddy icon changed.     */
+	PURPLE_CONVERSATION_ACCOUNT_ONLINE,
+	PURPLE_CONVERSATION_ACCOUNT_OFFLINE,
+	PURPLE_CONVERSATION_UPDATE_AWAY,
+	PURPLE_CONVERSATION_UPDATE_ICON,
 	PURPLE_CONVERSATION_UPDATE_NAME,
 	PURPLE_CONVERSATION_UPDATE_TITLE,
 	PURPLE_CONVERSATION_UPDATE_CHATLEFT,
 
-	PURPLE_CONVERSATION_UPDATE_FEATURES  /**< The features for a chat have changed */
+	PURPLE_CONVERSATION_UPDATE_FEATURES
 
 } PurpleConversationUpdateType;
 
 /**
+ * PurpleMessageFlags:
+ * @PURPLE_MESSAGE_SEND:        Outgoing message.
+ * @PURPLE_MESSAGE_RECV:        Incoming message.
+ * @PURPLE_MESSAGE_SYSTEM:      System message.
+ * @PURPLE_MESSAGE_AUTO_RESP:   Auto response.
+ * @PURPLE_MESSAGE_ACTIVE_ONLY: Hint to the UI that this message should not be
+ *                              shown in conversations which are only open for
+ *                              internal UI purposes (e.g. for contact-aware
+ *                              conversations).
+ * @PURPLE_MESSAGE_NICK:        Contains your nick.
+ * @PURPLE_MESSAGE_NO_LOG:      Do not log.
+ * @PURPLE_MESSAGE_WHISPER:     Whispered message.
+ * @PURPLE_MESSAGE_ERROR:       Error message.
+ * @PURPLE_MESSAGE_DELAYED:     Delayed message.
+ * @PURPLE_MESSAGE_RAW:         "Raw" message - don't apply formatting
+ * @PURPLE_MESSAGE_IMAGES:      Message contains images
+ * @PURPLE_MESSAGE_NOTIFY:      Message is a notification
+ * @PURPLE_MESSAGE_NO_LINKIFY:  Message should not be auto-linkified
+ * @PURPLE_MESSAGE_INVISIBLE:   Message should not be displayed
+ *
  * Flags applicable to a message. Most will have send, recv or system.
  */
 typedef enum /*< flags >*/
 {
-	PURPLE_MESSAGE_SEND        = 0x0001, /**< Outgoing message.        */
-	PURPLE_MESSAGE_RECV        = 0x0002, /**< Incoming message.        */
-	PURPLE_MESSAGE_SYSTEM      = 0x0004, /**< System message.          */
-	PURPLE_MESSAGE_AUTO_RESP   = 0x0008, /**< Auto response.           */
-	PURPLE_MESSAGE_ACTIVE_ONLY = 0x0010,  /**< Hint to the UI that this
-	                                           message should not be
-	                                           shown in conversations
-	                                           which are only open for
-	                                           internal UI purposes
-	                                           (e.g. for contact-aware
-	                                           conversations).         */
-	PURPLE_MESSAGE_NICK        = 0x0020, /**< Contains your nick.      */
-	PURPLE_MESSAGE_NO_LOG      = 0x0040, /**< Do not log.              */
-	PURPLE_MESSAGE_WHISPER     = 0x0080, /**< Whispered message.       */
-	PURPLE_MESSAGE_ERROR       = 0x0200, /**< Error message.           */
-	PURPLE_MESSAGE_DELAYED     = 0x0400, /**< Delayed message.         */
-	PURPLE_MESSAGE_RAW         = 0x0800, /**< "Raw" message - don't
-	                                           apply formatting        */
-	PURPLE_MESSAGE_IMAGES      = 0x1000, /**< Message contains images  */
-	PURPLE_MESSAGE_NOTIFY      = 0x2000, /**< Message is a notification */
-	PURPLE_MESSAGE_NO_LINKIFY  = 0x4000, /**< Message should not be auto-
-										      linkified */
-	PURPLE_MESSAGE_INVISIBLE   = 0x8000  /**< Message should not be displayed */
+	PURPLE_MESSAGE_SEND        = 0x0001,
+	PURPLE_MESSAGE_RECV        = 0x0002,
+	PURPLE_MESSAGE_SYSTEM      = 0x0004,
+	PURPLE_MESSAGE_AUTO_RESP   = 0x0008,
+	PURPLE_MESSAGE_ACTIVE_ONLY = 0x0010,
+	PURPLE_MESSAGE_NICK        = 0x0020,
+	PURPLE_MESSAGE_NO_LOG      = 0x0040,
+	PURPLE_MESSAGE_WHISPER     = 0x0080,
+	PURPLE_MESSAGE_ERROR       = 0x0200,
+	PURPLE_MESSAGE_DELAYED     = 0x0400,
+	PURPLE_MESSAGE_RAW         = 0x0800,
+	PURPLE_MESSAGE_IMAGES      = 0x1000,
+	PURPLE_MESSAGE_NOTIFY      = 0x2000,
+	PURPLE_MESSAGE_NO_LINKIFY  = 0x4000,
+	PURPLE_MESSAGE_INVISIBLE   = 0x8000
 } PurpleMessageFlags;
 
 #include <glib.h>
@@ -119,6 +145,11 @@
 /** PurpleConversation                                                    */
 /**************************************************************************/
 /**
+ * PurpleConversation:
+ * @ui_data: The UI data associated with this conversation. This is a
+ *           convenience field provided to the UIs -- it is not used by the
+ *           libpurple core.
+ *
  * A core representation of a conversation between two or more people.
  *
  * The conversation can be an IM or a chat.
@@ -132,13 +163,14 @@
 {
 	GObject gparent;
 
-	/** The UI data associated with this conversation. This is a convenience
-	 *  field provided to the UIs -- it is not used by the libpurple core.
-	 */
 	gpointer ui_data;
 };
 
-/** Base class for all #PurpleConversation's */
+/**
+ * PurpleConversationClass:
+ *
+ * Base class for all #PurpleConversation's
+ */
 struct _PurpleConversationClass {
 	GObjectClass parent_class;
 
@@ -164,6 +196,8 @@
 /** PurpleConversationUiOps                                               */
 /**************************************************************************/
 /**
+ * PurpleConversationUiOps:
+ *
  * Conversation operations and events.
  *
  * Any UI representing a conversation must assign a filled-out
@@ -171,12 +205,12 @@
  */
 struct _PurpleConversationUiOps
 {
-	/** Called when @a conv is created (but before the @ref
+	/** Called when @conv is created (but before the @ref
 	 *  conversation-created signal is emitted).
 	 */
 	void (*create_conversation)(PurpleConversation *conv);
 
-	/** Called just before @a conv is freed. */
+	/** Called just before @conv is freed. */
 	void (*destroy_conversation)(PurpleConversation *conv);
 	/** Write a message to a chat.  If this field is %NULL, libpurple will
 	 *  fall back to using #write_conv.
@@ -207,8 +241,8 @@
 	                   PurpleMessageFlags flags,
 	                   time_t mtime);
 
-	/** Add @a cbuddies to a chat.
-	 *  @cbuddies:      A @c GList of #PurpleChatUser structs.
+	/** Add @cbuddies to a chat.
+	 *  @cbuddies:      A GList of #PurpleChatUser structs.
 	 *  @new_arrivals:  Whether join notices should be shown.
 	 *                       (Join notices are actually written to the
 	 *                       conversation by
@@ -217,15 +251,15 @@
 	void (*chat_add_users)(PurpleChatConversation *chat,
 	                       GList *cbuddies,
 	                       gboolean new_arrivals);
-	/** Rename the user in this chat named @a old_name to @a new_name.  (The
+	/** Rename the user in this chat named @old_name to @new_name.  (The
 	 *  rename message is written to the conversation by libpurple.)
-	 *  @new_alias:  @a new_name's new alias, if they have one.
+	 *  @new_alias:  @new_name's new alias, if they have one.
 	 *  @see purple_chat_conversation_add_users()
 	 */
 	void (*chat_rename_user)(PurpleChatConversation *chat, const char *old_name,
 	                         const char *new_name, const char *new_alias);
-	/** Remove @a users from a chat.
-	 *  @users:    A @c GList of <tt>const char *</tt>s.
+	/** Remove @users from a chat.
+	 *  @users:    A GList of <tt>const char *</tt>s.
 	 *  @see purple_chat_conversation_rename_user()
 	 */
 	void (*chat_remove_users)(PurpleChatConversation *chat, GList *users);
@@ -252,7 +286,7 @@
 	                            const guchar *data, gsize size);
 	void (*custom_smiley_close)(PurpleConversation *conv, const char *smile);
 
-	/** Prompt the user for confirmation to send @a message.  This function
+	/** Prompt the user for confirmation to send @message.  This function
 	 *  should arrange for the message to be sent if the user accepts.  If
 	 *  this field is %NULL, libpurple will fall back to using
 	 *  #purple_request_action().
@@ -274,127 +308,143 @@
 /*@{*/
 
 /**
+ * purple_conversation_get_type:
+ *
  * Returns the GType for the Conversation object.
  */
 GType purple_conversation_get_type(void);
 
 /**
+ * purple_conversation_present:
+ * @conv: The conversation to present
+ *
  * Present a conversation to the user. This allows core code to initiate a
  * conversation by displaying the IM dialog.
- * @conv: The conversation to present
  */
 void purple_conversation_present(PurpleConversation *conv);
 
 /**
- * Sets the specified conversation's UI operations structure.
- *
+ * purple_conversation_set_ui_ops:
  * @conv: The conversation.
  * @ops:  The UI conversation operations structure.
+ *
+ * Sets the specified conversation's UI operations structure.
  */
 void purple_conversation_set_ui_ops(PurpleConversation *conv,
 								  PurpleConversationUiOps *ops);
 
 /**
- * Returns the specified conversation's UI operations structure.
+ * purple_conversation_get_ui_ops:
+ * @conv: The conversation.
  *
- * @conv: The conversation.
+ * Returns the specified conversation's UI operations structure.
  *
  * Returns: The operations structure.
  */
 PurpleConversationUiOps *purple_conversation_get_ui_ops(const PurpleConversation *conv);
 
 /**
+ * purple_conversation_set_account:
+ * @conv: The conversation.
+ * @account: The purple_account.
+ *
  * Sets the specified conversation's purple_account.
  *
  * This purple_account represents the user using purple, not the person the user
  * is having a conversation/chat/flame with.
- *
- * @conv: The conversation.
- * @account: The purple_account.
  */
 void purple_conversation_set_account(PurpleConversation *conv,
                                    PurpleAccount *account);
 
 /**
+ * purple_conversation_get_account:
+ * @conv: The conversation.
+ *
  * Returns the specified conversation's purple_account.
  *
  * This purple_account represents the user using purple, not the person the user
  * is having a conversation/chat/flame with.
  *
- * @conv: The conversation.
- *
  * Returns: The conversation's purple_account.
  */
 PurpleAccount *purple_conversation_get_account(const PurpleConversation *conv);
 
 /**
- * Returns the specified conversation's purple_connection.
+ * purple_conversation_get_connection:
+ * @conv: The conversation.
  *
- * @conv: The conversation.
+ * Returns the specified conversation's purple_connection.
  *
  * Returns: The conversation's purple_connection.
  */
 PurpleConnection *purple_conversation_get_connection(const PurpleConversation *conv);
 
 /**
- * Sets the specified conversation's title.
- *
+ * purple_conversation_set_title:
  * @conv:  The conversation.
  * @title: The title.
+ *
+ * Sets the specified conversation's title.
  */
 void purple_conversation_set_title(PurpleConversation *conv, const char *title);
 
 /**
- * Returns the specified conversation's title.
+ * purple_conversation_get_title:
+ * @conv: The conversation.
  *
- * @conv: The conversation.
+ * Returns the specified conversation's title.
  *
  * Returns: The title.
  */
 const char *purple_conversation_get_title(const PurpleConversation *conv);
 
 /**
+ * purple_conversation_autoset_title:
+ * @conv: The conversation.
+ *
  * Automatically sets the specified conversation's title.
  *
  * This function takes OPT_IM_ALIAS_TAB into account, as well as the
  * user's alias.
- *
- * @conv: The conversation.
  */
 void purple_conversation_autoset_title(PurpleConversation *conv);
 
 /**
- * Sets the specified conversation's name.
- *
+ * purple_conversation_set_name:
  * @conv: The conversation.
  * @name: The conversation's name.
+ *
+ * Sets the specified conversation's name.
  */
 void purple_conversation_set_name(PurpleConversation *conv, const char *name);
 
 /**
+ * purple_conversation_get_name:
+ * @conv: The conversation.
+ *
  * Returns the specified conversation's name.
  *
- * @conv: The conversation.
- *
- * Returns: The conversation's name. If the conversation is an IM with a PurpleBuddy,
- *         then it's the name of the PurpleBuddy.
+ * Returns: The conversation's name. If the conversation is an IM with a
+ *          PurpleBuddy, then it's the name of the PurpleBuddy.
  */
 const char *purple_conversation_get_name(const PurpleConversation *conv);
 
 /**
- * Sets current E2EE state for the conversation.
- *
+ * purple_conversation_set_e2ee_state:
  * @conv:  The conversation.
  * @state: The E2EE state.
+ *
+ * Sets current E2EE state for the conversation.
  */
 void
 purple_conversation_set_e2ee_state(PurpleConversation *conv,
 	PurpleE2eeState *state);
 
 /**
- * Gets current conversation's E2EE state.
+ * purple_conversation_get_e2ee_state:
+ * @conv: The conversation.
  *
- * @conv: The conversation.
+ * Gets current conversation's E2EE state.
  *
  * Returns: Current E2EE state for conversation.
  */
@@ -402,34 +452,44 @@
 purple_conversation_get_e2ee_state(PurpleConversation *conv);
 
 /**
- * Enables or disables logging for this conversation.
- *
+ * purple_conversation_set_logging:
  * @conv: The conversation.
  * @log:  %TRUE if logging should be enabled, or %FALSE otherwise.
+ *
+ * Enables or disables logging for this conversation.
  */
 void purple_conversation_set_logging(PurpleConversation *conv, gboolean log);
 
 /**
- * Returns whether or not logging is enabled for this conversation.
+ * purple_conversation_is_logging:
+ * @conv: The conversation.
  *
- * @conv: The conversation.
+ * Returns whether or not logging is enabled for this conversation.
  *
  * Returns: %TRUE if logging is enabled, or %FALSE otherwise.
  */
 gboolean purple_conversation_is_logging(const PurpleConversation *conv);
 
 /**
+ * purple_conversation_close_logs:
+ * @conv: The conversation.
+ *
  * Closes any open logs for this conversation.
  *
  * Note that new logs will be opened as necessary (e.g. upon receipt of a
  * message, if the conversation has logging enabled. To disable logging for
  * the remainder of the conversation, use purple_conversation_set_logging().
- *
- * @conv: The conversation.
  */
 void purple_conversation_close_logs(PurpleConversation *conv);
 
 /**
+ * purple_conversation_write:
+ * @conv:    The conversation.
+ * @who:     The user who sent the message.
+ * @message: The message.
+ * @flags:   The message flags.
+ * @mtime:   The time the message was sent.
+ *
  * Writes to a conversation window.
  *
  * This function should not be used to write IM or chat messages. Use
@@ -441,12 +501,6 @@
  * This can be used to write generic messages, such as "so and so closed
  * the conversation window."
  *
- * @conv:    The conversation.
- * @who:     The user who sent the message.
- * @message: The message.
- * @flags:   The message flags.
- * @mtime:   The time the message was sent.
- *
  * @see purple_conversation_write_message()
  */
 void purple_conversation_write(PurpleConversation *conv, const char *who,
@@ -454,57 +508,65 @@
 		time_t mtime);
 
 /**
- * Writes to a chat or an IM.
- *
+ * purple_conversation_write_message:
  * @conv:    The conversation.
  * @who:     The user who sent the message.
  * @message: The message to write.
  * @flags:   The message flags.
  * @mtime:   The time the message was sent.
+ *
+ * Writes to a chat or an IM.
  */
 void purple_conversation_write_message(PurpleConversation *conv,
 		const char *who, const char *message,
 		PurpleMessageFlags flags, time_t mtime);
 
 /**
+ * purple_conversation_send:
+ * @conv:    The conversation.
+ * @message: The message to send.
+ *
  * Sends a message to this conversation. This function calls
  * purple_conversation_send_with_flags() with no additional flags.
- *
- * @conv:    The conversation.
- * @message: The message to send.
  */
 void purple_conversation_send(PurpleConversation *conv, const char *message);
 
 /**
- * Sends a message to this conversation with specified flags.
- *
+ * purple_conversation_send_with_flags:
  * @conv:    The conversation.
  * @message: The message to send.
  * @flags:   The PurpleMessageFlags flags to use in addition to
- *                PURPLE_MESSAGE_SEND.
+ *           PURPLE_MESSAGE_SEND.
+ *
+ * Sends a message to this conversation with specified flags.
  */
 void purple_conversation_send_with_flags(PurpleConversation *conv, const char *message,
 		PurpleMessageFlags flags);
 
 /**
-	Set the features as supported for the given conversation.
-	@conv:      The conversation
-	@features:  Bitset defining supported features
-*/
+ * purple_conversation_set_features:
+ * @conv:      The conversation
+ * @features:  Bitset defining supported features
+ *
+ * Set the features as supported for the given conversation.
+ */
 void purple_conversation_set_features(PurpleConversation *conv,
 		PurpleConnectionFlags features);
 
 
 /**
-	Get the features supported by the given conversation.
-	@conv:  The conversation
-*/
+ * purple_conversation_get_features:
+ * @conv:  The conversation
+ *
+ * Get the features supported by the given conversation.
+ */
 PurpleConnectionFlags purple_conversation_get_features(PurpleConversation *conv);
 
 /**
- * Determines if a conversation has focus
+ * purple_conversation_has_focus:
+ * @conv:    The conversation.
  *
- * @conv:    The conversation.
+ * Determines if a conversation has focus
  *
  * Returns: %TRUE if the conversation has focus, %FALSE if
  * it does not or the UI does not have a concept of conversation focus
@@ -512,43 +574,48 @@
 gboolean purple_conversation_has_focus(PurpleConversation *conv);
 
 /**
- * Updates the visual status and UI of a conversation.
- *
+ * purple_conversation_update:
  * @conv: The conversation.
  * @type: The update type.
+ *
+ * Updates the visual status and UI of a conversation.
  */
 void purple_conversation_update(PurpleConversation *conv, PurpleConversationUpdateType type);
 
 /**
- * Retrieve the message history of a conversation.
- *
+ * purple_conversation_get_message_history:
  * @conv:   The conversation
  *
- * Returns:  A GList of PurpleConversationMessage's. The must not modify the list or the data within.
- *          The list contains the newest message at the beginning, and the oldest message at
- *          the end.
+ * Retrieve the message history of a conversation.
+ *
+ * Returns:  A GList of PurpleConversationMessage's. The must not modify the
+ *           list or the data within. The list contains the newest message at
+ *           the beginning, and the oldest message at the end.
  */
 GList *purple_conversation_get_message_history(PurpleConversation *conv);
 
 /**
- * Clear the message history of a conversation.
+ * purple_conversation_clear_message_history:
+ * @conv:  The conversation
  *
- * @conv:  The conversation
+ * Clear the message history of a conversation.
  */
 void purple_conversation_clear_message_history(PurpleConversation *conv);
 
 /**
- * Set the UI data associated with this conversation.
- *
+ * purple_conversation_set_ui_data:
  * @conv:			The conversation.
  * @ui_data:		A pointer to associate with this conversation.
+ *
+ * Set the UI data associated with this conversation.
  */
 void purple_conversation_set_ui_data(PurpleConversation *conv, gpointer ui_data);
 
 /**
- * Get the UI data associated with this conversation.
+ * purple_conversation_get_ui_data:
+ * @conv:			The conversation.
  *
- * @conv:			The conversation.
+ * Get the UI data associated with this conversation.
  *
  * Returns: The UI data associated with this conversation.  This is a
  *         convenience field provided to the UIs--it is not
@@ -557,6 +624,10 @@
 gpointer purple_conversation_get_ui_data(const PurpleConversation *conv);
 
 /**
+ * purple_conversation_send_confirm:
+ * @conv:    The conversation.
+ * @message: The message to send.
+ *
  * Sends a message to a conversation after confirming with
  * the user.
  *
@@ -564,13 +635,17 @@
  * hasn't explicitly and knowingly caused a message to be sent.
  * The confirmation ensures that the user isn't sending a
  * message by mistake.
- *
- * @conv:    The conversation.
- * @message: The message to send.
  */
 void purple_conversation_send_confirm(PurpleConversation *conv, const char *message);
 
 /**
+ * purple_conversation_custom_smiley_add:
+ * @conv: The conversation to associate the smiley with.
+ * @smile: The text associated with the smiley
+ * @cksum_type: The type of checksum.
+ * @chksum: The checksum, as a NUL terminated base64 string.
+ * @remote: %TRUE if the custom smiley is set by the remote user (buddy).
+ *
  * Adds a smiley to the conversation's smiley tree. If this returns
  * %TRUE you should call purple_conversation_custom_smiley_write() one or more
  * times, and then purple_conversation_custom_smiley_close(). If this returns
@@ -578,11 +653,6 @@
  * found in the cache. In either case, calling write or close would
  * be an error.
  *
- * @conv: The conversation to associate the smiley with.
- * @smile: The text associated with the smiley
- * @cksum_type: The type of checksum.
- * @chksum: The checksum, as a NUL terminated base64 string.
- * @remote: %TRUE if the custom smiley is set by the remote user (buddy).
  * Returns:      %TRUE if an icon is expected, else FALSE. Note that
  *              it is an error to never call purple_conversation_custom_smiley_close if
  *              this function returns %TRUE, but an error to call it if
@@ -594,12 +664,13 @@
 									  gboolean remote);
 
 /**
- * Updates the image associated with the current smiley.
- *
+ * purple_conversation_custom_smiley_write:
  * @conv: The conversation associated with the smiley.
  * @smile: The text associated with the smiley.
  * @data: The actual image data.
  * @size: The length of the data.
+ *
+ * Updates the image associated with the current smiley.
  */
 
 void purple_conversation_custom_smiley_write(PurpleConversation *conv,
@@ -608,20 +679,22 @@
                                    gsize size);
 
 /**
+ * purple_conversation_custom_smiley_close:
+ * @conv: The purple conversation associated with the smiley.
+ * @smile: The text associated with the smiley
+ *
  * Close the custom smiley, all data has been written with
  * purple_conversation_custom_smiley_write, and it is no longer valid
  * to call that function on that smiley.
- *
- * @conv: The purple conversation associated with the smiley.
- * @smile: The text associated with the smiley
  */
 
 void purple_conversation_custom_smiley_close(PurpleConversation *conv, const char *smile);
 
 /**
- * Retrieves the extended menu items for the conversation.
+ * purple_conversation_get_extended_menu:
+ * @conv: The conversation.
  *
- * @conv: The conversation.
+ * Retrieves the extended menu items for the conversation.
  *
  * Returns:  A list of PurpleMenuAction items, harvested by the
  *          chat-extended-menu signal. The list and the menuaction
@@ -630,26 +703,28 @@
 GList * purple_conversation_get_extended_menu(PurpleConversation *conv);
 
 /**
- * Perform a command in a conversation. Similar to @see purple_cmd_do_command
- *
+ * purple_conversation_do_command:
  * @conv:    The conversation.
  * @cmdline: The entire command including the arguments.
  * @markup:  %NULL, or the formatted command line.
  * @error:   If the command failed errormsg is filled in with the appropriate error
  *                message, if not %NULL. It must be freed by the caller with g_free().
  *
+ * Perform a command in a conversation. Similar to @see purple_cmd_do_command
+ *
  * Returns:  %TRUE if the command was executed successfully, %FALSE otherwise.
  */
 gboolean purple_conversation_do_command(PurpleConversation *conv,
 		const gchar *cmdline, const gchar *markup, gchar **error);
 
 /**
+ * purple_conversation_get_max_message_size:
+ * @conv: The conversation to query.
+ *
  * Gets the maximum message size in bytes for the conversation.
  *
  * @see PurplePluginProtocolInfo#get_max_message_size
  *
- * @conv: The conversation to query.
- *
  * Returns: Maximum message size, 0 if unspecified, -1 for infinite.
  */
 gssize
@@ -663,6 +738,11 @@
 /*@{*/
 
 /**
+ * purple_conversation_present_error:
+ * @who:     The user this error is about
+ * @account: The account this error is on
+ * @what:    The error
+ *
  * Presents an IM-error to the user
  *
  * This is a helper function to find a conversation, write an error to it, and
@@ -670,9 +750,6 @@
  * the function will return FALSE and the calling function can attempt to present
  * the error another way (purple_notify_error, most likely)
  *
- * @who:     The user this error is about
- * @account: The account this error is on
- * @what:    The error
  * Returns:        TRUE if the error was presented, else FALSE
  */
 gboolean purple_conversation_present_error(const char *who, PurpleAccount *account, const char *what);
@@ -685,59 +762,67 @@
 /*@{*/
 
 /**
+ * purple_conversation_message_get_type:
+ *
  * Returns the GType for the PurpleConversationMessage boxed structure.
  */
 GType purple_conversation_message_get_type(void);
 
 /**
- * Get the sender from a PurpleConversationMessage
+ * purple_conversation_message_get_sender:
+ * @msg:   A PurpleConversationMessage
  *
- * @msg:   A PurpleConversationMessage
+ * Get the sender from a PurpleConversationMessage
  *
  * Returns:   The name of the sender of the message
  */
 const char *purple_conversation_message_get_sender(const PurpleConversationMessage *msg);
 
 /**
- * Get the message from a PurpleConversationMessage
+ * purple_conversation_message_get_message:
+ * @msg:   A PurpleConversationMessage
  *
- * @msg:   A PurpleConversationMessage
+ * Get the message from a PurpleConversationMessage
  *
  * Returns:   The name of the sender of the message
  */
 const char *purple_conversation_message_get_message(const PurpleConversationMessage *msg);
 
 /**
- * Get the message-flags of a PurpleConversationMessage
+ * purple_conversation_message_get_flags:
+ * @msg:   A PurpleConversationMessage
  *
- * @msg:   A PurpleConversationMessage
+ * Get the message-flags of a PurpleConversationMessage
  *
  * Returns:   The message flags
  */
 PurpleMessageFlags purple_conversation_message_get_flags(const PurpleConversationMessage *msg);
 
 /**
- * Get the timestamp of a PurpleConversationMessage
+ * purple_conversation_message_get_timestamp:
+ * @msg:   A PurpleConversationMessage
  *
- * @msg:   A PurpleConversationMessage
+ * Get the timestamp of a PurpleConversationMessage
  *
  * Returns:   The timestamp of the message
  */
 time_t purple_conversation_message_get_timestamp(const PurpleConversationMessage *msg);
 
 /**
- * Get the alias from a PurpleConversationMessage
+ * purple_conversation_message_get_alias:
+ * @msg:   A PurpleConversationMessage
  *
- * @msg:   A PurpleConversationMessage
+ * Get the alias from a PurpleConversationMessage
  *
  * Returns:   The alias of the sender of the message
  */
 const char *purple_conversation_message_get_alias(const PurpleConversationMessage *msg);
 
 /**
- * Get the conversation associated with the PurpleConversationMessage
+ * purple_conversation_message_get_conversation:
+ * @msg:   A PurpleConversationMessage
  *
- * @msg:   A PurpleConversationMessage
+ * Get the conversation associated with the PurpleConversationMessage
  *
  * Returns:   The conversation
  */

mercurial