mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
xfixes: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
122
xfixes/cursor.c
122
xfixes/cursor.c
@@ -259,17 +259,13 @@ XFixesSelectCursorInput(ClientPtr pClient, WindowPtr pWindow, CARD32 eventMask)
|
|||||||
int
|
int
|
||||||
ProcXFixesSelectCursorInput(ClientPtr client)
|
ProcXFixesSelectCursorInput(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesSelectCursorInputReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesSelectCursorInputReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(window);
|
||||||
|
X_REQUEST_FIELD_CARD32(eventMask);
|
||||||
|
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesSelectCursorInputReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->window);
|
|
||||||
swapl(&stuff->eventMask);
|
|
||||||
}
|
|
||||||
|
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
@@ -351,11 +347,11 @@ CopyCursorToImage(CursorPtr pCursor, CARD32 *image)
|
|||||||
int
|
int
|
||||||
ProcXFixesGetCursorImage(ClientPtr client)
|
ProcXFixesGetCursorImage(ClientPtr client)
|
||||||
{
|
{
|
||||||
/* REQUEST(xXFixesGetCursorImageReq); */
|
X_REQUEST_HEAD_STRUCT(xXFixesGetCursorImageReq);
|
||||||
|
|
||||||
CursorPtr pCursor;
|
CursorPtr pCursor;
|
||||||
int npixels, width, height, rc, x, y;
|
int npixels, width, height, rc, x, y;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesGetCursorImageReq);
|
|
||||||
pCursor = CursorForClient(client);
|
pCursor = CursorForClient(client);
|
||||||
if (!pCursor)
|
if (!pCursor)
|
||||||
return BadCursor;
|
return BadCursor;
|
||||||
@@ -406,17 +402,13 @@ ProcXFixesSetCursorName(ClientPtr client)
|
|||||||
{
|
{
|
||||||
CursorPtr pCursor;
|
CursorPtr pCursor;
|
||||||
char *tchar;
|
char *tchar;
|
||||||
|
|
||||||
REQUEST(xXFixesSetCursorNameReq);
|
|
||||||
Atom atom;
|
Atom atom;
|
||||||
|
|
||||||
|
X_REQUEST_HEAD_AT_LEAST(xXFixesSetCursorNameReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(cursor);
|
||||||
|
X_REQUEST_FIELD_CARD16(nbytes);
|
||||||
REQUEST_FIXED_SIZE(xXFixesSetCursorNameReq, stuff->nbytes);
|
REQUEST_FIXED_SIZE(xXFixesSetCursorNameReq, stuff->nbytes);
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->cursor);
|
|
||||||
swaps(&stuff->nbytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_CURSOR(pCursor, stuff->cursor, client, DixSetAttrAccess);
|
VERIFY_CURSOR(pCursor, stuff->cursor, client, DixSetAttrAccess);
|
||||||
tchar = (char *) &stuff[1];
|
tchar = (char *) &stuff[1];
|
||||||
atom = MakeAtom(tchar, stuff->nbytes, TRUE);
|
atom = MakeAtom(tchar, stuff->nbytes, TRUE);
|
||||||
@@ -430,16 +422,12 @@ ProcXFixesSetCursorName(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesGetCursorName(ClientPtr client)
|
ProcXFixesGetCursorName(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesGetCursorNameReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesGetCursorNameReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(cursor);
|
||||||
|
|
||||||
CursorPtr pCursor;
|
CursorPtr pCursor;
|
||||||
const char *str;
|
const char *str;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesGetCursorNameReq);
|
|
||||||
|
|
||||||
if (client->swapped)
|
|
||||||
swapl(&stuff->cursor);
|
|
||||||
|
|
||||||
VERIFY_CURSOR(pCursor, stuff->cursor, client, DixGetAttrAccess);
|
VERIFY_CURSOR(pCursor, stuff->cursor, client, DixGetAttrAccess);
|
||||||
if (pCursor->name)
|
if (pCursor->name)
|
||||||
str = NameForAtom(pCursor->name);
|
str = NameForAtom(pCursor->name);
|
||||||
@@ -464,14 +452,14 @@ ProcXFixesGetCursorName(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesGetCursorImageAndName(ClientPtr client)
|
ProcXFixesGetCursorImageAndName(ClientPtr client)
|
||||||
{
|
{
|
||||||
/* REQUEST(xXFixesGetCursorImageAndNameReq); */
|
X_REQUEST_HEAD_STRUCT(xXFixesGetCursorImageAndNameReq);
|
||||||
|
|
||||||
CursorPtr pCursor;
|
CursorPtr pCursor;
|
||||||
int npixels;
|
int npixels;
|
||||||
const char *name;
|
const char *name;
|
||||||
int width, height;
|
int width, height;
|
||||||
int rc, x, y;
|
int rc, x, y;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesGetCursorImageAndNameReq);
|
|
||||||
pCursor = CursorForClient(client);
|
pCursor = CursorForClient(client);
|
||||||
if (!pCursor)
|
if (!pCursor)
|
||||||
return BadCursor;
|
return BadCursor;
|
||||||
@@ -634,13 +622,9 @@ ProcXFixesChangeCursor(ClientPtr client)
|
|||||||
{
|
{
|
||||||
CursorPtr pSource, pDestination;
|
CursorPtr pSource, pDestination;
|
||||||
|
|
||||||
REQUEST(xXFixesChangeCursorReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesChangeCursorReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesChangeCursorReq);
|
X_REQUEST_FIELD_CARD32(source);
|
||||||
|
X_REQUEST_FIELD_CARD32(destination);
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->source);
|
|
||||||
swapl(&stuff->destination);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_CURSOR(pSource, stuff->source, client,
|
VERIFY_CURSOR(pSource, stuff->source, client,
|
||||||
DixReadAccess | DixGetAttrAccess);
|
DixReadAccess | DixGetAttrAccess);
|
||||||
@@ -662,18 +646,15 @@ TestForCursorName(CursorPtr pCursor, void *closure)
|
|||||||
int
|
int
|
||||||
ProcXFixesChangeCursorByName(ClientPtr client)
|
ProcXFixesChangeCursorByName(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_AT_LEAST(xXFixesChangeCursorByNameReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(source);
|
||||||
|
X_REQUEST_FIELD_CARD16(nbytes);
|
||||||
|
REQUEST_FIXED_SIZE(xXFixesChangeCursorByNameReq, stuff->nbytes);
|
||||||
|
|
||||||
CursorPtr pSource;
|
CursorPtr pSource;
|
||||||
Atom name;
|
Atom name;
|
||||||
char *tchar;
|
char *tchar;
|
||||||
|
|
||||||
REQUEST(xXFixesChangeCursorByNameReq);
|
|
||||||
REQUEST_FIXED_SIZE(xXFixesChangeCursorByNameReq, stuff->nbytes);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->source);
|
|
||||||
swaps(&stuff->nbytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_CURSOR(pSource, stuff->source, client,
|
VERIFY_CURSOR(pSource, stuff->source, client,
|
||||||
DixReadAccess | DixGetAttrAccess);
|
DixReadAccess | DixGetAttrAccess);
|
||||||
tchar = (char *) &stuff[1];
|
tchar = (char *) &stuff[1];
|
||||||
@@ -779,17 +760,13 @@ deleteCursorHideCountsForScreen(ScreenPtr pScreen)
|
|||||||
int
|
int
|
||||||
ProcXFixesHideCursor(ClientPtr client)
|
ProcXFixesHideCursor(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesHideCursorReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(window);
|
||||||
|
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
CursorHideCountPtr pChc;
|
CursorHideCountPtr pChc;
|
||||||
|
|
||||||
REQUEST(xXFixesHideCursorReq);
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesHideCursorReq);
|
|
||||||
|
|
||||||
if (client->swapped)
|
|
||||||
swapl(&stuff->window);
|
|
||||||
|
|
||||||
ret = dixLookupResourceByType((void **) &pWin, stuff->window, X11_RESTYPE_WINDOW,
|
ret = dixLookupResourceByType((void **) &pWin, stuff->window, X11_RESTYPE_WINDOW,
|
||||||
client, DixGetAttrAccess);
|
client, DixGetAttrAccess);
|
||||||
if (ret != Success) {
|
if (ret != Success) {
|
||||||
@@ -834,16 +811,13 @@ ProcXFixesHideCursor(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesShowCursor(ClientPtr client)
|
ProcXFixesShowCursor(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesShowCursorReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(window);
|
||||||
|
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
CursorHideCountPtr pChc;
|
CursorHideCountPtr pChc;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
REQUEST(xXFixesShowCursorReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesShowCursorReq);
|
|
||||||
|
|
||||||
if (client->swapped)
|
|
||||||
swapl(&stuff->window);
|
|
||||||
|
|
||||||
rc = dixLookupResourceByType((void **) &pWin, stuff->window, X11_RESTYPE_WINDOW,
|
rc = dixLookupResourceByType((void **) &pWin, stuff->window, X11_RESTYPE_WINDOW,
|
||||||
client, DixGetAttrAccess);
|
client, DixGetAttrAccess);
|
||||||
if (rc != Success) {
|
if (rc != Success) {
|
||||||
@@ -922,31 +896,17 @@ CursorFreeWindow(void *data, XID id)
|
|||||||
int
|
int
|
||||||
ProcXFixesCreatePointerBarrier(ClientPtr client)
|
ProcXFixesCreatePointerBarrier(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesCreatePointerBarrierReq);
|
X_REQUEST_HEAD_AT_LEAST(xXFixesCreatePointerBarrierReq);
|
||||||
|
|
||||||
if (client->swapped) {
|
X_REQUEST_FIELD_CARD16(num_devices);
|
||||||
REQUEST_AT_LEAST_SIZE(xXFixesCreatePointerBarrierReq);
|
X_REQUEST_FIELD_CARD32(barrier);
|
||||||
|
X_REQUEST_FIELD_CARD32(window);
|
||||||
swaps(&stuff->num_devices);
|
X_REQUEST_FIELD_CARD16(x1);
|
||||||
REQUEST_FIXED_SIZE(xXFixesCreatePointerBarrierReq,
|
X_REQUEST_FIELD_CARD16(y1);
|
||||||
pad_to_int32(stuff->num_devices * sizeof(CARD16)));
|
X_REQUEST_FIELD_CARD16(x2);
|
||||||
|
X_REQUEST_FIELD_CARD16(y2);
|
||||||
swapl(&stuff->barrier);
|
X_REQUEST_FIELD_CARD32(directions);
|
||||||
swapl(&stuff->window);
|
X_REQUEST_REST_COUNT_CARD16(stuff->num_devices);
|
||||||
swaps(&stuff->x1);
|
|
||||||
swaps(&stuff->y1);
|
|
||||||
swaps(&stuff->x2);
|
|
||||||
swaps(&stuff->y2);
|
|
||||||
swapl(&stuff->directions);
|
|
||||||
|
|
||||||
CARD16 *in_devices = (CARD16 *) &stuff[1];
|
|
||||||
for (int i = 0; i < stuff->num_devices; i++) {
|
|
||||||
swaps(in_devices + i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
REQUEST_FIXED_SIZE(xXFixesCreatePointerBarrierReq,
|
|
||||||
pad_to_int32(stuff->num_devices * sizeof(CARD16)));
|
|
||||||
|
|
||||||
LEGAL_NEW_RESOURCE(stuff->barrier, client);
|
LEGAL_NEW_RESOURCE(stuff->barrier, client);
|
||||||
|
|
||||||
@@ -956,12 +916,8 @@ ProcXFixesCreatePointerBarrier(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesDestroyPointerBarrier(ClientPtr client)
|
ProcXFixesDestroyPointerBarrier(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesDestroyPointerBarrierReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesDestroyPointerBarrierReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesDestroyPointerBarrierReq);
|
X_REQUEST_FIELD_CARD32(barrier);
|
||||||
|
|
||||||
if (client->swapped)
|
|
||||||
swapl(&stuff->barrier);
|
|
||||||
|
|
||||||
return XIDestroyPointerBarrier(client, stuff);
|
return XIDestroyPointerBarrier(client, stuff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,14 +64,10 @@ typedef struct _ClientDisconnect {
|
|||||||
int
|
int
|
||||||
ProcXFixesSetClientDisconnectMode(ClientPtr client)
|
ProcXFixesSetClientDisconnectMode(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesSetClientDisconnectModeReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(disconnect_mode);
|
||||||
|
|
||||||
ClientDisconnectPtr pDisconnect = GetClientDisconnect(client);
|
ClientDisconnectPtr pDisconnect = GetClientDisconnect(client);
|
||||||
|
|
||||||
REQUEST(xXFixesSetClientDisconnectModeReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesSetClientDisconnectModeReq);
|
|
||||||
|
|
||||||
if (client->swapped)
|
|
||||||
swapl(&stuff->disconnect_mode);
|
|
||||||
|
|
||||||
pDisconnect->disconnect_mode = stuff->disconnect_mode;
|
pDisconnect->disconnect_mode = stuff->disconnect_mode;
|
||||||
|
|
||||||
return Success;
|
return Success;
|
||||||
@@ -80,9 +76,9 @@ ProcXFixesSetClientDisconnectMode(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesGetClientDisconnectMode(ClientPtr client)
|
ProcXFixesGetClientDisconnectMode(ClientPtr client)
|
||||||
{
|
{
|
||||||
ClientDisconnectPtr pDisconnect = GetClientDisconnect(client);
|
X_REQUEST_HEAD_STRUCT(xXFixesGetClientDisconnectModeReq);
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesGetClientDisconnectModeReq);
|
ClientDisconnectPtr pDisconnect = GetClientDisconnect(client);
|
||||||
|
|
||||||
xXFixesGetClientDisconnectModeReply reply = {
|
xXFixesGetClientDisconnectModeReply reply = {
|
||||||
.disconnect_mode = pDisconnect->disconnect_mode,
|
.disconnect_mode = pDisconnect->disconnect_mode,
|
||||||
|
|||||||
225
xfixes/region.c
225
xfixes/region.c
@@ -74,17 +74,13 @@ XFixesRegionInit(void)
|
|||||||
int
|
int
|
||||||
ProcXFixesCreateRegion(ClientPtr client)
|
ProcXFixesCreateRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_AT_LEAST(xXFixesCreateRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
X_REQUEST_REST_CARD16();
|
||||||
|
|
||||||
int things;
|
int things;
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
|
|
||||||
REQUEST(xXFixesCreateRegionReq);
|
|
||||||
REQUEST_AT_LEAST_SIZE(xXFixesCreateRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->region);
|
|
||||||
SwapRestS(stuff);
|
|
||||||
}
|
|
||||||
|
|
||||||
LEGAL_NEW_RESOURCE(stuff->region, client);
|
LEGAL_NEW_RESOURCE(stuff->region, client);
|
||||||
|
|
||||||
things = (client->req_len << 2) - sizeof(xXFixesCreateRegionReq);
|
things = (client->req_len << 2) - sizeof(xXFixesCreateRegionReq);
|
||||||
@@ -104,18 +100,14 @@ ProcXFixesCreateRegion(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesCreateRegionFromBitmap(ClientPtr client)
|
ProcXFixesCreateRegionFromBitmap(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesCreateRegionFromBitmapReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
X_REQUEST_FIELD_CARD32(bitmap);
|
||||||
|
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
PixmapPtr pPixmap;
|
PixmapPtr pPixmap;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
REQUEST(xXFixesCreateRegionFromBitmapReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesCreateRegionFromBitmapReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->region);
|
|
||||||
swapl(&stuff->bitmap);
|
|
||||||
}
|
|
||||||
|
|
||||||
LEGAL_NEW_RESOURCE(stuff->region, client);
|
LEGAL_NEW_RESOURCE(stuff->region, client);
|
||||||
|
|
||||||
rc = dixLookupResourceByType((void **) &pPixmap, stuff->bitmap, X11_RESTYPE_PIXMAP,
|
rc = dixLookupResourceByType((void **) &pPixmap, stuff->bitmap, X11_RESTYPE_PIXMAP,
|
||||||
@@ -141,19 +133,15 @@ ProcXFixesCreateRegionFromBitmap(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesCreateRegionFromWindow(ClientPtr client)
|
ProcXFixesCreateRegionFromWindow(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesCreateRegionFromWindowReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
X_REQUEST_FIELD_CARD32(window);
|
||||||
|
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
Bool copy = TRUE;
|
Bool copy = TRUE;
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
REQUEST(xXFixesCreateRegionFromWindowReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesCreateRegionFromWindowReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->region);
|
|
||||||
swapl(&stuff->window);
|
|
||||||
}
|
|
||||||
|
|
||||||
LEGAL_NEW_RESOURCE(stuff->region, client);
|
LEGAL_NEW_RESOURCE(stuff->region, client);
|
||||||
rc = dixLookupResourceByType((void **) &pWin, stuff->window, X11_RESTYPE_WINDOW,
|
rc = dixLookupResourceByType((void **) &pWin, stuff->window, X11_RESTYPE_WINDOW,
|
||||||
client, DixGetAttrAccess);
|
client, DixGetAttrAccess);
|
||||||
@@ -193,18 +181,14 @@ ProcXFixesCreateRegionFromWindow(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesCreateRegionFromGC(ClientPtr client)
|
ProcXFixesCreateRegionFromGC(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesCreateRegionFromGCReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
X_REQUEST_FIELD_CARD32(gc);
|
||||||
|
|
||||||
RegionPtr pRegion, pClip;
|
RegionPtr pRegion, pClip;
|
||||||
GCPtr pGC;
|
GCPtr pGC;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
REQUEST(xXFixesCreateRegionFromGCReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesCreateRegionFromGCReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->region);
|
|
||||||
swapl(&stuff->gc);
|
|
||||||
}
|
|
||||||
|
|
||||||
LEGAL_NEW_RESOURCE(stuff->region, client);
|
LEGAL_NEW_RESOURCE(stuff->region, client);
|
||||||
|
|
||||||
rc = dixLookupGC(&pGC, stuff->gc, client, DixGetAttrAccess);
|
rc = dixLookupGC(&pGC, stuff->gc, client, DixGetAttrAccess);
|
||||||
@@ -229,17 +213,13 @@ ProcXFixesCreateRegionFromGC(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesCreateRegionFromPicture(ClientPtr client)
|
ProcXFixesCreateRegionFromPicture(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesCreateRegionFromPictureReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
X_REQUEST_FIELD_CARD32(picture);
|
||||||
|
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
PicturePtr pPicture;
|
PicturePtr pPicture;
|
||||||
|
|
||||||
REQUEST(xXFixesCreateRegionFromPictureReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesCreateRegionFromPictureReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->region);
|
|
||||||
swapl(&stuff->picture);
|
|
||||||
}
|
|
||||||
|
|
||||||
LEGAL_NEW_RESOURCE(stuff->region, client);
|
LEGAL_NEW_RESOURCE(stuff->region, client);
|
||||||
|
|
||||||
VERIFY_PICTURE(pPicture, stuff->picture, client, DixGetAttrAccess);
|
VERIFY_PICTURE(pPicture, stuff->picture, client, DixGetAttrAccess);
|
||||||
@@ -264,14 +244,11 @@ ProcXFixesCreateRegionFromPicture(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesDestroyRegion(ClientPtr client)
|
ProcXFixesDestroyRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesDestroyRegionReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesDestroyRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesDestroyRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped)
|
|
||||||
swapl(&stuff->region);
|
|
||||||
|
|
||||||
VERIFY_REGION(pRegion, stuff->region, client, DixWriteAccess);
|
VERIFY_REGION(pRegion, stuff->region, client, DixWriteAccess);
|
||||||
FreeResource(stuff->region, X11_RESTYPE_NONE);
|
FreeResource(stuff->region, X11_RESTYPE_NONE);
|
||||||
return Success;
|
return Success;
|
||||||
@@ -280,17 +257,13 @@ ProcXFixesDestroyRegion(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesSetRegion(ClientPtr client)
|
ProcXFixesSetRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_AT_LEAST(xXFixesSetRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
X_REQUEST_REST_CARD16();
|
||||||
|
|
||||||
int things;
|
int things;
|
||||||
RegionPtr pRegion, pNew;
|
RegionPtr pRegion, pNew;
|
||||||
|
|
||||||
REQUEST(xXFixesSetRegionReq);
|
|
||||||
REQUEST_AT_LEAST_SIZE(xXFixesSetRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->region);
|
|
||||||
SwapRestS(stuff);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_REGION(pRegion, stuff->region, client, DixWriteAccess);
|
VERIFY_REGION(pRegion, stuff->region, client, DixWriteAccess);
|
||||||
|
|
||||||
things = (client->req_len << 2) - sizeof(xXFixesCreateRegionReq);
|
things = (client->req_len << 2) - sizeof(xXFixesCreateRegionReq);
|
||||||
@@ -312,16 +285,12 @@ ProcXFixesSetRegion(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesCopyRegion(ClientPtr client)
|
ProcXFixesCopyRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesCopyRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(source);
|
||||||
|
X_REQUEST_FIELD_CARD32(destination);
|
||||||
|
|
||||||
RegionPtr pSource, pDestination;
|
RegionPtr pSource, pDestination;
|
||||||
|
|
||||||
REQUEST(xXFixesCopyRegionReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesCopyRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->source);
|
|
||||||
swapl(&stuff->destination);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_REGION(pSource, stuff->source, client, DixReadAccess);
|
VERIFY_REGION(pSource, stuff->source, client, DixReadAccess);
|
||||||
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
||||||
|
|
||||||
@@ -334,17 +303,13 @@ ProcXFixesCopyRegion(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesCombineRegion(ClientPtr client)
|
ProcXFixesCombineRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesCombineRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(source1);
|
||||||
|
X_REQUEST_FIELD_CARD32(source2);
|
||||||
|
X_REQUEST_FIELD_CARD32(destination);
|
||||||
|
|
||||||
RegionPtr pSource1, pSource2, pDestination;
|
RegionPtr pSource1, pSource2, pDestination;
|
||||||
|
|
||||||
REQUEST(xXFixesCombineRegionReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesCombineRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->source1);
|
|
||||||
swapl(&stuff->source2);
|
|
||||||
swapl(&stuff->destination);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_REGION(pSource1, stuff->source1, client, DixReadAccess);
|
VERIFY_REGION(pSource1, stuff->source1, client, DixReadAccess);
|
||||||
VERIFY_REGION(pSource2, stuff->source2, client, DixReadAccess);
|
VERIFY_REGION(pSource2, stuff->source2, client, DixReadAccess);
|
||||||
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
||||||
@@ -370,21 +335,17 @@ ProcXFixesCombineRegion(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesInvertRegion(ClientPtr client)
|
ProcXFixesInvertRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesInvertRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(source);
|
||||||
|
X_REQUEST_FIELD_CARD16(x);
|
||||||
|
X_REQUEST_FIELD_CARD16(y);
|
||||||
|
X_REQUEST_FIELD_CARD16(width);
|
||||||
|
X_REQUEST_FIELD_CARD16(height);
|
||||||
|
X_REQUEST_FIELD_CARD32(destination);
|
||||||
|
|
||||||
RegionPtr pSource, pDestination;
|
RegionPtr pSource, pDestination;
|
||||||
BoxRec bounds;
|
BoxRec bounds;
|
||||||
|
|
||||||
REQUEST(xXFixesInvertRegionReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesInvertRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->source);
|
|
||||||
swaps(&stuff->x);
|
|
||||||
swaps(&stuff->y);
|
|
||||||
swaps(&stuff->width);
|
|
||||||
swaps(&stuff->height);
|
|
||||||
swapl(&stuff->destination);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_REGION(pSource, stuff->source, client, DixReadAccess);
|
VERIFY_REGION(pSource, stuff->source, client, DixReadAccess);
|
||||||
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
||||||
|
|
||||||
@@ -410,17 +371,13 @@ ProcXFixesInvertRegion(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesTranslateRegion(ClientPtr client)
|
ProcXFixesTranslateRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesTranslateRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
X_REQUEST_FIELD_CARD16(dx);
|
||||||
|
X_REQUEST_FIELD_CARD16(dy);
|
||||||
|
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
|
|
||||||
REQUEST(xXFixesTranslateRegionReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesTranslateRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->region);
|
|
||||||
swaps(&stuff->dx);
|
|
||||||
swaps(&stuff->dy);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_REGION(pRegion, stuff->region, client, DixWriteAccess);
|
VERIFY_REGION(pRegion, stuff->region, client, DixWriteAccess);
|
||||||
|
|
||||||
RegionTranslate(pRegion, stuff->dx, stuff->dy);
|
RegionTranslate(pRegion, stuff->dx, stuff->dy);
|
||||||
@@ -430,16 +387,12 @@ ProcXFixesTranslateRegion(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesRegionExtents(ClientPtr client)
|
ProcXFixesRegionExtents(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesRegionExtentsReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(source);
|
||||||
|
X_REQUEST_FIELD_CARD32(destination);
|
||||||
|
|
||||||
RegionPtr pSource, pDestination;
|
RegionPtr pSource, pDestination;
|
||||||
|
|
||||||
REQUEST(xXFixesRegionExtentsReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesRegionExtentsReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->source);
|
|
||||||
swapl(&stuff->destination);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_REGION(pSource, stuff->source, client, DixReadAccess);
|
VERIFY_REGION(pSource, stuff->source, client, DixReadAccess);
|
||||||
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
||||||
|
|
||||||
@@ -451,18 +404,14 @@ ProcXFixesRegionExtents(ClientPtr client)
|
|||||||
int
|
int
|
||||||
ProcXFixesFetchRegion(ClientPtr client)
|
ProcXFixesFetchRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesFetchRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
|
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
BoxPtr pExtent;
|
BoxPtr pExtent;
|
||||||
BoxPtr pBox;
|
BoxPtr pBox;
|
||||||
int i, nBox;
|
int i, nBox;
|
||||||
|
|
||||||
REQUEST(xXFixesFetchRegionReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesFetchRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->region);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_REGION(pRegion, stuff->region, client, DixReadAccess);
|
VERIFY_REGION(pRegion, stuff->region, client, DixReadAccess);
|
||||||
|
|
||||||
pExtent = RegionExtents(pRegion);
|
pExtent = RegionExtents(pRegion);
|
||||||
@@ -509,15 +458,11 @@ SingleXFixesSetGCClipRegion(ClientPtr client, xXFixesSetGCClipRegionReq *stuff);
|
|||||||
int
|
int
|
||||||
ProcXFixesSetGCClipRegion(ClientPtr client)
|
ProcXFixesSetGCClipRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesSetGCClipRegionReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesSetGCClipRegionReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesSetGCClipRegionReq);
|
X_REQUEST_FIELD_CARD32(gc);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
if (client->swapped) {
|
X_REQUEST_FIELD_CARD16(xOrigin);
|
||||||
swapl(&stuff->gc);
|
X_REQUEST_FIELD_CARD16(yOrigin);
|
||||||
swapl(&stuff->region);
|
|
||||||
swaps(&stuff->xOrigin);
|
|
||||||
swaps(&stuff->yOrigin);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
if (XFixesUseXinerama)
|
if (XFixesUseXinerama)
|
||||||
@@ -636,15 +581,11 @@ PanoramiXFixesSetWindowShapeRegion(ClientPtr client, xXFixesSetWindowShapeRegion
|
|||||||
int
|
int
|
||||||
ProcXFixesSetWindowShapeRegion(ClientPtr client)
|
ProcXFixesSetWindowShapeRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesSetWindowShapeRegionReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesSetWindowShapeRegionReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesSetWindowShapeRegionReq);
|
X_REQUEST_FIELD_CARD32(dest);
|
||||||
|
X_REQUEST_FIELD_CARD16(xOff);
|
||||||
if (client->swapped) {
|
X_REQUEST_FIELD_CARD16(yOff);
|
||||||
swapl(&stuff->dest);
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
swaps(&stuff->xOff);
|
|
||||||
swaps(&stuff->yOff);
|
|
||||||
swapl(&stuff->region);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
if (XFixesUseXinerama)
|
if (XFixesUseXinerama)
|
||||||
@@ -664,15 +605,11 @@ PanoramiXFixesSetPictureClipRegion(ClientPtr client, xXFixesSetPictureClipRegion
|
|||||||
int
|
int
|
||||||
ProcXFixesSetPictureClipRegion(ClientPtr client)
|
ProcXFixesSetPictureClipRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesSetPictureClipRegionReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesSetPictureClipRegionReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesSetPictureClipRegionReq);
|
X_REQUEST_FIELD_CARD32(picture);
|
||||||
|
X_REQUEST_FIELD_CARD32(region);
|
||||||
if (client->swapped) {
|
X_REQUEST_FIELD_CARD16(xOrigin);
|
||||||
swapl(&stuff->picture);
|
X_REQUEST_FIELD_CARD16(yOrigin);
|
||||||
swapl(&stuff->region);
|
|
||||||
swaps(&stuff->xOrigin);
|
|
||||||
swaps(&stuff->yOrigin);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
if (XFixesUseXinerama)
|
if (XFixesUseXinerama)
|
||||||
@@ -700,25 +637,21 @@ SingleXFixesSetPictureClipRegion(ClientPtr client, xXFixesSetPictureClipRegionRe
|
|||||||
int
|
int
|
||||||
ProcXFixesExpandRegion(ClientPtr client)
|
ProcXFixesExpandRegion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesExpandRegionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(source);
|
||||||
|
X_REQUEST_FIELD_CARD32(destination);
|
||||||
|
X_REQUEST_FIELD_CARD16(left);
|
||||||
|
X_REQUEST_FIELD_CARD16(right);
|
||||||
|
X_REQUEST_FIELD_CARD16(top);
|
||||||
|
X_REQUEST_FIELD_CARD16(bottom);
|
||||||
|
|
||||||
RegionPtr pSource, pDestination;
|
RegionPtr pSource, pDestination;
|
||||||
|
|
||||||
REQUEST(xXFixesExpandRegionReq);
|
|
||||||
BoxPtr pTmp;
|
BoxPtr pTmp;
|
||||||
BoxPtr pSrc;
|
BoxPtr pSrc;
|
||||||
int nBoxes;
|
int nBoxes;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesExpandRegionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->source);
|
|
||||||
swapl(&stuff->destination);
|
|
||||||
swaps(&stuff->left);
|
|
||||||
swaps(&stuff->right);
|
|
||||||
swaps(&stuff->top);
|
|
||||||
swaps(&stuff->bottom);
|
|
||||||
}
|
|
||||||
|
|
||||||
VERIFY_REGION(pSource, stuff->source, client, DixReadAccess);
|
VERIFY_REGION(pSource, stuff->source, client, DixReadAccess);
|
||||||
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
VERIFY_REGION(pDestination, stuff->destination, client, DixWriteAccess);
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dix/request_priv.h"
|
||||||
#include "dix/resource_priv.h"
|
#include "dix/resource_priv.h"
|
||||||
|
|
||||||
#include "xfixesint.h"
|
#include "xfixesint.h"
|
||||||
@@ -30,16 +31,13 @@
|
|||||||
int
|
int
|
||||||
ProcXFixesChangeSaveSet(ClientPtr client)
|
ProcXFixesChangeSaveSet(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesChangeSaveSetReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(window);
|
||||||
|
|
||||||
Bool toRoot, map;
|
Bool toRoot, map;
|
||||||
int result;
|
int result;
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
|
|
||||||
REQUEST(xXFixesChangeSaveSetReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesChangeSaveSetReq);
|
|
||||||
|
|
||||||
if (client->swapped)
|
|
||||||
swapl(&stuff->window);
|
|
||||||
|
|
||||||
result = dixLookupWindow(&pWin, stuff->window, client, DixManageAccess);
|
result = dixLookupWindow(&pWin, stuff->window, client, DixManageAccess);
|
||||||
if (result != Success)
|
if (result != Success)
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dix/request_priv.h"
|
||||||
#include "dix/selection_priv.h"
|
#include "dix/selection_priv.h"
|
||||||
|
|
||||||
#include "xfixesint.h"
|
#include "xfixesint.h"
|
||||||
@@ -132,14 +133,10 @@ CheckSelectionCallback(void)
|
|||||||
int
|
int
|
||||||
ProcXFixesSelectSelectionInput(ClientPtr client)
|
ProcXFixesSelectSelectionInput(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesSelectSelectionInputReq);
|
X_REQUEST_HEAD_STRUCT(xXFixesSelectSelectionInputReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesSelectSelectionInputReq);
|
X_REQUEST_FIELD_CARD32(window);
|
||||||
|
X_REQUEST_FIELD_CARD32(selection);
|
||||||
if (client->swapped) {
|
X_REQUEST_FIELD_CARD32(eventMask);
|
||||||
swapl(&stuff->window);
|
|
||||||
swapl(&stuff->selection);
|
|
||||||
swapl(&stuff->eventMask);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* allow extensions to intercept */
|
/* allow extensions to intercept */
|
||||||
SelectionFilterParamRec param = {
|
SelectionFilterParamRec param = {
|
||||||
|
|||||||
@@ -65,17 +65,12 @@ static DevPrivateKeyRec XFixesClientPrivateKeyRec;
|
|||||||
static int
|
static int
|
||||||
ProcXFixesQueryVersion(ClientPtr client)
|
ProcXFixesQueryVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
X_REQUEST_HEAD_STRUCT(xXFixesQueryVersionReq);
|
||||||
|
X_REQUEST_FIELD_CARD32(majorVersion);
|
||||||
|
X_REQUEST_FIELD_CARD32(minorVersion);
|
||||||
|
|
||||||
int major, minor;
|
int major, minor;
|
||||||
XFixesClientPtr pXFixesClient = GetXFixesClient(client);
|
XFixesClientPtr pXFixesClient = GetXFixesClient(client);
|
||||||
|
|
||||||
REQUEST(xXFixesQueryVersionReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXFixesQueryVersionReq);
|
|
||||||
|
|
||||||
if (client->swapped) {
|
|
||||||
swapl(&stuff->majorVersion);
|
|
||||||
swapl(&stuff->minorVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (version_compare(stuff->majorVersion, stuff->minorVersion,
|
if (version_compare(stuff->majorVersion, stuff->minorVersion,
|
||||||
SERVER_XFIXES_MAJOR_VERSION,
|
SERVER_XFIXES_MAJOR_VERSION,
|
||||||
SERVER_XFIXES_MINOR_VERSION) < 0) {
|
SERVER_XFIXES_MINOR_VERSION) < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user