mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
Xvmc: inline SProcXvMCDispatch()
No need for an extra function for a one-liner. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
3bec112cf1
commit
8a5ac961ca
12
Xext/xvmc.c
12
Xext/xvmc.c
@ -680,6 +680,9 @@ ProcXvMCGetDRInfo(ClientPtr client)
|
||||
static int
|
||||
ProcXvMCDispatch(ClientPtr client)
|
||||
{
|
||||
if (!(client->local))
|
||||
return BadImplementation;
|
||||
|
||||
REQUEST(xReq);
|
||||
switch (stuff->data)
|
||||
{
|
||||
@ -708,13 +711,6 @@ ProcXvMCDispatch(ClientPtr client)
|
||||
}
|
||||
}
|
||||
|
||||
static int _X_COLD
|
||||
SProcXvMCDispatch(ClientPtr client)
|
||||
{
|
||||
/* We only support local */
|
||||
return BadImplementation;
|
||||
}
|
||||
|
||||
void
|
||||
XvMCExtensionInit(void)
|
||||
{
|
||||
@ -736,7 +732,7 @@ XvMCExtensionInit(void)
|
||||
return;
|
||||
|
||||
extEntry = AddExtension(XvMCName, XvMCNumEvents, XvMCNumErrors,
|
||||
ProcXvMCDispatch, SProcXvMCDispatch,
|
||||
ProcXvMCDispatch, ProcXvMCDispatch,
|
||||
NULL, StandardMinorOpcode);
|
||||
|
||||
if (!extEntry)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user