diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-03-17 17:08:07 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-03-30 20:31:13 -0700 |
commit | a100f5f5cd66c1baf91276834d0c1de9803856f3 (patch) | |
tree | 25b3462a2cdf0679d736285d9e8d2ab7cca1e232 /include | |
parent | 9e1e383021c82a78c9c3a0c23b3f76016a5569ed (diff) |
Expose sequence number setting "extension" to test programs
Allows setting specific sequeunce numbers for matching request patterns
to avoid having to match exact sequences of calls Xlib may make behind
the scenes to check for/use various extensions for you.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xhiv.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/xhiv.h b/include/xhiv.h index 709afa0..0063cf3 100644 --- a/include/xhiv.h +++ b/include/xhiv.h @@ -51,16 +51,18 @@ typedef struct xhiv_response { /* Fork a server process and return the string needed to connect to it. */ extern char *XhivOpenServer(xhiv_response *responses, pid_t *return_pid); -/* Open a Xlib display connection to a new Xhiv server */ +/* Manage an Xlib display connection to a new Xhiv server */ #include <X11/Xlib.h> extern Display *XhivOpenDisplay(xhiv_response *responses); extern int XhivCloseDisplay(Display *dpy); +extern void XhivSequenceSync(Display *dpy, uint32_t sequence); #ifdef HAVE_XCB -/* Open an xcb display connection to a new Xhiv server */ +/* Manage an xcb display connection to a new Xhiv server */ #include <xcb/xcb.h> extern xcb_connection_t *xhiv_connect(xhiv_response *responses); extern int xhiv_disconnect(xcb_connection_t *conn); +extern void xhiv_sequence_sync(xcb_connection_t *conn, uint32_t sequence); #endif #endif /* XHIV_H */ |