summaryrefslogtreecommitdiff
path: root/src/protocol/ArgParser.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-09-02 07:45:45 +0200
committerMax Kellermann <max@musicpd.org>2018-09-02 08:17:22 +0200
commit68f824a18640f7e582175a3e3a0b7d3fc60f207c (patch)
tree7ac2fcc340d9b42c55335317dca8a70c0dbb14c6 /src/protocol/ArgParser.hxx
parentb9cca49e1461e142f1f0946dcb930c7bf1517566 (diff)
protocol/ArgParser: move struct RangeArg to separate header
Diffstat (limited to 'src/protocol/ArgParser.hxx')
-rw-r--r--src/protocol/ArgParser.hxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/protocol/ArgParser.hxx b/src/protocol/ArgParser.hxx
index 8a23f25a8..d2844e016 100644
--- a/src/protocol/ArgParser.hxx
+++ b/src/protocol/ArgParser.hxx
@@ -22,10 +22,9 @@
#include "check.h"
-#include <limits>
-
#include <stdint.h>
+struct RangeArg;
class SongTime;
class SignedSongTime;
@@ -38,19 +37,6 @@ ParseCommandArgInt(const char *s, int min_value, int max_value);
int
ParseCommandArgInt(const char *s);
-struct RangeArg {
- unsigned start, end;
-
- void SetAll() {
- start = 0;
- end = std::numeric_limits<unsigned>::max();
- }
-
- static constexpr RangeArg All() {
- return { 0, std::numeric_limits<unsigned>::max() };
- }
-};
-
RangeArg
ParseCommandArgRange(const char *s);