Commit 249526da authored by Christos Margiolis's avatar Christos Margiolis Committed by Mark Johnston
Browse files

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
parent 4dcc6bad
......@@ -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 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment