summaryrefslogtreecommitdiff
path: root/src/libunixonacid/textmessage_sender_timed_flush.c
blob: fbe30a65b6a275018615506bc0979246776e094d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

#include <skalibs/functypes.h>
#include <skalibs/unix-timed.h>
#include <skalibs/textmessage.h>

static int textmessage_sender_isnonempty (textmessage_sender *ts)
{
  return !textmessage_sender_isempty(ts) ;
}

int textmessage_sender_timed_flush (textmessage_sender *ts, tain const *deadline, tain *stamp)
{
  return timed_flush(ts, (init_func_ref)&textmessage_sender_getfd, (init_func_ref)&textmessage_sender_isnonempty, (init_func_ref)&textmessage_sender_flush, deadline, stamp) ;
}