summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-10-26 14:21:53 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-10-26 14:21:53 +0000
commit7530e8cdd506ecec1f4ad3bbd55f94de5a6d63ac (patch)
tree20917d9312d38cf57e04f17cec119d89873b57b3 /src/include
parentad90bc1107ef9a76f4ca530cc41e86d4f352e3d9 (diff)
downloadskalibs-7530e8cdd506ecec1f4ad3bbd55f94de5a6d63ac.tar.xz
Separate and expose ancil_recv_fd/ancil_send_fd
The goal is to make late channel creation easy, as opposed to textclient which always creates a new channel at start time. This commit also moves posixishard.h inclusions as late as possible.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/skalibs/ancil.h9
-rw-r--r--src/include/skalibs/unixonacid.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/include/skalibs/ancil.h b/src/include/skalibs/ancil.h
new file mode 100644
index 0000000..92270eb
--- /dev/null
+++ b/src/include/skalibs/ancil.h
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#ifndef SKALIBS_ANCIL_H
+#define SKALIBS_ANCIL_H
+
+extern int ancil_recv_fd (int, char) ;
+extern int ancil_send_fd (int, int, char) ;
+
+#endif
diff --git a/src/include/skalibs/unixonacid.h b/src/include/skalibs/unixonacid.h
index 7132f1c..76aca9d 100644
--- a/src/include/skalibs/unixonacid.h
+++ b/src/include/skalibs/unixonacid.h
@@ -5,6 +5,7 @@
#include <skalibs/unix-transactional.h>
#include <skalibs/unix-timed.h>
+#include <skalibs/ancil.h>
#include <skalibs/textmessage.h>
#include <skalibs/textclient.h>
#include <skalibs/unixmessage.h>