commit ee79b9d4f6df1faedabc8bc468a1801661738ff8
parent 6c7ba543f3e5721ccc37a98b449a5c6224c109cd
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Sat, 3 Jan 2015 12:17:07 +0000
Add unixmessage_receiver_isfull
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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 *) ;