aboutsummaryrefslogtreecommitdiff
path: root/include/sndio.h
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-19 13:54:17 +0300
committerCem Keylan <cem@ckyln.com>2020-10-19 13:54:17 +0300
commit54d853eaccae1f4f2e04ae70d79e34cfef86bf67 (patch)
tree382a3fb42d425a0c373b90c85da57d60fed8110c /include/sndio.h
parent41978314f8e2d1e9b62cfa207db1bdd371133c62 (diff)
downloadotools-54d853eaccae1f4f2e04ae70d79e34cfef86bf67.tar.gz
include: update to 6.8
Diffstat (limited to 'include/sndio.h')
-rw-r--r--include/sndio.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sndio.h b/include/sndio.h
index 4fed3d5..03550a0 100644
--- a/include/sndio.h
+++ b/include/sndio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sndio.h,v 1.10 2020/02/26 13:53:58 ratchov Exp $ */
+/* $OpenBSD: sndio.h,v 1.13 2020/06/28 05:21:38 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -104,16 +104,17 @@ struct sioctl_node {
struct sioctl_desc {
unsigned int addr; /* control address */
#define SIOCTL_NONE 0 /* deleted */
-#define SIOCTL_NUM 2 /* integer in the 0..127 range */
+#define SIOCTL_NUM 2 /* integer in the 0..maxval range */
#define SIOCTL_SW 3 /* on/off switch (0 or 1) */
#define SIOCTL_VEC 4 /* number, element of vector */
#define SIOCTL_LIST 5 /* switch, element of a list */
+#define SIOCTL_SEL 6 /* element of a selector */
unsigned int type; /* one of above */
char func[SIOCTL_NAMEMAX]; /* function name, ex. "level" */
char group[SIOCTL_NAMEMAX]; /* group this control belongs to */
struct sioctl_node node0; /* affected node */
- struct sioctl_node node1; /* dito for SIOCTL_{VEC,LIST} */
- unsigned int maxval; /* max value for SIOCTL_{NUM,VEC} */
+ struct sioctl_node node1; /* dito for SIOCTL_{VEC,LIST,SEL} */
+ unsigned int maxval; /* max value */
int __pad[3];
};