From 9dafc75bb51c0f350330277a2e96b04f5a1c73b3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 10 Jan 2020 10:35:55 +0000 Subject: Add pub library and daemon --- src/libskabus/skabus_pub_sendvpm.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/libskabus/skabus_pub_sendvpm.c (limited to 'src/libskabus/skabus_pub_sendvpm.c') diff --git a/src/libskabus/skabus_pub_sendvpm.c b/src/libskabus/skabus_pub_sendvpm.c new file mode 100644 index 0000000..a898bbc --- /dev/null +++ b/src/libskabus/skabus_pub_sendvpm.c @@ -0,0 +1,15 @@ +/* ISC license. */ + +#include + +#include + +#include + +uint64_t skabus_pub_sendvpm_withfds (skabus_pub_t *a, char const *idstr, struct iovec const *v, unsigned int vlen, int const *fds, unsigned int nfds, unsigned char const *bits, tain_t const *deadline, tain_t *stamp) +{ + skabus_pub_send_result_t r ; + if (!skabus_pub_sendvpm_withfds_async(a, idstr, v, vlen, fds, nfds, bits, &r)) return 0 ; + if (!skaclient_syncify(&a->connection, deadline, stamp)) return 0 ; + return r.err ? (errno = r.err, 0) : r.u ; +} -- cgit v1.2.3