aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol/ArgParser.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-11 22:57:06 +0200
committerMax Kellermann <max@duempel.org>2015-08-11 22:58:04 +0200
commite118e958f7f9b87054679ebf6102d6923abbba81 (patch)
tree65368eea1cc1e172b223a770f9352f9a88ac3830 /src/protocol/ArgParser.hxx
parentee61dfe08742b76b1c637a038dd5b3a6b244ece7 (diff)
downloadmpd-e118e958f7f9b87054679ebf6102d6923abbba81.tar.gz
mpd-e118e958f7f9b87054679ebf6102d6923abbba81.tar.xz
mpd-e118e958f7f9b87054679ebf6102d6923abbba81.zip
protocol/ArgParser: add overload with max_value parameter
Diffstat (limited to '')
-rw-r--r--src/protocol/ArgParser.hxx8
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