aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-11 22:18:40 +0200
committerMax Kellermann <max@duempel.org>2015-08-11 23:02:34 +0200
commitb1480167be487d09ff46bb86ad02041fb28acff1 (patch)
treed819a825fb82c4258cc17d5f40793409f61600a1 /src/protocol
parente118e958f7f9b87054679ebf6102d6923abbba81 (diff)
downloadmpd-b1480167be487d09ff46bb86ad02041fb28acff1.tar.gz
mpd-b1480167be487d09ff46bb86ad02041fb28acff1.tar.xz
mpd-b1480167be487d09ff46bb86ad02041fb28acff1.zip
command/Request: add parser methods
Wrapper for protocol/ArgParser.cxx.
Diffstat (limited to 'src/protocol')
-rw-r--r--src/protocol/ArgParser.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol/ArgParser.hxx b/src/protocol/ArgParser.hxx
index 87f15846a..b05d7224e 100644
--- a/src/protocol/ArgParser.hxx
+++ b/src/protocol/ArgParser.hxx
@@ -47,6 +47,10 @@ struct RangeArg {
start = 0;
end = std::numeric_limits<unsigned>::max();
}
+
+ static constexpr RangeArg All() {
+ return { 0, std::numeric_limits<unsigned>::max() };
+ }
};
bool