Skip to content
Merged
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
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
libmpdclient 2.25 (not yet released)
* fix typos in MPD_STICKER_SORT_UNKOWN and MPD_STICKER_SORT_UNKOWN

libmpdclient 2.24 (2025/08/23)
* fix missing "mpd_send_list_tag_types_available" in libmpdclient.ld
Expand Down
6 changes: 4 additions & 2 deletions include/mpd/sticker.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ struct mpd_connection;
* Comparison operators for sticker search api
*/
enum mpd_sticker_operator {
MPD_STICKER_OP_UNKOWN = -1,
MPD_STICKER_OP_UNKOWN = -1, // Keep typo, else we break the abi
MPD_STICKER_OP_UNKNOWN = -1,
MPD_STICKER_OP_EQ,
MPD_STICKER_OP_GT,
MPD_STICKER_OP_LT,
Expand All @@ -38,7 +39,8 @@ enum mpd_sticker_operator {
* Sort by settings for sticker search api
*/
enum mpd_sticker_sort {
MPD_STICKER_SORT_UNKOWN = -1,
MPD_STICKER_SORT_UNKOWN = -1, // Keep typo, else we break the abi
MPD_STICKER_SORT_UNKNOWN = -1,
MPD_STICKER_SORT_URI,
MPD_STICKER_SORT_VALUE,
MPD_STICKER_SORT_VALUE_INT,
Expand Down
6 changes: 4 additions & 2 deletions src/sticker.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ static const char *get_sticker_oper_str(enum mpd_sticker_operator oper) {
case MPD_STICKER_OP_LT_INT: return "lt";
case MPD_STICKER_OP_CONTAINS: return "contains";
case MPD_STICKER_OP_STARTS_WITH: return "starts_with";
case MPD_STICKER_OP_UNKOWN: return NULL;
case MPD_STICKER_OP_UNKOWN:
case MPD_STICKER_OP_UNKNOWN: return NULL;
}
return NULL;
}
Expand Down Expand Up @@ -293,7 +294,8 @@ static const char *get_sticker_sort_name(enum mpd_sticker_sort sort) {
case MPD_STICKER_SORT_URI: return "uri";
case MPD_STICKER_SORT_VALUE: return "value";
case MPD_STICKER_SORT_VALUE_INT: return "value_int";
case MPD_STICKER_SORT_UNKOWN: return NULL;
case MPD_STICKER_SORT_UNKOWN:
case MPD_STICKER_SORT_UNKNOWN: return NULL;
}
return NULL;
}
Expand Down
Loading