summaryrefslogtreecommitdiff
path: root/Xtrans.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-01-08 16:47:05 -0800
committerKeith Packard <keithp@keithp.com>2013-10-31 13:07:46 -0700
commitadf920aa25c1709998c7c9276927061bd58e2dfc (patch)
tree56170ded539860b1b9c7c33bc509f1b5dbdcaf60 /Xtrans.c
parent9e8d99c2e27f2c8acbbfb5b760649aa1bfad665e (diff)
Add APIs to send file descriptors through the network
Exposes new TRANS(SendFd)/TRANS(RecvFd) APIs. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xtrans.c')
-rw-r--r--Xtrans.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/Xtrans.c b/Xtrans.c
index ac8b13d..7c7967f 100644
--- a/Xtrans.c
+++ b/Xtrans.c
@@ -873,6 +873,18 @@ TRANS(Writev) (XtransConnInfo ciptr, struct iovec *buf, int size)
}
int
+TRANS(SendFd) (XtransConnInfo ciptr, int fd, int do_close)
+{
+ return ciptr->transptr->SendFd(ciptr, fd, do_close);
+}
+
+int
+TRANS(RecvFd) (XtransConnInfo ciptr)
+{
+ return ciptr->transptr->RecvFd(ciptr);
+}
+
+int
TRANS(Disconnect) (XtransConnInfo ciptr)
{