summaryrefslogtreecommitdiff
path: root/src/libunixonacid/skaclient_server_01x.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-04 16:30:20 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-04 16:30:20 +0000
commit82724c82fd69720a579a8b245637ac247c08c700 (patch)
tree1f805e13b5ebde8c3497c83914a317dd203bf263 /src/libunixonacid/skaclient_server_01x.c
parent8ddcb8ca23638109b0b4c31b2214cd0cad700b6a (diff)
downloadskalibs-82724c82fd69720a579a8b245637ac247c08c700.tar.xz
Better interface for simple skaclient servers
Diffstat (limited to 'src/libunixonacid/skaclient_server_01x.c')
-rw-r--r--src/libunixonacid/skaclient_server_01x.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libunixonacid/skaclient_server_01x.c b/src/libunixonacid/skaclient_server_01x.c
new file mode 100644
index 0000000..e55e8cd
--- /dev/null
+++ b/src/libunixonacid/skaclient_server_01x.c
@@ -0,0 +1,21 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/tai.h>
+#include <skalibs/unixmessage.h>
+#include <skalibs/skaclient.h>
+
+int skaclient_server_01x_init (char const *before, unsigned int beforelen, char const *after, unsigned int afterlen, tain_t const *deadline, tain_t *stamp)
+{
+ return unixmessage_receiver_0_init() && skaclient_server_init(
+ unixmessage_receiver_0,
+ unixmessage_sender_1,
+ unixmessage_sender_x,
+ before,
+ beforelen,
+ after,
+ afterlen,
+ deadline,
+ stamp) ;
+}