summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-03 12:17:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-03 12:17:07 +0000
commitee79b9d4f6df1faedabc8bc468a1801661738ff8 (patch)
treea008b19d1e008f09f142714e61cc0859dd0a7d8e
parent6c7ba543f3e5721ccc37a98b449a5c6224c109cd (diff)
downloadskalibs-ee79b9d4f6df1faedabc8bc468a1801661738ff8.tar.xz
Add unixmessage_receiver_isfull
-rw-r--r--src/include/skalibs/unixmessage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/skalibs/unixmessage.h b/src/include/skalibs/unixmessage.h
index ab9b942..e45dc09 100644
--- a/src/include/skalibs/unixmessage.h
+++ b/src/include/skalibs/unixmessage.h
@@ -105,6 +105,7 @@ extern int unixmessage_receiver_init (unixmessage_receiver_t *, int, char *, uns
extern void unixmessage_receiver_free (unixmessage_receiver_t *) ;
#define unixmessage_receiver_fd(b) ((b)->fd)
#define unixmessage_receiver_isempty(b) (cbuffer_isempty(&(b)->mainb) && cbuffer_isempty(&(b)->auxb))
+#define unixmessage_receiver_isfull(b) (cbuffer_isfull(&(b)->mainb) || cbuffer_isfull(&(b)->auxb))
extern int unixmessage_receive (unixmessage_receiver_t *, unixmessage_t *) ;
extern int unixmessage_timed_receive (unixmessage_receiver_t *, unixmessage_t *, tain_t const *, tain_t *) ;