/* XXX Add a prefs_register_{uint16|port}_preference which sets max_value? Register a "custom" preference with a unsigned integral value. XXX - This should be temporary until we can find a better way to do "custom" preferences  */
static void prefs_register_uint_custom_preference(module_t *module, const char *name, const char *title, const char *description, struct pref_custom_cbs *custom_cbs, guint *var)
/* XXX Add a prefs_register_{uint16|port}_preference which sets max_value? Register a "custom" preference with a unsigned integral value. XXX - This should be temporary until we can find a better way to do "custom" preferences  */
static void prefs_register_uint_custom_preference(module_t *module, const char *name, const char *title, const char *description, struct pref_custom_cbs *custom_cbs, guint *var)
{
    pref_t *preference;
    preference = register_preference(module, name, title, description,
                                     PREF_CUSTOM);
    preference->custom_cbs = *custom_cbs;
    preference->varp.uint = var;
    preference->default_val.uint = *var;
}