summaryrefslogtreecommitdiff
path: root/include/a.out.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2021-03-03 10:00:28 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2021-03-03 10:00:28 +0000
commit4e9425b29d1bcd2bc9f774cc778766b95099d851 (patch)
tree19a2bee45c383da32e52b6c0a500bb4a8ab3172e /include/a.out.h
parent7d6f05f2659cef5e9fb8e118032b948c527e081a (diff)
sndiod: Move controls out of the device structure
Moving to a global server-wide controls list is necessary to expose controls that are not associated to a particular device (ex. a device selector). The current hack to use the device-side sioctl_desc->addr variable as client-side key can't work anymore. So, we use a unique dynamically allocated ctl->addr key; this is much cleaner. A new "scope" enum (with two "void *" arguments) is used to determine what the control does control. This adds flexibility and allows to easily add new control types that are not associated to devices. No behavior change.
Diffstat (limited to 'include/a.out.h')
0 files changed, 0 insertions, 0 deletions