Skip to content

Commit 4b81b91

Browse files
authored
Merge pull request #152 from jcorporation/master
Fix typo in MPD_STICKER_OP_UNKOWN and MPD_STICKER_SORT_UNKOWN
2 parents eaa2f88 + 3924656 commit 4b81b91

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
libmpdclient 2.25 (not yet released)
2+
* fix typos in MPD_STICKER_SORT_UNKOWN and MPD_STICKER_SORT_UNKOWN
23

34
libmpdclient 2.24 (2025/08/23)
45
* fix missing "mpd_send_list_tag_types_available" in libmpdclient.ld

include/mpd/sticker.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ struct mpd_connection;
2323
* Comparison operators for sticker search api
2424
*/
2525
enum mpd_sticker_operator {
26-
MPD_STICKER_OP_UNKOWN = -1,
26+
MPD_STICKER_OP_UNKOWN = -1, // Keep typo, else we break the abi
27+
MPD_STICKER_OP_UNKNOWN = -1,
2728
MPD_STICKER_OP_EQ,
2829
MPD_STICKER_OP_GT,
2930
MPD_STICKER_OP_LT,
@@ -38,7 +39,8 @@ enum mpd_sticker_operator {
3839
* Sort by settings for sticker search api
3940
*/
4041
enum mpd_sticker_sort {
41-
MPD_STICKER_SORT_UNKOWN = -1,
42+
MPD_STICKER_SORT_UNKOWN = -1, // Keep typo, else we break the abi
43+
MPD_STICKER_SORT_UNKNOWN = -1,
4244
MPD_STICKER_SORT_URI,
4345
MPD_STICKER_SORT_VALUE,
4446
MPD_STICKER_SORT_VALUE_INT,

src/sticker.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ static const char *get_sticker_oper_str(enum mpd_sticker_operator oper) {
251251
case MPD_STICKER_OP_LT_INT: return "lt";
252252
case MPD_STICKER_OP_CONTAINS: return "contains";
253253
case MPD_STICKER_OP_STARTS_WITH: return "starts_with";
254-
case MPD_STICKER_OP_UNKOWN: return NULL;
254+
case MPD_STICKER_OP_UNKOWN:
255+
case MPD_STICKER_OP_UNKNOWN: return NULL;
255256
}
256257
return NULL;
257258
}
@@ -293,7 +294,8 @@ static const char *get_sticker_sort_name(enum mpd_sticker_sort sort) {
293294
case MPD_STICKER_SORT_URI: return "uri";
294295
case MPD_STICKER_SORT_VALUE: return "value";
295296
case MPD_STICKER_SORT_VALUE_INT: return "value_int";
296-
case MPD_STICKER_SORT_UNKOWN: return NULL;
297+
case MPD_STICKER_SORT_UNKOWN:
298+
case MPD_STICKER_SORT_UNKNOWN: return NULL;
297299
}
298300
return NULL;
299301
}

0 commit comments

Comments
 (0)