about summary refs log tree commit diff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 15:56:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 15:56:05 +0000
commitd945bca329f7a13741e1d3afcf9f0f73f6c70ce9 (patch)
tree8a5018ae89923172361823ae24f737819ed4a9d2 /src/include
parentf7c2e436ed0144d09cff0e3ac90f510a47f0aeac (diff)
downloads6-d945bca329f7a13741e1d3afcf9f0f73f6c70ce9.tar.gz
s6-d945bca329f7a13741e1d3afcf9f0f73f6c70ce9.tar.xz
s6-d945bca329f7a13741e1d3afcf9f0f73f6c70ce9.zip
Add ftrigr_updateb()
Diffstat (limited to 'src/include')
-rw-r--r--src/include/s6/ftrigr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/s6/ftrigr.h b/src/include/s6/ftrigr.h
index 4afbc97..425a689 100644
--- a/src/include/s6/ftrigr.h
+++ b/src/include/s6/ftrigr.h
@@ -3,6 +3,7 @@
 #ifndef FTRIGR_H
 #define FTRIGR_H
 
+#include <sys/types.h>
 #include <stdint.h>
 #include <skalibs/config.h>
 #include <skalibs/tai.h>
@@ -55,10 +56,11 @@ struct ftrigr_s
 {
   skaclient_t connection ;
   genalloc list ; /* array of uint16_t */
+  size_t head ;
   gensetdyn data ; /* set of ftrigr1_t */
   skaclient_buffer_t buffers ;
 } ;
-#define FTRIGR_ZERO { .connection = SKACLIENT_ZERO, .list = GENALLOC_ZERO, .data = GENSETDYN_INIT(ftrigr1_t, 2, 0, 1) }
+#define FTRIGR_ZERO { .connection = SKACLIENT_ZERO, .list = GENALLOC_ZERO, .head = 0, .data = GENSETDYN_INIT(ftrigr1_t, 2, 0, 1) }
 extern ftrigr_t const ftrigr_zero ;
 
 
@@ -74,9 +76,11 @@ extern void ftrigr_end (ftrigr_t *) ;
  /* Instant primitives for async programming */
 
 #define ftrigr_fd(a) skaclient_fd(&(a)->connection)
+extern int ftrigr_updateb (ftrigr_t *) ;
 extern int ftrigr_update (ftrigr_t *) ;
 extern int ftrigr_check (ftrigr_t *, uint16_t, char *) ;
 extern int ftrigr_checksa (ftrigr_t *, uint16_t, stralloc *) ;
+extern void ftrigr_ack (ftrigr_t *, size_t) ;
 
 
  /* Synchronous functions with timeouts */