dix: rename dixLookupClient() to dixLookupResourceOwner()

Choose a bit more precise / descriptive name for that function.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-04-17 14:58:30 +02:00
parent a48b83b9a2
commit 7501ca09b9
10 changed files with 12 additions and 12 deletions

View File

@ -1370,7 +1370,7 @@ ProcSyncSetPriority(ClientPtr client)
if (stuff->id == None)
priorityclient = client;
else {
rc = dixLookupClient(&priorityclient, stuff->id, client,
rc = dixLookupResourceOwner(&priorityclient, stuff->id, client,
DixSetAttrAccess);
if (rc != Success)
return rc;
@ -1406,7 +1406,7 @@ ProcSyncGetPriority(ClientPtr client)
if (stuff->id == None)
priorityclient = client;
else {
rc = dixLookupClient(&priorityclient, stuff->id, client,
rc = dixLookupResourceOwner(&priorityclient, stuff->id, client,
DixGetAttrAccess);
if (rc != Success)
return rc;

View File

@ -298,7 +298,7 @@ ProcSELinuxGetClientContext(ClientPtr client)
REQUEST(SELinuxGetContextReq);
REQUEST_SIZE_MATCH(SELinuxGetContextReq);
rc = dixLookupClient(&target, stuff->id, client, DixGetAttrAccess);
rc = dixLookupResourceOwner(&target, stuff->id, client, DixGetAttrAccess);
if (rc != Success)
return rc;

View File

@ -67,7 +67,7 @@ ProcXIGetClientPointer(ClientPtr client)
REQUEST_SIZE_MATCH(xXIGetClientPointerReq);
if (stuff->win != None) {
rc = dixLookupClient(&winclient, stuff->win, client, DixGetAttrAccess);
rc = dixLookupResourceOwner(&winclient, stuff->win, client, DixGetAttrAccess);
if (rc != Success)
return BadWindow;

View File

@ -82,7 +82,7 @@ ProcXISetClientPointer(ClientPtr client)
pDev = GetMaster(pDev, MASTER_POINTER);
if (stuff->win != None) {
rc = dixLookupClient(&targetClient, stuff->win, client,
rc = dixLookupResourceOwner(&targetClient, stuff->win, client,
DixManageAccess);
if (rc != Success)

View File

@ -3349,7 +3349,7 @@ ProcKillClient(ClientPtr client)
return Success;
}
rc = dixLookupClient(&killclient, stuff->id, client, DixDestroyAccess);
rc = dixLookupResourceOwner(&killclient, stuff->id, client, DixDestroyAccess);
if (rc == Success) {
CloseDownClient(killclient);
if (client == killclient) {

View File

@ -94,7 +94,7 @@ int dixLookupGC(GCPtr *result,
ClientPtr client,
Mask access_mode);
int dixLookupClient(ClientPtr *result,
int dixLookupResourceOwner(ClientPtr *result,
XID id,
ClientPtr client,
Mask access_mode);

View File

@ -218,7 +218,7 @@ dixLookupFontable(FontPtr *pFont, XID id, ClientPtr client, Mask access)
}
int
dixLookupClient(ClientPtr *result, XID id, ClientPtr client, Mask access_mode)
dixLookupResourceOwner(ClientPtr *result, XID id, ClientPtr client, Mask access_mode)
{
void *pRes;
int rc = BadValue, clientIndex = CLIENT_ID(id);

View File

@ -122,7 +122,7 @@ RootlessNativeWindowMoved(WindowPtr pWin)
/* pretend we're the owner of the window! */
err =
dixLookupClient(&pClient, pWin->drawable.id, serverClient,
dixLookupResourceOwner(&pClient, pWin->drawable.id, serverClient,
DixUnknownAccess);
if (err != Success) {
ErrorF("RootlessNativeWindowMoved(): Failed to lookup window: 0x%x\n",

View File

@ -218,7 +218,7 @@ if build_xorg
unit_includes += [include_directories('xi1', 'xi2')]
ldwraps = [
'-Wl,-wrap,dixLookupWindow',
'-Wl,-wrap,dixLookupClient',
'-Wl,-wrap,dixLookupResourceOwner',
'-Wl,-wrap,WriteToClient',
'-Wl,-wrap,dixLookupWindow',
'-Wl,-wrap,XISetEventMask',

View File

@ -332,7 +332,7 @@ WRAP_FUNCTION(dixLookupWindow, int,
extern ClientRec client_window;
WRAP_FUNCTION(dixLookupClient, int,
WRAP_FUNCTION(dixLookupResourceOwner, int,
ClientPtr *pClient, XID rid, ClientPtr client, Mask access)
{
if (rid == ROOT_WINDOW_ID)
@ -343,5 +343,5 @@ WRAP_FUNCTION(dixLookupClient, int,
return Success;
}
return __real_dixLookupClient(pClient, rid, client, access);
return __real_dixLookupResourceOwner(pClient, rid, client, access);
}