Mercurial > pidgin
diff src/prefs.h @ 5561:d67b5b4e1323
[gaim-migrate @ 5962]
prefs just keeps getting cooler and cool
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 30 May 2003 04:05:48 +0000 |
parents | 7a64114641c3 |
children | 0bdfa28c678e |
line wrap: on
line diff
--- a/src/prefs.h Fri May 30 03:25:39 2003 +0000 +++ b/src/prefs.h Fri May 30 04:05:48 2003 +0000 @@ -32,7 +32,8 @@ GAIM_PREF_NONE, GAIM_PREF_BOOLEAN, GAIM_PREF_INT, - GAIM_PREF_STRING + GAIM_PREF_STRING, + GAIM_PREF_STRING_LIST } GaimPrefType; /** @@ -84,6 +85,14 @@ void gaim_prefs_add_string(const char *name, const char *value); /** + * Add a new string list pref. + * + * @param name The name of the pref + * @param value The initial value to set + */ +void gaim_prefs_add_string_list(const char *name, GList *value); + +/** * Remove a pref. * * @param name The name of the pref @@ -128,6 +137,14 @@ void gaim_prefs_set_string(const char *name, const char *value); /** + * Set string pref value + * + * @param name The name of the pref + * @param value The value to set + */ +void gaim_prefs_set_string_list(const char *name, GList *value); + +/** * Get boolean pref value * * @param name The name of the pref @@ -152,6 +169,14 @@ const char *gaim_prefs_get_string(const char *name); /** + * Get string pref value + * + * @param name The name of the pref + * @return The value of the pref + */ +GList *gaim_prefs_get_string_list(const char *name); + +/** * Add a callback to a pref (and its children) */ guint gaim_prefs_connect_callback(const char *name, GaimPrefCallback cb,