From: Bartosz Golaszewski Date: Wed, 11 Oct 2017 15:01:04 +0000 (+0200) Subject: simple-api: improve documentation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b96ddf1635b94351ddc833371c7481a975c039eb;p=qemu-gpiodev%2Flibgpiod.git simple-api: improve documentation Mention the meaning of a positive value returned from the polling callback of the simple event loop routines. Signed-off-by: Bartosz Golaszewski --- diff --git a/include/gpiod.h b/include/gpiod.h index 7ef3ce4..264c403 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -168,6 +168,9 @@ typedef int (*gpiod_simple_event_handle_cb)(int, unsigned int, /** * @brief Return status values that the simple event poll callback can return. + * + * Positive value returned from the polling callback indicates the number of + * events that occurred on the set of monitored lines. */ enum { GPIOD_SIMPLE_EVENT_POLL_RET_STOP = -2,