Xext: xvmc: 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:
Enrico Weigelt, metux IT consult
2024-07-12 17:29:24 +02:00
parent feed6459bd
commit a2dbf4a53c

View File

@@ -110,10 +110,8 @@ ProcXvMCQueryVersion(ClientPtr client)
.minor = SERVER_XVMC_MINOR_VERSION
};
if (client->swapped) {
swapl(&reply.major);
swapl(&reply.minor);
}
REPLY_FIELD_CARD32(major);
REPLY_FIELD_CARD32(minor);
return X_SEND_REPLY_SIMPLE(client, reply);
}