=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/opt.h,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/sndiod/opt.h 2021/03/03 10:19:06 1.6 --- src/usr.bin/sndiod/opt.h 2021/11/01 14:43:25 1.7 *************** *** 1,4 **** ! /* $OpenBSD: opt.h,v 1.6 2021/03/03 10:19:06 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: opt.h,v 1.7 2021/11/01 14:43:25 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * *************** *** 23,29 **** struct opt { struct opt *next; ! struct dev *dev; struct midi *midi; struct mtc *mtc; /* if set, MMC-controlled MTC source */ --- 23,29 ---- struct opt { struct opt *next; ! struct dev *dev, *alt_first; struct midi *midi; struct mtc *mtc; /* if set, MMC-controlled MTC source */ *************** *** 35,40 **** --- 35,41 ---- int rmin, rmax; /* recording channels */ int dup; /* true if join/expand enabled */ int mode; /* bitmap of MODE_XXX */ + int refcnt; }; extern struct opt *opt_list; *************** *** 42,47 **** 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) */ --- 43,54 ---- 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(char *); ! struct opt *opt_bynum(int); ! void opt_init(struct opt *); ! void opt_done(struct opt *); ! void opt_setdev(struct opt *, struct dev *); ! struct dev *opt_ref(struct opt *); ! void opt_unref(struct opt *); #endif /* !defined(OPT_H) */