From d76cbe1a8d6ae1e839bd7613f3291da2c9b042d0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 4 Jan 2015 00:28:23 +0000 Subject: More macros for asyncout in skaclient.h --- src/include/skalibs/skaclient.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/include/skalibs/skaclient.h b/src/include/skalibs/skaclient.h index cf1aa3a..4705df1 100644 --- a/src/include/skalibs/skaclient.h +++ b/src/include/skalibs/skaclient.h @@ -116,4 +116,10 @@ extern int skaclient_syncify (skaclient_t *, tain_t const *, tain_t *) ; extern unixmessage_handler_func_t skaclient_default_cb ; +#define skaclient_aput_and_close(a, m, bits) unixmessage_put_and_close(&(a)->asyncout, m, bits) +#define skaclient_aputv_and_close(a, m, bits) unixmessage_putv_and_close(&(a)->asyncout, m, bits) +#define skaclient_aput(a, m) unixmessage_put(&(a)->asyncout, m) +#define skaclient_aputv(a, m) unixmessage_putv(&(a)->asyncout, m) +#define skaclient_aflush(a) unixmessage_sender_flush(&(a)->asyncout) + #endif -- cgit v1.2.3