diff src/list.h @ 5142:94f11800cac5

[gaim-migrate @ 5506] gave groups the same neat setting stuff that buddies have, and put it to use by having groups remember if they're collapsed. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 16 Apr 2003 21:49:02 +0000
parents b37d7d09ec83
children
line wrap: on
line diff
--- a/src/list.h	Wed Apr 16 17:33:25 2003 +0000
+++ b/src/list.h	Wed Apr 16 21:49:02 2003 +0000
@@ -94,6 +94,7 @@
 struct group {
 	GaimBlistNode node;                    /**< The node that this group inherits from */
 	char *name;                            /**< The name of this group. */
+	GHashTable *settings;                  /**< per-group settings from the XML buddy list, set by plugins and the likes. */
 };
 
 
@@ -416,6 +417,25 @@
 void gaim_blist_load();
 
 /**
+ * Associates some data with the group in the xml buddy list
+ *
+ * @param g      The group the data is associated with
+ * @param key    The key used to retrieve the data
+ * @param value  The data to set
+ */
+void gaim_group_set_setting(struct group *g, const char *key, const char *value);
+
+/**
+ * Retrieves data from the XML buddy list set by gaim_group_set_setting())
+ *
+ * @param g      The group 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_group_get_setting(struct group *g, const char *key);
+
+
+/**
  * Associates some data with the buddy in the xml buddy list
  *
  * @param b      The buddy the data is associated with