diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-07-16 15:56:05 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-07-16 15:56:05 +0000 |
commit | d945bca329f7a13741e1d3afcf9f0f73f6c70ce9 (patch) | |
tree | 8a5018ae89923172361823ae24f737819ed4a9d2 /doc/libs6 | |
parent | f7c2e436ed0144d09cff0e3ac90f510a47f0aeac (diff) | |
download | s6-d945bca329f7a13741e1d3afcf9f0f73f6c70ce9.tar.xz |
Add ftrigr_updateb()
Diffstat (limited to 'doc/libs6')
-rw-r--r-- | doc/libs6/ftrigr.html | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/doc/libs6/ftrigr.html b/doc/libs6/ftrigr.html index cc9e37a..96e4d95 100644 --- a/doc/libs6/ftrigr.html +++ b/doc/libs6/ftrigr.html @@ -227,7 +227,7 @@ int ftrigr_fd (ftrigr_t const *a) </p> <pre> -int ftrigr_update (ftrigr_t *a) +int ftrigr_updateb (ftrigr_t *a) </pre> <p> @@ -239,11 +239,14 @@ which something happened. </p> <p> - When <tt>ftrigr_update</tt> returns, + When <tt>ftrigr_updateb</tt> returns, <tt>genalloc_s(uint16_t, &a->list)</tt> points to an array of <tt>genalloc_len(uint16_t, &a->list)</tt> 16-bit unsigned integers. Those integers are ids waiting to be passed to -<tt>ftrigr_check</tt>. +<tt>ftrigr_check</tt> or <tt>ftrigr_checksa</tt>. +The number of ids already acknowledged is stored in +<tt>a->head</tt>, so the first unacknowledged id is +<tt>genalloc_s(uint16_t, &a->list)[a->head]</tt>. </p> <pre> @@ -252,7 +255,7 @@ int ftrigr_check (ftrigr_t *a, uint16_t id, char *what) <p> Checks whether an event happened to <em>id</em>. Use after a -call to <tt>ftrigr_update()</tt>. +call to <tt>ftrigr_updateb()</tt>. </p> <ul> @@ -287,5 +290,23 @@ to <tt>ftrigr_check()</tt>. Each character is the one that triggered a notification. The function then returns 1. </li> </ul> +<pre> +int ftrigr_ack (ftrigr_t *a, size_t n) +</pre> + +<p> + Acknowledges reading <em>n</em> ids from the id list updated by +<tt>ftrigr_updateb</tt>. +</p> + +<pre> +int ftrigr_update (ftrigr_t *a) +</pre> + +<p> + Acknowledges all the pending ids (i.e. clears the stored id list) +then calls <tt>ftrigr_updateb()</tt>. +</p> + </body> </html> |