summaryrefslogtreecommitdiff
path: root/spa/plugins/alsa/alsa-utils.h
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-05-20 16:11:23 +0200
committerWim Taymans <wtaymans@redhat.com>2019-05-23 12:59:24 +0200
commitff946e3d4be276c8f36a656a708a4c736a3e15aa (patch)
tree486730290f5ea9ced87e2a0ce6bf5fd470232065 /spa/plugins/alsa/alsa-utils.h
parenteb6481efb3c3f4288c2e0156940ee10434577a11 (diff)
interface: add an interface structiface2
The interface struct has the type,version and methods of the interface. Make spa interfaces extend from spa_interface and make a separate structure for the methods. Pass a generic void* as the first argument of methods, like we don in PipeWire. Bundle the methods + implementation in a versioned inteface and use that to invoke methods. This way we can do version checks on the methods. Make resource and proxy interfaces that we can can call. We can then make the core interfaces independent on proxy/resource and hide them in the lower layers. Add add_listener method to methods of core interfaces, just like SPA.
Diffstat (limited to 'spa/plugins/alsa/alsa-utils.h')
0 files changed, 0 insertions, 0 deletions