Mercurial > pidgin.yaz
diff libpurple/conversation.c @ 32705:588f9b808a31
Hide struct _PurpleConversation.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 01 Oct 2011 16:48:40 +0000 |
parents | c39583aad67c |
children | f75041cb3fec |
line wrap: on
line diff
--- a/libpurple/conversation.c Sat Oct 01 16:21:16 2011 +0000 +++ b/libpurple/conversation.c Sat Oct 01 16:48:40 2011 +0000 @@ -110,6 +110,40 @@ gpointer ui_data; }; +/** + * A core representation of a conversation between two or more people. + * + * The conversation can be an IM or a chat. + */ +struct _PurpleConversation +{ + PurpleConversationType type; /**< The type of conversation. */ + + PurpleAccount *account; /**< The user using this conversation. */ + + + char *name; /**< The name of the conversation. */ + char *title; /**< The window title. */ + + gboolean logging; /**< The status of logging. */ + + GList *logs; /**< This conversation's logs */ + + union + { + PurpleConvIm *im; /**< IM-specific data. */ + PurpleConvChat *chat; /**< Chat-specific data. */ + } u; + + PurpleConversationUiOps *ui_ops; /**< UI-specific operations. */ + void *ui_data; /**< UI-specific data. */ + + GHashTable *data; /**< Plugin-specific data. */ + + PurpleConnectionFlags features; /**< The supported features */ + GList *message_history; /**< Message history, as a GList of PurpleConvMessage's */ +}; + static GList *conversations = NULL; static GList *ims = NULL;