From 34cf504b2b1d18e6ea54d73af1c3fbc27426a998 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Wed, 10 Jul 2024 19:16:39 +0300 Subject: [PATCH] rename *_pair to *_item, as it's the convention used before --- src/audio.c | 6 +++--- src/private/audio.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audio.c b/src/audio.c index c836f3b..7a28241 100644 --- a/src/audio.c +++ b/src/audio.c @@ -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; diff --git a/src/private/audio.h b/src/private/audio.h index d94589b..696cc76 100644 --- a/src/private/audio.h +++ b/src/private/audio.h @@ -44,7 +44,7 @@ struct audio_channel { }; -struct audio_channel_pair { +struct audio_channel_item { char *key; struct audio_channel value; };