blob: 63a2587b3012a3be756e831afc68a1b8247d3ec0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* ISC license. */
#include <skalibs/buffer.h>
#include <skalibs/functypes.h>
#include <skalibs/tai.h>
#include <skalibs/unix-timed.h>
static int buffer_isnonempty (buffer *b)
{
return !buffer_isempty(b) ;
}
int timed_buffer_flush (buffer *b, tain_t const *deadline, tain_t *stamp)
{
return timed_flush(b, (initfunc_t_ref)&buffer_getfd, (initfunc_t_ref)&buffer_isnonempty, (initfunc_t_ref)&buffer_flush, deadline, stamp) ;
}
|