=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/opt.h,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/sndiod/opt.h 2018/06/26 07:12:35 1.2 --- src/usr.bin/sndiod/opt.h 2021/01/29 11:21:00 1.3 *************** *** 1,4 **** ! /* $OpenBSD: opt.h,v 1.2 2018/06/26 07:12:35 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: opt.h,v 1.3 2021/01/29 11:21:00 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * *************** *** 19,27 **** struct dev; struct opt *opt_new(struct dev *, char *, int, int, int, int, int, int, int, unsigned int); ! void opt_del(struct dev *, struct opt *); struct opt *opt_byname(struct dev *, char *); #endif /* !defined(OPT_H) */ --- 19,42 ---- struct dev; + struct opt { + struct opt *next; + struct dev *dev; + #define OPT_NAMEMAX 11 + char name[OPT_NAMEMAX + 1]; + int maxweight; /* max dynamic range for clients */ + int pmin, pmax; /* play channels */ + int rmin, rmax; /* recording channels */ + int mmc; /* true if MMC control enabled */ + int dup; /* true if join/expand enabled */ + int mode; /* bitmap of MODE_XXX */ + }; + + extern struct opt *opt_list; + struct opt *opt_new(struct dev *, char *, int, int, int, int, int, int, int, unsigned int); ! void opt_del(struct opt *); struct opt *opt_byname(struct dev *, char *); #endif /* !defined(OPT_H) */