| 62 | } |
| 63 | |
| 64 | static unsigned |
| 65 | ParseQueuePosition(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 | |
| 79 | static unsigned |
| 80 | ParseInsertPosition(Request &args, const playlist &playlist) |
no outgoing calls
no test coverage detected