skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit d76cbe1a8d6ae1e839bd7613f3291da2c9b042d0
parent a12d938e5ac6f737527fc1377ce4a88bfe6ad960
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Sun,  4 Jan 2015 00:28:23 +0000

 More macros for asyncout in skaclient.h

Diffstat:
Msrc/include/skalibs/skaclient.h | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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