summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_receiver_0.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/unixmessage_receiver_0.c
parent8ddcb8ca23638109b0b4c31b2214cd0cad700b6a (diff)
downloadskalibs-82724c82fd69720a579a8b245637ac247c08c700.tar.xz
Better interface for simple skaclient servers
Diffstat (limited to 'src/libunixonacid/unixmessage_receiver_0.c')
-rw-r--r--src/libunixonacid/unixmessage_receiver_0.c15
1 files changed, 15 insertions, 0 deletions
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 <skalibs/unixmessage.h>
+
+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) ;
+}