diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2020-06-28 05:17:27 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2020-06-28 05:17:27 +0000 |
commit | 0ebab2c5720f71b9dbddee76d10684ae381b5627 (patch) | |
tree | 7fb60a0e0181321d7b3971bdc2bf46b14a4ec6b7 /include/sndio.h | |
parent | 58db27e992e70b8d54d506825a284186fa725843 (diff) |
Add a new SIOCTL_SEL control type to select one of a predefined set of
mutually exclusive values. It's the same as SIOCTL_LIST except that
exactly one list element may be selected.
Diffstat (limited to 'include/sndio.h')
-rw-r--r-- | include/sndio.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sndio.h b/include/sndio.h index 643d7f42eb3..ac9c084361a 100644 --- a/include/sndio.h +++ b/include/sndio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sndio.h,v 1.11 2020/06/18 04:44:11 ratchov Exp $ */ +/* $OpenBSD: sndio.h,v 1.12 2020/06/28 05:17:25 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -108,11 +108,12 @@ struct sioctl_desc { #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} */ + struct sioctl_node node1; /* dito for SIOCTL_{VEC,LIST,SEL} */ unsigned int maxval; /* max value */ int __pad[3]; }; |