[PATCH 0/3] hwdep: define interface for hwdep device
alsa-project/alsa-gobject pull request #73 was edited from takaswie:
The protocol in ALSA HwDep character device has common feature to each device. It's suitable for userspace implementation to have GObject interface for such features.
This patchset adds the interface. The implementation of interface should have four methods; open, get_protocol_version, get_device_info, and create_source. Additionally, it should emit handle-disconnection signal when detecting ENODEV error in the interation of source. It requires to notify userspace application since the application should release character device immediately.
``` Takashi Sakamoto (3): hwdep: use explicit value for iface type enumeration hwdep: device-common: add interface for common feature of ALSA HwDep device hwdep: add error domain for implementators of DeviceCommon interface
src/hwdep/alsahwdep-enum-types.h | 89 +++++++++------- src/hwdep/alsahwdep.h | 2 + src/hwdep/alsahwdep.map | 10 ++ src/hwdep/device-common.c | 178 +++++++++++++++++++++++++++++++ src/hwdep/device-common.h | 106 ++++++++++++++++++ src/hwdep/meson.build | 2 + tests/alsahwdep-enums | 10 ++ 7 files changed, 356 insertions(+), 41 deletions(-) create mode 100644 src/hwdep/device-common.c create mode 100644 src/hwdep/device-common.h ```
Request URL : https://github.com/alsa-project/alsa-gobject/pull/73 Patch URL : https://github.com/alsa-project/alsa-gobject/pull/73.patch Repository URL: https://github.com/alsa-project/alsa-gobject
participants (1)
-
GitHub pull_request - edited