comparison 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
comparison
equal deleted inserted replaced
6537:a621e2c6c713 6538:4bc050b1af34
492 } 492 }
493 493
494 return pref->value.generic; 494 return pref->value.generic;
495 } 495 }
496 496
497 GaimPrefType gaim_prefs_get_type(const char *name) {
498 struct gaim_pref *pref = find_pref(name);
499
500 if (pref == NULL)
501 return GAIM_PREF_NONE;
502
503 return (pref->type);
504 }
505
497 gboolean gaim_prefs_get_bool(const char *name) { 506 gboolean gaim_prefs_get_bool(const char *name) {
498 struct gaim_pref *pref = find_pref(name); 507 struct gaim_pref *pref = find_pref(name);
499 508
500 if(!pref) { 509 if(!pref) {
501 gaim_debug(GAIM_DEBUG_ERROR, "prefs", 510 gaim_debug(GAIM_DEBUG_ERROR, "prefs",