2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2013-01-03 10:33:04 +01:00
|
|
|
#ifndef MPD_PROTOCOL_ARGPARSER_HXX
|
|
|
|
#define MPD_PROTOCOL_ARGPARSER_HXX
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2020-03-13 01:08:53 +01:00
|
|
|
#include <cstdint>
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2018-09-02 07:45:45 +02:00
|
|
|
struct RangeArg;
|
2014-08-27 19:11:55 +02:00
|
|
|
class SongTime;
|
|
|
|
class SignedSongTime;
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
uint32_t
|
|
|
|
ParseCommandArgU32(const char *s);
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
int
|
|
|
|
ParseCommandArgInt(const char *s, int min_value, int max_value);
|
2015-08-11 22:57:06 +02:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
int
|
|
|
|
ParseCommandArgInt(const char *s);
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
RangeArg
|
|
|
|
ParseCommandArgRange(const char *s);
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
unsigned
|
|
|
|
ParseCommandArgUnsigned(const char *s, unsigned max_value);
|
2015-08-11 22:57:06 +02:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
unsigned
|
|
|
|
ParseCommandArgUnsigned(const char *s);
|
2012-02-14 19:13:04 +01:00
|
|
|
|
|
|
|
bool
|
2015-12-18 09:50:48 +01:00
|
|
|
ParseCommandArgBool(const char *s);
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
float
|
|
|
|
ParseCommandArgFloat(const char *s);
|
2012-02-14 19:13:04 +01:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
SongTime
|
|
|
|
ParseCommandArgSongTime(const char *s);
|
2014-08-27 19:11:55 +02:00
|
|
|
|
2015-12-18 09:50:48 +01:00
|
|
|
SignedSongTime
|
|
|
|
ParseCommandArgSignedSongTime(const char *s);
|
2014-08-27 19:11:55 +02:00
|
|
|
|
2012-02-14 19:13:04 +01:00
|
|
|
#endif
|