Skip to content

Commit

Permalink
Upd: libmympdclient 1.0.32
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Nov 3, 2024
1 parent 16051ee commit 3a42445
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This is a small maintenance release.
### Changelog

- Feat: Support stickernamestypes command (MPD 0.24) #1092
- Upd: libmympdclient 1.0.32

***

Expand Down
25 changes: 25 additions & 0 deletions dist/libmympdclient/include/mpd/capabilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,31 @@ mpd_send_all_tag_types(struct mpd_connection *connection);
bool
mpd_run_all_tag_types(struct mpd_connection *connection);

/**
* Clear the list of tag types and re-enable one or more tags from
* the list of tag types for this client. These will no longer be
* hidden from responses to this client.
*
* @param connection the connection to MPD
* @param types an array of tag types to enable
* @param n the number of tag types in the array
* @return true on success, false on error
*
* @since libmpdclient 2.23, MPD 0.24
*/
bool
mpd_send_reset_tag_types(struct mpd_connection *connection,
const enum mpd_tag_type *types, unsigned n);

/**
* Shortcut for mpd_send_reset_tag_types() and mpd_response_finish().
*
* @since libmpdclient 2.23, MPD 0.24
*/
bool
mpd_run_reset_tag_types(struct mpd_connection *connection,
const enum mpd_tag_type *types, unsigned n);

/**
* Requests a list of enabled protocol features.
* Use mpd_recv_protocol_feature_pair() to obtain the list of
Expand Down
1 change: 1 addition & 0 deletions dist/libmympdclient/include/mpd/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ install_headers(
'directory.h',
'entity.h',
'error.h',
'feature.h',
'fingerprint.h',
'idle.h',
'list.h',
Expand Down
15 changes: 15 additions & 0 deletions dist/libmympdclient/src/capabilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,21 @@ mpd_run_all_tag_types(struct mpd_connection *connection)
mpd_response_finish(connection);
}

bool
mpd_send_reset_tag_types(struct mpd_connection *connection,
const enum mpd_tag_type *types, unsigned n)
{
return mpd_send_tag_types_v(connection, "reset", types, n);
}

bool
mpd_run_reset_tag_types(struct mpd_connection *connection,
const enum mpd_tag_type *types, unsigned n)
{
return mpd_send_reset_tag_types(connection, types, n) &&
mpd_response_finish(connection);
}

bool
mpd_send_list_protocol_features(struct mpd_connection *connection)
{
Expand Down

0 comments on commit 3a42445

Please sign in to comment.