summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/opt.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/aucat/opt.h')
-rw-r--r--usr.bin/aucat/opt.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/aucat/opt.h b/usr.bin/aucat/opt.h
index 875f0537601..e920a2f2f30 100644
--- a/usr.bin/aucat/opt.h
+++ b/usr.bin/aucat/opt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: opt.h,v 1.4 2010/04/03 17:59:17 ratchov Exp $ */
+/* $OpenBSD: opt.h,v 1.5 2010/04/06 20:07:01 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -28,11 +28,18 @@ struct opt {
struct aparams wpar; /* template for clients write params */
struct aparams rpar; /* template for clients read params */
int mmc; /* true if MMC control enabled */
+#define MODE_PLAY 0x1 /* allowed to play */
+#define MODE_REC 0x2 /* allowed to rec */
+#define MODE_MIDIIN 0x4 /* allowed to read midi */
+#define MODE_MIDIOUT 0x8 /* allowed to write midi */
+#define MODE_MON 0x10 /* allowed to monitor */
+#define MODE_RECMASK (MODE_REC | MODE_MON)
+ unsigned mode; /* bitmap of above */
};
SLIST_HEAD(optlist,opt);
-void opt_new(char *, struct aparams *, struct aparams *, int, int);
+void opt_new(char *, struct aparams *, struct aparams *, int, int, unsigned);
struct opt *opt_byname(char *);
#endif /* !defined(OPT_H) */