how to list the content of a playlist with libmpdclient?

Discuss client development (or even MPD development if you feel so inclined), ask questions about the client libs, MPD feature requests from client developers, etc...
Post Reply
cypax
Posts: 1
Joined: November 1st, 2013, 10:16 pm

how to list the content of a playlist with libmpdclient?

Post by cypax » November 1st, 2013, 10:44 pm

Hi there,

I'm currently developing a graphical client for mpd using libmpdclient (2.7) and I'm stuck with obtaining the content of a given playlist.

Based on the example code here I managed to get a list of names of all available playlists in the playlist directory. So far, so good.

Now I want to list the content of one of these playlists by using mpd_send_list_playlist(struct mpd_connection * connection, const char * name ) - is that correct so far?
If so, the function documentation says about it:
List the content of a stored playlist.
But it only returns true on success - so where is this list? How can I read from this list?
Is there some kind of mpd_recv_playlist_entry() or similar method?

Thanks for any help or hints!

-cypax

Post Reply