diff options
Diffstat (limited to 'src/protocol/ArgParser.hxx')
-rw-r--r-- | src/protocol/ArgParser.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/protocol/ArgParser.hxx b/src/protocol/ArgParser.hxx index 221ffebe3..87f15846a 100644 --- a/src/protocol/ArgParser.hxx +++ b/src/protocol/ArgParser.hxx @@ -34,6 +34,10 @@ bool check_uint32(Client &client, uint32_t *dst, const char *s); bool +ParseCommandArg(Client &client, int &value_r, const char *s, + int min_value, int max_value); + +bool ParseCommandArg(Client &client, int &value_r, const char *s); struct RangeArg { @@ -49,6 +53,10 @@ bool ParseCommandArg(Client &client, RangeArg &value_r, const char *s); bool +ParseCommandArg(Client &client, unsigned &value_r, const char *s, + unsigned max_value); + +bool ParseCommandArg(Client &client, unsigned &value_r, const char *s); bool |