src/list.h

changeset 5142
a90fc4d37f8a
parent 5068
0d4c4df65dd0
--- 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

mercurial