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
This commit is contained in:
parent
4dcc6baddb
commit
249526dace
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user