diff src/blist.h @ 5906:390d32a6b130

[gaim-migrate @ 6338] auto-join for chats in the buddy list. Yes, the interface sucks. I suck at making interfaces. I'm sure someone more talented will make it pretty, or maybe even HIG-y. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 16 Jun 2003 05:14:05 +0000
parents 5e93fc46d1af
children 158196b2db19
line wrap: on
line diff
--- a/src/blist.h	Mon Jun 16 04:15:35 2003 +0000
+++ b/src/blist.h	Mon Jun 16 05:14:05 2003 +0000
@@ -118,6 +118,7 @@
 	char *alias;             /**< The display name of this chat. */
 	GHashTable *components;  /**< the stuff the protocol needs to know to join the chat */
 	GaimAccount *account; /**< The account this chat is attached to */
+	GHashTable *settings;    /**< per-chat settings from the XML buddy list, set by plugins and the likes. */
 };
 
 
@@ -504,6 +505,23 @@
  */
 char *gaim_group_get_setting(struct group *g, const char *key);
 
+/**
+ * Associates some data with the chat in the xml buddy list
+ *
+ * @param b      The chat the data is associated with
+ * @param key    The key used to retrieve the data
+ * @param value  The data to set
+ */
+void gaim_chat_set_setting(struct chat *c, const char *key, const char *value);
+
+/**
+ * Retrieves data from the XML buddy list set by gaim_chat_set_setting())
+ *
+ * @param b      The chat to retrieve data from
+ * @param key    The key to retrieve the data with
+ * @return       The associated data or NULL if no data is associated
+ */
+char *gaim_chat_get_setting(struct chat *c, const char *key);
 
 /**
  * Associates some data with the buddy in the xml buddy list