/* Register a preference with an unsigned integral value.  */
void prefs_register_uint_preference(module_t *module, const char *name, const char *title, const char *description, guint base, guint *var)
/* Register a preference with an unsigned integral value.  */
void prefs_register_uint_preference(module_t *module, const char *name, const char *title, const char *description, guint base, guint *var)
{
    pref_t *preference;
    preference = register_preference(module, name, title, description,
                                     PREF_UINT);
    preference->varp.uint = var;
    preference->default_val.uint = *var;
    g_assert(base > 0 && base != 1 && base < 37);
    preference->info.base = base;
}