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
c6f86b3b
Commit
c6f86b3b
authored
Apr 11, 2016
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hw/nxagent/NXshm.c: Shrink file, drop duplicate code that can identically be found in Xext/shm.c.
parent
51e4ed0f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
Imakefile
nx-X11/programs/Xserver/Xext/Imakefile
+1
-1
shm.c
nx-X11/programs/Xserver/Xext/shm.c
+13
-1
NXshm.c
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
+0
-0
No files found.
nx-X11/programs/Xserver/Xext/Imakefile
View file @
c6f86b3b
...
...
@@ -30,7 +30,7 @@ XCOMM $XFree86: xc/programs/Xserver/Xext/Imakefile,v 3.43 2003/04/21 18:56:48 sv
SUBDIRS = extmod
#endif
#if HasShm
#if HasShm
&& (!(defined(NXAgentServer) && NXAgentServer))
SHMSRCS = shm.c
SHMOBJS = shm.o
#endif
...
...
nx-X11/programs/Xserver/Xext/shm.c
View file @
c6f86b3b
...
...
@@ -202,6 +202,7 @@ static Bool CheckForShmSyscall()
#endif
#ifndef NXAGENT_SERVER
void
ShmExtensionInit
(
INITARGS
)
{
...
...
@@ -265,6 +266,7 @@ ShmExtensionInit(INITARGS)
EventSwapVector
[
ShmCompletionCode
]
=
(
EventSwapPtr
)
SShmCompletionEvent
;
}
}
#endif
/* NXAGENT_SERVER */
/*ARGSUSED*/
static
void
...
...
@@ -502,6 +504,7 @@ ProcShmDetach(client)
return
(
client
->
noClientException
);
}
#ifndef NXAGENT_SERVER
static
void
miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
DrawablePtr
dst
;
...
...
@@ -563,6 +566,7 @@ fbShmPutImage(dst, pGC, depth, format, w, h, sx, sy, sw, sh, dx, dy, data)
miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
);
}
#endif
/* NXAGENT_SERVER */
#ifdef PANORAMIX
...
...
@@ -824,6 +828,7 @@ CreatePmap:
#endif
#ifndef NXAGENT_SERVER
static
int
ProcShmPutImage
(
client
)
register
ClientPtr
client
;
...
...
@@ -934,7 +939,7 @@ ProcShmPutImage(client)
return
(
client
->
noClientException
);
}
#endif
/* NXAGENT_SERVER */
static
int
...
...
@@ -1047,6 +1052,7 @@ ProcShmGetImage(client)
return
(
client
->
noClientException
);
}
#ifndef NXAGENT_SERVER
static
PixmapPtr
fbShmCreatePixmap
(
pScreen
,
width
,
height
,
depth
,
addr
)
ScreenPtr
pScreen
;
...
...
@@ -1068,6 +1074,7 @@ fbShmCreatePixmap (pScreen, width, height, depth, addr)
}
return
pPixmap
;
}
#endif
/* NXAGENT_SERVER */
static
int
ProcShmCreatePixmap
(
client
)
...
...
@@ -1142,6 +1149,7 @@ CreatePmap:
return
(
BadAlloc
);
}
#ifndef NXAGENT_SERVER
static
int
ProcShmDispatch
(
client
)
register
ClientPtr
client
;
...
...
@@ -1177,6 +1185,7 @@ ProcShmDispatch (client)
return
BadRequest
;
}
}
#endif
/* NXAGENT_SERVER */
static
void
SShmCompletionEvent
(
from
,
to
)
...
...
@@ -1286,6 +1295,7 @@ SProcShmCreatePixmap(client)
return
ProcShmCreatePixmap
(
client
);
}
#ifndef NXAGENT_SERVER
static
int
SProcShmDispatch
(
client
)
register
ClientPtr
client
;
...
...
@@ -1309,3 +1319,4 @@ SProcShmDispatch (client)
return
BadRequest
;
}
}
#endif
/* NXAGENT_SERVER */
\ No newline at end of file
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
View file @
c6f86b3b
This diff is collapsed.
Click to expand it.
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