summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-04 00:28:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-04 00:28:23 +0000
commitd76cbe1a8d6ae1e839bd7613f3291da2c9b042d0 (patch)
tree9cc8c38c103d327ec00e30b286841327192abd8a /src
parenta12d938e5ac6f737527fc1377ce4a88bfe6ad960 (diff)
downloadskalibs-d76cbe1a8d6ae1e839bd7613f3291da2c9b042d0.tar.xz
More macros for asyncout in skaclient.h
Diffstat (limited to 'src')
-rw-r--r--src/include/skalibs/skaclient.h6
1 files changed, 6 insertions, 0 deletions
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