From 45c5fbf7c9c2b9e3b596e8c4a4961ce586a19dcb Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 26 Jan 2018 10:58:18 +0100 Subject: [PATCH] doc: explicitly state that the ctxless event poll callback can be NULL This is mentioned later in the text, but state it in the argument's description too. Signed-off-by: Bartosz Golaszewski --- include/gpiod.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/gpiod.h b/include/gpiod.h index b00b9a9..b14fadc 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -260,7 +260,8 @@ int gpiod_ctxless_event_loop(const char *device, unsigned int offset, * @param active_low The active state of this line - true if low. * @param consumer Name of the consumer. * @param timeout Maximum wait time for each iteration. - * @param poll_cb Callback function to call when waiting for events. + * @param poll_cb Callback function to call when waiting for events. Can + * be NULL. * @param event_cb Callback function to call on event occurrence. * @param data User data passed to the callback. * @return 0 no errors were encountered, -1 if an error occurred. -- 2.30.2