MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / ParseCommandArgSongTime

Function ParseCommandArgSongTime

src/protocol/ArgParser.cxx:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143SongTime
144ParseCommandArgSongTime(const char *s)
145{
146 auto value = ParseCommandArgFloat(s);
147 if (value < 0)
148 throw MakeArgError("Negative value not allowed", s);
149
150 return SongTime::FromS(value);
151}
152
153SignedSongTime
154ParseCommandArgSignedSongTime(const char *s)

Callers

nothing calls this directly

Calls 2

ParseCommandArgFloatFunction · 0.85
MakeArgErrorFunction · 0.85

Tested by

no test coverage detected