Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge pull request #124 from mayanez/feat/showmovement #125

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
libmpdclient 2.23 (not yet released)
* support MPD protocol 0.24.0
- allow window for listplaylist and listplaylistinfo
- command "playlistlength"
- command "playlistlength", "stickertypes""
- tag "ShowMovement"
* Support open end for mpd_search_add_window

Expand Down
12 changes: 12 additions & 0 deletions include/mpd/sticker.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,18 @@ mpd_return_sticker(struct mpd_connection *connection, struct mpd_pair *pair);
bool
mpd_send_stickernames(struct mpd_connection *connection);

/**
* Obtains an uniq list of all sticker types. Call
* mpd_recv_pair() to receive each response item.
*
* @param connection the connection to MPD
* @return true on success, false on error
*
* @since libmpdclient 2.23, MPD 0.24
*/
bool
mpd_send_stickertypes(struct mpd_connection *connection);

#ifdef __cplusplus
}
#endif
Expand Down
1 change: 1 addition & 0 deletions libmpdclient.ld
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ global:
mpd_recv_sticker;
mpd_return_sticker;
mpd_send_stickernames;
mpd_send_stickertypes;

/* mpd/fingerprint.h */
mpd_parse_fingerprint_type;
Expand Down
8 changes: 8 additions & 0 deletions src/sticker.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,11 @@ mpd_send_stickernames(struct mpd_connection *connection)

return mpd_send_command(connection, "stickernames", NULL);
}

bool
mpd_send_stickertypes(struct mpd_connection *connection)
{
assert(connection != NULL);

return mpd_send_command(connection, "stickertypes", NULL);
}
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.