From 82724c82fd69720a579a8b245637ac247c08c700 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 4 Dec 2014 16:30:20 +0000 Subject: Better interface for simple skaclient servers --- src/libunixonacid/unixmessage_receiver_0.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/libunixonacid/unixmessage_receiver_0.c (limited to 'src/libunixonacid/unixmessage_receiver_0.c') diff --git a/src/libunixonacid/unixmessage_receiver_0.c b/src/libunixonacid/unixmessage_receiver_0.c new file mode 100644 index 0000000..2b6f165 --- /dev/null +++ b/src/libunixonacid/unixmessage_receiver_0.c @@ -0,0 +1,15 @@ +/* ISC license. */ + +/* MT-unsafe */ + +#include + +static char mainbuf[UNIXMESSAGE_RECEIVER_MAINBUFSIZE] ; +static char auxbuf[UNIXMESSAGE_RECEIVER_AUXBUFSIZE] ; + +unixmessage_receiver_t unixmessage_receiver_0_ = UNIXMESSAGE_RECEIVER_ZERO ; + +int unixmessage_receiver_0_init () +{ + return unixmessage_receiver_init(&unixmessage_receiver_0_, 0, mainbuf, UNIXMESSAGE_RECEIVER_MAINBUFSIZE, auxbuf, UNIXMESSAGE_RECEIVER_AUXBUFSIZE) ; +} -- cgit v1.2.3