diff src/prefs.c @ 6538:4bc050b1af34

[gaim-migrate @ 7056] Sometimes I like to know the types of my prefs. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 21 Aug 2003 01:46:00 +0000
parents 44daf60ae44a
children 8c1b5dd87fbf
line wrap: on
line diff
--- a/src/prefs.c	Thu Aug 21 01:44:23 2003 +0000
+++ b/src/prefs.c	Thu Aug 21 01:46:00 2003 +0000
@@ -494,6 +494,15 @@
 	return pref->value.generic;
 }
 
+GaimPrefType gaim_prefs_get_type(const char *name) {
+	struct gaim_pref *pref = find_pref(name);
+
+	if (pref == NULL)
+		return GAIM_PREF_NONE;
+
+	return (pref->type);
+}
+
 gboolean gaim_prefs_get_bool(const char *name) {
 	struct gaim_pref *pref = find_pref(name);