Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
a9bdfd21
You need to sign in or sign up before continuing.
Commit
a9bdfd21
authored
May 01, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXshm.c: use upstream versions of Dispatch functions
instead of having an own (identical) copy
parent
e755e660
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
92 deletions
+14
-92
shm.c
nx-X11/programs/Xserver/Xext/shm.c
+8
-4
NXshm.c
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
+6
-88
No files found.
nx-X11/programs/Xserver/Xext/shm.c
View file @
a9bdfd21
...
...
@@ -1138,9 +1138,12 @@ CreatePmap:
return
(
BadAlloc
);
}
#ifndef NXAGENT_SERVER
static
int
#ifdef NXAGENT_SERVER
xorg_ProcShmDispatch
(
client
)
#else
ProcShmDispatch
(
client
)
#endif
register
ClientPtr
client
;
{
REQUEST
(
xReq
);
...
...
@@ -1174,7 +1177,6 @@ ProcShmDispatch (client)
return
BadRequest
;
}
}
#endif
/* NXAGENT_SERVER */
static
void
SShmCompletionEvent
(
from
,
to
)
...
...
@@ -1278,9 +1280,12 @@ SProcShmCreatePixmap(client)
return
ProcShmCreatePixmap
(
client
);
}
#ifndef NXAGENT_SERVER
static
int
#ifdef NXAGENT_SERVER
xorg_SProcShmDispatch
(
client
)
#else
SProcShmDispatch
(
client
)
#endif
register
ClientPtr
client
;
{
REQUEST
(
xReq
);
...
...
@@ -1302,4 +1307,3 @@ SProcShmDispatch (client)
return
BadRequest
;
}
}
#endif
/* NXAGENT_SERVER */
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
View file @
a9bdfd21
...
...
@@ -486,70 +486,6 @@ fbShmCreatePixmap (pScreen, width, height, depth, addr)
return
result
;
}
static
int
nxagent_ProcShmDispatch
(
client
)
register
ClientPtr
client
;
{
REQUEST
(
xReq
);
switch
(
stuff
->
data
)
{
case
X_ShmQueryVersion
:
return
ProcShmQueryVersion
(
client
);
case
X_ShmAttach
:
return
ProcShmAttach
(
client
);
case
X_ShmDetach
:
return
ProcShmDetach
(
client
);
case
X_ShmPutImage
:
{
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
ProcPanoramiXShmPutImage
(
client
);
#endif
return
ProcShmPutImage
(
client
);
}
case
X_ShmGetImage
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
ProcPanoramiXShmGetImage
(
client
);
#endif
return
ProcShmGetImage
(
client
);
case
X_ShmCreatePixmap
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
ProcPanoramiXShmCreatePixmap
(
client
);
#endif
return
ProcShmCreatePixmap
(
client
);
default
:
return
BadRequest
;
}
}
static
int
nxagent_SProcShmDispatch
(
client
)
register
ClientPtr
client
;
{
REQUEST
(
xReq
);
switch
(
stuff
->
data
)
{
case
X_ShmQueryVersion
:
return
SProcShmQueryVersion
(
client
);
case
X_ShmAttach
:
return
SProcShmAttach
(
client
);
case
X_ShmDetach
:
return
SProcShmDetach
(
client
);
case
X_ShmPutImage
:
return
SProcShmPutImage
(
client
);
case
X_ShmGetImage
:
return
SProcShmGetImage
(
client
);
case
X_ShmCreatePixmap
:
return
SProcShmCreatePixmap
(
client
);
default
:
return
BadRequest
;
}
}
/* A wrapper that handles the trap. This construct is used
to keep the derived code closer to the original
*/
...
...
@@ -560,25 +496,16 @@ ProcShmDispatch (register ClientPtr client)
#ifdef TEST
REQUEST
(
xReq
);
fprintf
(
stderr
,
"ProcShmDispatch: Going to execute operation [%d] for client [%d].
\n
"
,
stuff
->
data
,
client
->
index
);
if
(
stuff
->
data
<=
X_ShmCreatePixmap
)
{
fprintf
(
stderr
,
"ProcShmDispatch: Request [%s] OPCODE#%d.
\n
"
,
nxagentShmRequestLiteral
[
stuff
->
data
],
stuff
->
data
);
}
if
(
stuff
->
data
==
X_ShmPutImage
)
{
fprintf
(
stderr
,
"ProcShmDispatch: Going to execute ProcShmPutImage() for client [%d].
\n
"
,
client
->
index
);
fprintf
(
stderr
,
"ProcShmDispatch: Request [%s] OPCODE [%d] for client [%d].
\n
"
,
nxagentShmRequestLiteral
[
stuff
->
data
],
stuff
->
data
,
client
->
index
);
}
#endif
nxagentShmTrap
=
1
;
result
=
nxagent
_ProcShmDispatch
(
client
);
result
=
xorg
_ProcShmDispatch
(
client
);
nxagentShmTrap
=
0
;
...
...
@@ -592,25 +519,16 @@ SProcShmDispatch (register ClientPtr client)
#ifdef TEST
REQUEST
(
xReq
);
fprintf
(
stderr
,
"SProcShmDispatch: Going to execute operation [%d] for client [%d].
\n
"
,
stuff
->
data
,
client
->
index
);
if
(
stuff
->
data
<=
X_ShmCreatePixmap
)
{
fprintf
(
stderr
,
"ProcShmDispatch: Request [%s] OPCODE#%d.
\n
"
,
nxagentShmRequestLiteral
[
stuff
->
data
],
stuff
->
data
);
}
if
(
stuff
->
data
==
X_ProxShmPutImage
)
{
fprintf
(
stderr
,
"SProcShmDispatch: Going to execute SProcShmPutImage() for client [%d].
\n
"
,
client
->
index
);
fprintf
(
stderr
,
"SProcShmDispatch: Request [%s] OPCODE [%d] for client [%d].
\n
"
,
nxagentShmRequestLiteral
[
stuff
->
data
],
stuff
->
data
,
client
->
index
);
}
#endif
nxagentShmTrap
=
1
;
result
=
nxagent
_SProcShmDispatch
(
client
);
result
=
xorg
_SProcShmDispatch
(
client
);
nxagentShmTrap
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment