rename *_pair to *_item, as it's the convention used before

This commit is contained in:
veclav talica 2024-07-10 19:16:39 +03:00
parent b280243d30
commit 34cf504b2b
2 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ static int64_t get_audio_data(const char *path, unsigned char **data) {
void play_audio(const char *path, const char *channel) {
const struct audio_channel_pair *pair = shgetp_null(ctx.audio_channels, channel);
const struct audio_channel_item *pair = shgetp_null(ctx.audio_channels, channel);
if (!pair)
play_audio_ex(path, channel, get_default_audio_args());
else
@ -166,7 +166,7 @@ static void repeat_audio(struct audio_channel *channel) {
void play_audio_ex(const char *path, const char *channel, t_play_audio_args args) {
struct audio_channel_pair *pair = shgetp_null(ctx.audio_channels, channel);
struct audio_channel_item *pair = shgetp_null(ctx.audio_channels, channel);
/* create a channel if it doesn't exist */
if (!pair) {
@ -191,7 +191,7 @@ void play_audio_ex(const char *path, const char *channel, t_play_audio_args args
t_play_audio_args *get_audio_args(const char *channel) {
struct audio_channel_pair *pair = shgetp_null(ctx.audio_channels, channel);
struct audio_channel_item *pair = shgetp_null(ctx.audio_channels, channel);
if (!pair)
return NULL;

View File

@ -44,7 +44,7 @@ struct audio_channel {
};
struct audio_channel_pair {
struct audio_channel_item {
char *key;
struct audio_channel value;
};