Skip to content

add internal static library to include common utilities

GitHub pull_request - opened alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] add internal static library to include common utilities

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