2012-02-14 19:13:04 +01:00
|
|
|
/*
|
2022-07-14 17:58:12 +02:00
|
|
|
* Copyright 2003-2022 The Music Player Daemon Project
|
2012-02-14 19:13:04 +01:00
|
|
|
* http://www.musicpd.org
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
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
|