diff options
author | Keith Packard <keithp@keithp.com> | 2013-01-18 01:29:40 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-11-07 14:02:37 -0800 |
commit | 7983bf0fbdc2725403f9db6154d0f5bc944040e5 (patch) | |
tree | a72d78851c38521dc4c64ee3193c6d373210cc31 /src/xcbint.h | |
parent | 7b53fb0f9bddae77b3ab8823743db57faee4e99b (diff) |
Add support for receiving fds in replies
Requests signal which replies will have fds, and the replies report
how many fds they expect in byte 1.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-By: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/xcbint.h')
-rw-r--r-- | src/xcbint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xcbint.h b/src/xcbint.h index 391a4e1..4a01f6f 100644 --- a/src/xcbint.h +++ b/src/xcbint.h @@ -92,6 +92,7 @@ typedef struct _xcb_fd { struct cmsghdr cmsghdr; int fd[XCB_MAX_PASS_FD]; int nfd; + int ifd; } _xcb_fd; #endif @@ -150,6 +151,9 @@ typedef struct _xcb_in { struct pending_reply *pending_replies; struct pending_reply **pending_replies_tail; +#if HAVE_SENDMSG + _xcb_fd in_fd; +#endif } _xcb_in; int _xcb_in_init(_xcb_in *in); |