protocol/ArgParser: add overload with max_value parameter
This commit is contained in:
@@ -33,6 +33,10 @@ class SignedSongTime;
|
||||
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);
|
||||
|
||||
@@ -48,6 +52,10 @@ struct RangeArg {
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user