mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
tests: Refactor wraps into protocol-common.c
Part of refactoring the tests into a single binary, to make partial rebuild slightly faster and less verbose. Prepares for joining test/xi2/protocol-* into a single binary. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Mihail Konev <k.mvc@ya.ru>
This commit is contained in:
committed by
Adam Jackson
parent
45546219e1
commit
ff66bca3e8
@@ -46,24 +46,9 @@ struct {
|
||||
int win;
|
||||
} test_data;
|
||||
|
||||
static ClientRec client_window;
|
||||
ClientRec client_window;
|
||||
static ClientRec client_request;
|
||||
|
||||
int
|
||||
__wrap_dixLookupClient(ClientPtr *pClient, XID rid, ClientPtr client,
|
||||
Mask access)
|
||||
{
|
||||
if (rid == ROOT_WINDOW_ID)
|
||||
return BadWindow;
|
||||
|
||||
if (rid == CLIENT_WINDOW_ID) {
|
||||
*pClient = &client_window;
|
||||
return Success;
|
||||
}
|
||||
|
||||
return __real_dixLookupClient(pClient, rid, client, access);
|
||||
}
|
||||
|
||||
static void
|
||||
reply_XIGetClientPointer(ClientPtr client, int len, char *data, void *userdata)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user