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
8e9e7766
Commit
8e9e7766
authored
May 05, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXextension.c: use ProcQueryExtension() from dix
parent
d6872d4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
41 deletions
+1
-41
extension.c
nx-X11/programs/Xserver/dix/extension.c
+1
-1
NXextension.c
nx-X11/programs/Xserver/hw/nxagent/NXextension.c
+0
-40
No files found.
nx-X11/programs/Xserver/dix/extension.c
View file @
8e9e7766
...
...
@@ -332,7 +332,6 @@ CloseDownExtensions()
}
}
#ifndef NXAGENT_SERVER
int
ProcQueryExtension
(
ClientPtr
client
)
{
...
...
@@ -373,6 +372,7 @@ ProcQueryExtension(ClientPtr client)
return
(
client
->
noClientException
);
}
#ifndef NXAGENT_SERVER
int
ProcListExtensions
(
ClientPtr
client
)
{
...
...
nx-X11/programs/Xserver/hw/nxagent/NXextension.c
View file @
8e9e7766
...
...
@@ -75,46 +75,6 @@ SOFTWARE.
#include "../../dix/extension.c"
int
ProcQueryExtension
(
ClientPtr
client
)
{
xQueryExtensionReply
reply
;
int
i
;
REQUEST
(
xQueryExtensionReq
);
REQUEST_FIXED_SIZE
(
xQueryExtensionReq
,
stuff
->
nbytes
);
memset
(
&
reply
,
0
,
sizeof
(
xQueryExtensionReply
));
reply
.
type
=
X_Reply
;
reply
.
length
=
0
;
reply
.
major_opcode
=
0
;
reply
.
sequenceNumber
=
client
->
sequence
;
if
(
!
NumExtensions
)
reply
.
present
=
xFalse
;
else
{
i
=
FindExtension
((
char
*
)
&
stuff
[
1
],
stuff
->
nbytes
);
if
(
i
<
0
#ifdef XCSECURITY
/* don't show insecure extensions to untrusted clients */
||
(
client
->
trustLevel
==
XSecurityClientUntrusted
&&
!
extensions
[
i
]
->
secure
)
#endif
)
reply
.
present
=
xFalse
;
else
{
reply
.
present
=
xTrue
;
reply
.
major_opcode
=
extensions
[
i
]
->
base
;
reply
.
first_event
=
extensions
[
i
]
->
eventBase
;
reply
.
first_error
=
extensions
[
i
]
->
errorBase
;
}
}
WriteReplyToClient
(
client
,
sizeof
(
xQueryExtensionReply
),
&
reply
);
return
(
client
->
noClientException
);
}
int
ProcListExtensions
(
ClientPtr
client
)
{
xListExtensionsReply
reply
;
...
...
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