# HG changeset patch # User Will Thompson # Date 1194432681 0 # Node ID 7c80ba584fb0bb07ae383df9f88d255048e63fb1 # Parent 8d73d519155a3c3e5e902dc8ad3f3b74298dbed6 Document PurplePrefCallback. diff -r 8d73d519155a -r 7c80ba584fb0 libpurple/prefs.h --- a/libpurple/prefs.h Wed Nov 07 09:19:25 2007 +0000 +++ b/libpurple/prefs.h Wed Nov 07 10:51:21 2007 +0000 @@ -45,9 +45,20 @@ } PurplePrefType; /** - * Pref change callback type + * The type of callbacks for preference changes. + * + * @param name the name of the preference which has changed. + * @param type the type of the preferenced named @a name + * @param val the new value of the preferencs; should be cast to the correct + * type. For instance, to recover the value of a #PURPLE_PREF_INT + * preference, use GPOINTER_TO_INT(val). Alternatively, + * just call purple_prefs_get_int(), purple_prefs_get_string_list() + * etc. + * @param data Arbitrary data specified when the callback was connected with + * purple_prefs_connect_callback(). + * + * @see purple_prefs_connect_callback() */ - typedef void (*PurplePrefCallback) (const char *name, PurplePrefType type, gconstpointer val, gpointer data);