Skip to content

treewide: an assortment of tweaks and improvements

Bartosz Golaszewski linux-gpio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11treewide: use C enum types explicitlybindings/cxx/edge-event.cpp bindings/cxx/info-event.cpp bindings/cxx/internal.hpp +26 more+431 -3341 reply
2/11treewide: apply formatting changes with clang-formatlib/edge-event.c lib/internal.c lib/internal.h +20 more+182 -2042 replies
3/11treewide: use plural 'events' in read_edge_event() functionsbindings/cxx/edge-event-buffer.cpp bindings/cxx/examples/gpiomoncxx.cpp bindings/cxx/gpiodcxx/line-request.hpp +16 more+117 -1171 reply
4/11treewide: rename EVENT_CLOCK to CLOCKbindings/cxx/line-info.cpp bindings/cxx/line-settings.cpp bindings/python/gpiod/ext/line-settings.c +11 more+78 -781 reply
5/11gpiosim: rename HOG_DIR to DIRECTIONbindings/cxx/tests/gpiosim.cpp bindings/cxx/tests/gpiosim.hpp bindings/cxx/tests/tests-line-info.cpp +9 more+38 -381 reply
6/11tools: display the correct license with --versiontools/tools-common.c+1 -10 replies
7/11bindings: rust: make reuse happyLICENSES/Apache-2.0.txt LICENSES/BSD-3-Clause.txt LICENSES/CC0-1.0.txt +2 more+359 -46 replies
8/11bindings: rust: include rust sources in the release tarballsbindings/rust/Makefile.am bindings/rust/gpiosim-sys/Makefile.am bindings/rust/gpiosim-sys/src/Makefile.am +8 more+90 -01 reply
9/11bindings: python: decouple the version of the bindings from libgpiod API versionbindings/python/gpiod/__init__.py bindings/python/gpiod/ext/module.c bindings/python/gpiod/version.py +2 more+19 -160 replies
10/11bindings: python: fix the GPIOD_WITH_TESTS build flagbindings/python/setup.py+1 -20 replies
11/11bindings: python: extend setup.pybindings/python/setup.py+5 -02 replies

Reviews trailers per patch

6 of 11 patches have a Reviewed-by or Acked-by.

PatchViresh Kumar
1/11Co-authored-by A-b
2/11
3/11A-b
4/11A-b
5/11A-b
6/11
7/11A-b
8/11A-b
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [libgpiod][PATCH 00/11] treewide: an assortment of tweaks and improvements

From: Bartosz Golaszewski <[email protected]>

This series contains various changes for libgpiod v2. There's no main theme to it really, just fixing problems I noticed and introducing some more changes to the API.

