Skip to content

treewide: remove ctxless API

Bartosz Golaszewski linux-gpio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2core: provide gpiod_line_bulk_clear()include/gpiod.h lib/core.c+13 -11 reply
2/2ctxless: drop all context-less interfacesinclude/gpiod.h lib/Makefile.am lib/ctxless.c +8 more+169 -13690 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [libgpiod][PATCH 0/2] treewide: remove ctxless API

From: Bartosz Golaszewski <[email protected]>

As I mentioned in another thread: the context-less API seems to be unused outside the gpio-tools. There's no reason to keep it in v2 then. Let's remove it and convert gpio-tools to regular API.

The tools are converted in a rather quick and dirty way because I don't want to spend a lot of time on something that'll be modified soon once we convert the library to using uAPI v2.

All tests still pass.

Bartosz Golaszewski (2):
core: provide gpiod_line_bulk_clear()
ctxless: drop all context-less interfaces

 include/gpiod.h            | 412 +--------------------------------
 lib/Makefile.am            |   2 +-
 lib/core.c                 |   8 +-
 lib/ctxless.c              | 456 -------------------------------------
 tests/Makefile.am          |   1 -
 tests/tests-ctxless.c      | 375 ------------------------------
 tools/gpio-tools-test.bats |  12 +-
 tools/gpiofind.c           |  25 +-
 tools/gpioget.c            |  36 ++-
 tools/gpiomon.c            | 177 +++++++-------
 tools/gpioset.c            |  42 +++-
 tools/tools-common.c       |   6 +-
 12 files changed, 182 insertions(+), 1370 deletions(-)
 delete mode 100644 lib/ctxless.c
 delete mode 100644 tests/tests-ctxless.c
Signature · 1 line
2.29.1