Skip to contentSkip to conversation

bindings: rust: examples: add a reimplementation of gpionotify

PATCH In review Bartosz Golaszewski 2 participants 2 messages Mar 10, 2023 – Mar 13, 2023 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bindings: rust: examples: add a reimplementation of gpionotify

From: Bartosz Golaszewski <[email protected]>

Add a new rust example - a simplified reimplementation of the gpionotify tool.

---
Viresh, please take a look at my attempt at a rust sample. :)

 bindings/rust/libgpiod/examples/Makefile.am   |  1 +
 bindings/rust/libgpiod/examples/gpionotify.rs | 53 +++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 bindings/rust/libgpiod/examples/gpionotify.rs
bindings/rust/libgpiod/examples/Makefile.am +1 -0
index 6028fff..2e1ccbd 100644
@@ -9,6 +9,7 @@ EXTRA_DIST = \
 	gpioget.rs \
 	gpioinfo.rs \
 	gpiomon.rs \
+	gpionotify.rs \
 	gpioset.rs \
 	gpio_threaded_info_events.rs \
 	gpiowatch.rs
bindings/rust/libgpiod/examples/gpionotify.rs new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.37.2
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add a new rust example - a simplified reimplementation of the gpionotify tool.

Quoted 8 lines

---
Viresh, please take a look at my attempt at a rust sample. :)

 bindings/rust/libgpiod/examples/Makefile.am   |  1 +
 bindings/rust/libgpiod/examples/gpionotify.rs | 53 +++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 bindings/rust/libgpiod/examples/gpionotify.rs
Signature · 1 line
viresh