diff options
author | Bartosz Golaszewski <bartekgola@gmail.com> | 2018-10-02 16:30:37 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartekgola@gmail.com> | 2018-10-07 11:00:15 +0200 |
commit | 5095bdd01a62eeb6c5ca9a38b6c84272f653134c (patch) | |
tree | d455d168331f7b49492381b320e5bcdbb9e4e84c | |
parent | 99bc2260bddfa409a1ad3cb78470b4a9593e9d3e (diff) |
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 <bartekgola@gmail.com>
-rw-r--r-- | include/gpiod.h | 4 |
1 files 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. |