mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
rename remaining RT_* defines to X11_RESTYPE_*
Since we already had to rename some of them, in order to fix name clashes on win32, it's now time to rename all the remaining ones. The old ones are still present as define's to the new ones, just for backwards compatibility. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1355>
This commit is contained in:
committed by
Alan Coopersmith
parent
1ca48d0a48
commit
85d4bd0dba
@@ -238,14 +238,14 @@ proc_dri3_pixmap_from_buffer(ClientPtr client)
|
||||
pixmap->drawable.id = stuff->pixmap;
|
||||
|
||||
/* security creation/labeling check */
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pixmap, RT_PIXMAP,
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pixmap, X11_RESTYPE_PIXMAP,
|
||||
pixmap, X11_RESTYPE_NONE, NULL, DixCreateAccess);
|
||||
|
||||
if (rc != Success) {
|
||||
(*drawable->pScreen->DestroyPixmap) (pixmap);
|
||||
return rc;
|
||||
}
|
||||
if (!AddResource(stuff->pixmap, RT_PIXMAP, (void *) pixmap))
|
||||
if (!AddResource(stuff->pixmap, X11_RESTYPE_PIXMAP, (void *) pixmap))
|
||||
return BadAlloc;
|
||||
|
||||
return Success;
|
||||
@@ -266,7 +266,7 @@ proc_dri3_buffer_from_pixmap(ClientPtr client)
|
||||
PixmapPtr pixmap;
|
||||
|
||||
REQUEST_SIZE_MATCH(xDRI3BufferFromPixmapReq);
|
||||
rc = dixLookupResourceByType((void **) &pixmap, stuff->pixmap, RT_PIXMAP,
|
||||
rc = dixLookupResourceByType((void **) &pixmap, stuff->pixmap, X11_RESTYPE_PIXMAP,
|
||||
client, DixWriteAccess);
|
||||
if (rc != Success) {
|
||||
client->errorValue = stuff->pixmap;
|
||||
@@ -502,14 +502,14 @@ proc_dri3_pixmap_from_buffers(ClientPtr client)
|
||||
pixmap->drawable.id = stuff->pixmap;
|
||||
|
||||
/* security creation/labeling check */
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pixmap, RT_PIXMAP,
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pixmap, X11_RESTYPE_PIXMAP,
|
||||
pixmap, X11_RESTYPE_NONE, NULL, DixCreateAccess);
|
||||
|
||||
if (rc != Success) {
|
||||
(*screen->DestroyPixmap) (pixmap);
|
||||
return rc;
|
||||
}
|
||||
if (!AddResource(stuff->pixmap, RT_PIXMAP, (void *) pixmap))
|
||||
if (!AddResource(stuff->pixmap, X11_RESTYPE_PIXMAP, (void *) pixmap))
|
||||
return BadAlloc;
|
||||
|
||||
return Success;
|
||||
@@ -532,7 +532,7 @@ proc_dri3_buffers_from_pixmap(ClientPtr client)
|
||||
PixmapPtr pixmap;
|
||||
|
||||
REQUEST_SIZE_MATCH(xDRI3BuffersFromPixmapReq);
|
||||
rc = dixLookupResourceByType((void **) &pixmap, stuff->pixmap, RT_PIXMAP,
|
||||
rc = dixLookupResourceByType((void **) &pixmap, stuff->pixmap, X11_RESTYPE_PIXMAP,
|
||||
client, DixWriteAccess);
|
||||
if (rc != Success) {
|
||||
client->errorValue = stuff->pixmap;
|
||||
|
||||
Reference in New Issue
Block a user