From: Bartosz Golaszewski Date: Tue, 2 Oct 2018 14:30:37 +0000 (+0200) Subject: API: mark context-less event loop functions as deprecated X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5095bdd01a62eeb6c5ca9a38b6c84272f653134c;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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.