Hide the details of the playlist behind wrapper functions.
Return true on success, instead of 0. Converted the "detail" parameter to bool.
Renamed one function.
PlaylistInfo() (notice the capital 'P') sends a stored playlist to the client. Move it to a separate library, where all the code which glues the playlist and the MPD protocol together will live.