From: Bartosz Golaszewski Date: Fri, 26 Jan 2018 09:58:18 +0000 (+0100) Subject: doc: explicitly state that the ctxless event poll callback can be NULL X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=45c5fbf7c9c2b9e3b596e8c4a4961ce586a19dcb;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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.