summaryrefslogtreecommitdiff
path: root/src/lib/confmgt
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-11-06 13:07:13 -0500
committerNick Mathewson <nickm@torproject.org>2019-11-06 13:07:13 -0500
commit9663ac00275c808b478474e9d6aa3a194612424f (patch)
tree91ddf83a713ef54d22004378361ef515ccd0ecb0 /src/lib/confmgt
parent88796637e521c9879f8743a8b6647311a27a9691 (diff)
downloadtor-9663ac00275c808b478474e9d6aa3a194612424f.tar.gz
tor-9663ac00275c808b478474e9d6aa3a194612424f.zip
int_type_params_t: add documentation.
Diffstat (limited to 'src/lib/confmgt')
-rw-r--r--src/lib/confmgt/type_defs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/confmgt/type_defs.c b/src/lib/confmgt/type_defs.c
index ed930fb02a..f39f1c3d8d 100644
--- a/src/lib/confmgt/type_defs.c
+++ b/src/lib/confmgt/type_defs.c
@@ -90,9 +90,12 @@ static const var_type_fns_t string_fns = {
// These types are implemented as int, possibly with a restricted range.
/////
+/**
+ * Parameters for parsing an integer type.
+ **/
typedef struct int_type_params_t {
- int minval;
- int maxval;
+ int minval; /**< Lowest allowed value */
+ int maxval; /**< Highest allowed value */
} int_parse_params_t;
static const int_parse_params_t INT_PARSE_UNRESTRICTED = {