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

Function ParseQueuePosition

src/command/DatabaseCommands.cxx:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static unsigned
65ParseQueuePosition(Request &args, unsigned queue_length)
66{
67 if (args.size() >= 2 && StringIsEqual(args[args.size() - 2], "position")) {
68 unsigned position = args.ParseUnsigned(args.size() - 1,
69 queue_length);
70 args.pop_back();
71 args.pop_back();
72 return position;
73 }
74
75 /* append to the end of the queue by default */
76 return queue_length;
77}
78
79static unsigned
80ParseInsertPosition(Request &args, const playlist &playlist)

Callers 1

handle_searchaddplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected