From 5095bdd01a62eeb6c5ca9a38b6c84272f653134c Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 2 Oct 2018 16:30:37 +0200 Subject: [PATCH] API: mark context-less event loop functions as deprecated Mark gpiod_ctxless_event_loop() and gpiod_ctxless_event_loop_multiple() as deprecated. Those functions suffer from an issue where HW may not allow setting up both rising and falling egde interrupts. All users have been converted to using the new event monitor helpers. Signed-off-by: Bartosz Golaszewski --- include/gpiod.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gpiod.h b/include/gpiod.h index 7272462..ccff977 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -264,7 +264,7 @@ int gpiod_ctxless_event_loop(const char *device, unsigned int offset, const struct timespec *timeout, gpiod_ctxless_event_poll_cb poll_cb, gpiod_ctxless_event_handle_cb event_cb, - void *data) GPIOD_API; + void *data) GPIOD_API GPIOD_DEPRECATED; /** * @brief Wait for events on multiple GPIO lines. @@ -301,7 +301,7 @@ int gpiod_ctxless_event_loop_multiple(const char *device, const struct timespec *timeout, gpiod_ctxless_event_poll_cb poll_cb, gpiod_ctxless_event_handle_cb event_cb, - void *data) GPIOD_API; + void *data) GPIOD_API GPIOD_DEPRECATED; /** * @brief Wait for events on a single GPIO line. -- 2.30.2