alsa-project/alsa-gobject pull request #67 was opened from takaswie:
Current implementation of included libraries have duplicated codes to operate over sysfs by libudev and so. It's inconvenient in a point of maintenance.
This patchset adds internal static library to include such codes.
``` Takashi Sakamoto (6): utils: build internal static library including common utilities utils: add utility to compute integer value from string literal utils: add utilities to allocate string information for device utils: add utilitiy to generate list of sysnum by prefix of sysname utils: add utilities to request control ioctl utils: add utility macros to generate GError with file domain
src/ctl/card.c | 5 +- src/ctl/meson.build | 2 +- src/ctl/query.c | 261 ++---------------------------- src/hwdep/meson.build | 2 +- src/hwdep/query.c | 306 +++-------------------------------- src/meson.build | 1 + src/rawmidi/meson.build | 2 +- src/rawmidi/query.c | 324 ++++---------------------------------- src/rawmidi/stream-pair.c | 5 +- src/seq/meson.build | 2 +- src/seq/query.c | 87 ++-------- src/seq/user-client.c | 5 +- src/timer/meson.build | 2 +- src/timer/query.c | 105 +++--------- src/timer/user-instance.c | 5 +- src/utils/ioctl.c | 45 ++++++ src/utils/meson.build | 23 +++ src/utils/string.c | 47 ++++++ src/utils/sysfs.c | 176 +++++++++++++++++++++ src/utils/utils.h | 176 +++++++++++++++++++++ 20 files changed, 578 insertions(+), 1003 deletions(-) create mode 100644 src/utils/ioctl.c create mode 100644 src/utils/meson.build create mode 100644 src/utils/string.c create mode 100644 src/utils/sysfs.c create mode 100644 src/utils/utils.h ```
Request URL : https://github.com/alsa-project/alsa-gobject/pull/67 Patch URL : https://github.com/alsa-project/alsa-gobject/pull/67.patch Repository URL: https://github.com/alsa-project/alsa-gobject