Opened 3 months ago

#33547 new enhancement

Config: add a type or helper for range-restricted variables

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: 0.4.4.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Very frequently we want to have a config type that is "int, restricted to some range of values". We should have a means to represent that, and thereby save a bunch of boilerplate code.

This could be done with new var_type_def_t for each range, but that could get out of hand. Probably we want a way to add more info to the config_var_t.

Child Tickets

Change History (0)

Note: See TracTickets for help on using tickets.