git: 249526dace5d - main - mixer(3): Add HEADNAME to TAILQ_HEAD declarations
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 Jan 2023 02:35:17 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=249526dace5d6f2696ed786f5a72a04a97b40252
commit 249526dace5d6f2696ed786f5a72a04a97b40252
Author: Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2023-01-15 02:33:58 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-01-15 02:33:58 +0000
mixer(3): Add HEADNAME to TAILQ_HEAD declarations
This allows us to use the TAILQ_PREV and TAILQ_FOREACH_REVERSE_* macros,
useful for an out-of-tree consumer.
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D38055
---
lib/libmixer/mixer.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libmixer/mixer.h b/lib/libmixer/mixer.h
index 6e77fdec421f..b47f3c68ff40 100644
--- a/lib/libmixer/mixer.h
+++ b/lib/libmixer/mixer.h
@@ -67,12 +67,12 @@ struct mix_dev {
float right; /* right volume */
} vol;
int nctl; /* number of controls */
- TAILQ_HEAD(, mix_ctl) ctls; /* control list */
+ TAILQ_HEAD(mix_ctlhead, mix_ctl) ctls; /* control list */
TAILQ_ENTRY(mix_dev) devs;
};
struct mixer {
- TAILQ_HEAD(, mix_dev) devs; /* device list */
+ TAILQ_HEAD(mix_devhead, mix_dev) devs; /* device list */
struct mix_dev *dev; /* selected device */
oss_mixerinfo mi; /* mixer info */
oss_card_info ci; /* audio card info */