Bartosz Golaszewski (11):
treewide: use C enum types explicitly
treewide: apply formatting changes with clang-format
treewide: use plural 'events' in read_edge_event() functions
treewide: rename EVENT_CLOCK to CLOCK
gpiosim: rename HOG_DIR to DIRECTION
tools: display the correct license with --version
bindings: rust: make reuse happy
bindings: rust: include rust sources in the release tarballs
bindings: python: decouple the version of the bindings from libgpiod
API version
bindings: python: fix the GPIOD_WITH_TESTS build flag
bindings: python: extend setup.py

 LICENSES/Apache-2.0.txt                       | 201 ++++++++++++++++++
 LICENSES/BSD-3-Clause.txt                     |  28 +++
 LICENSES/CC0-1.0.txt                          | 121 +++++++++++
 Makefile.am                                   |   9 +-
 bindings/cxx/edge-event-buffer.cpp            |   2 +-
 bindings/cxx/edge-event.cpp                   |   2 +-
 bindings/cxx/examples/gpiomoncxx.cpp          |   2 +-
 bindings/cxx/gpiodcxx/line-request.hpp        |   6 +-
 bindings/cxx/info-event.cpp                   |   2 +-
 bindings/cxx/internal.hpp                     |   6 +-
 bindings/cxx/line-info.cpp                    |   8 +-
 bindings/cxx/line-request.cpp                 |  24 ++-
 bindings/cxx/line-settings.cpp                |  87 ++++----
 bindings/cxx/tests/gpiosim.cpp                |  24 +--
 bindings/cxx/tests/gpiosim.hpp                |   4 +-
 bindings/cxx/tests/tests-edge-event.cpp       |  56 ++---
 bindings/cxx/tests/tests-line-info.cpp        |   2 +-
 bindings/python/examples/gpiomon.py           |   2 +-
 bindings/python/gpiod/__init__.py             |   3 +-
 bindings/python/gpiod/ext/line-settings.c     |  54 ++---
 bindings/python/gpiod/ext/module.c            |   8 +-
 bindings/python/gpiod/ext/request.c           |  12 +-
 bindings/python/gpiod/line_request.py         |   6 +-
 bindings/python/gpiod/version.py              |   5 +
 bindings/python/setup.py                      |  18 +-
 bindings/python/tests/gpiosim/ext.c           |   6 +-
 bindings/python/tests/tests_edge_event.py     |  38 ++--
 bindings/python/tests/tests_module.py         |  15 +-
 bindings/rust/.gitignore                      |   4 +-
 bindings/rust/Makefile.am                     |   4 +
 bindings/rust/gpiosim-sys/Makefile.am         |   6 +
 bindings/rust/gpiosim-sys/src/Makefile.am     |   5 +
 bindings/rust/gpiosim-sys/src/lib.rs          |  48 +++--
 bindings/rust/gpiosim-sys/src/sim.rs          |   2 +-
 bindings/rust/libgpiod-sys/Makefile.am        |   6 +
 bindings/rust/libgpiod-sys/src/Makefile.am    |   5 +
 bindings/rust/libgpiod/Makefile.am            |   6 +
 bindings/rust/libgpiod/examples/Makefile.am   |  14 ++
 .../rust/libgpiod/examples/gpio_events.rs     |   2 +-
 bindings/rust/libgpiod/examples/gpiomon.rs    |   2 +-
 bindings/rust/libgpiod/src/Makefile.am        |  15 ++
 bindings/rust/libgpiod/src/event_buffer.rs    |   2 +-
 bindings/rust/libgpiod/src/lib.rs             | 169 +++++++++------
 bindings/rust/libgpiod/src/line_info.rs       |  10 +-
 bindings/rust/libgpiod/src/line_request.rs    |   4 +-
 bindings/rust/libgpiod/src/line_settings.rs   |  30 +--
 bindings/rust/libgpiod/tests/Makefile.am      |  15 ++
 .../rust/libgpiod/tests/common/Makefile.am    |   5 +
 bindings/rust/libgpiod/tests/edge_event.rs    |  24 +--
 bindings/rust/libgpiod/tests/line_request.rs  |   2 +-
 configure.ac                                  |   9 +
 include/gpiod.h                               | 106 +++++----
 lib/edge-event.c                              |  13 +-
 lib/info-event.c                              |   5 +-
 lib/internal.c                                |   4 +-
 lib/internal.h                                |   3 +-
 lib/line-config.c                             |  55 ++---
 lib/line-info.c                               |  31 +--
 lib/line-request.c                            |  31 +--
 lib/line-settings.c                           |  50 ++---
 tests/gpiod-test-helpers.h                    |   2 +-
 tests/gpiod-test-sim.c                        |  53 +++--
 tests/gpiod-test-sim.h                        |   8 +-
 tests/gpiosim/gpiosim-selftest.c              |   2 +-
 tests/gpiosim/gpiosim.c                       |  50 +++--
 tests/gpiosim/gpiosim.h                       |  30 +--
 tests/tests-chip-info.c                       |   1 -
 tests/tests-edge-event.c                      |  98 ++++-----
 tests/tests-info-event.c                      |   2 +-
 tests/tests-line-config.c                     |   2 +-
 tests/tests-line-info.c                       |  39 ++--
 tests/tests-line-request.c                    |  58 ++---
 tests/tests-line-settings.c                   |  40 ++--
 tests/tests-request-config.c                  |  12 +-
 tools/gpiodetect.c                            |   3 +-
 tools/gpioget.c                               |   7 +-
 tools/gpioinfo.c                              |  12 +-
 tools/gpiomon.c                               |  31 ++-
 tools/gpionotify.c                            |  10 +-
 tools/gpioset.c                               |  85 ++++----
 tools/tools-common.c                          |  47 ++--
 tools/tools-common.h                          |  11 +-
 82 files changed, 1284 insertions(+), 757 deletions(-)
 create mode 100644 LICENSES/Apache-2.0.txt
 create mode 100644 LICENSES/BSD-3-Clause.txt
 create mode 100644 LICENSES/CC0-1.0.txt
 create mode 100644 bindings/python/gpiod/version.py
 create mode 100644 bindings/rust/gpiosim-sys/Makefile.am
 create mode 100644 bindings/rust/gpiosim-sys/src/Makefile.am
 create mode 100644 bindings/rust/libgpiod-sys/Makefile.am
 create mode 100644 bindings/rust/libgpiod-sys/src/Makefile.am
 create mode 100644 bindings/rust/libgpiod/Makefile.am
 create mode 100644 bindings/rust/libgpiod/examples/Makefile.am
 create mode 100644 bindings/rust/libgpiod/src/Makefile.am
 create mode 100644 bindings/rust/libgpiod/tests/Makefile.am
 create mode 100644 bindings/rust/libgpiod/tests/common/Makefile.am
Signature · 1 line
2.37.2