Commit c6f86b3b authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/NXshm.c: Shrink file, drop duplicate code that can identically be found in Xext/shm.c.

parent 51e4ed0f
...@@ -30,7 +30,7 @@ XCOMM $XFree86: xc/programs/Xserver/Xext/Imakefile,v 3.43 2003/04/21 18:56:48 sv ...@@ -30,7 +30,7 @@ XCOMM $XFree86: xc/programs/Xserver/Xext/Imakefile,v 3.43 2003/04/21 18:56:48 sv
SUBDIRS = extmod SUBDIRS = extmod
#endif #endif
#if HasShm #if HasShm && (!(defined(NXAgentServer) && NXAgentServer))
SHMSRCS = shm.c SHMSRCS = shm.c
SHMOBJS = shm.o SHMOBJS = shm.o
#endif #endif
......
...@@ -202,6 +202,7 @@ static Bool CheckForShmSyscall() ...@@ -202,6 +202,7 @@ static Bool CheckForShmSyscall()
#endif #endif
#ifndef NXAGENT_SERVER
void void
ShmExtensionInit(INITARGS) ShmExtensionInit(INITARGS)
{ {
...@@ -265,6 +266,7 @@ ShmExtensionInit(INITARGS) ...@@ -265,6 +266,7 @@ ShmExtensionInit(INITARGS)
EventSwapVector[ShmCompletionCode] = (EventSwapPtr) SShmCompletionEvent; EventSwapVector[ShmCompletionCode] = (EventSwapPtr) SShmCompletionEvent;
} }
} }
#endif /* NXAGENT_SERVER */
/*ARGSUSED*/ /*ARGSUSED*/
static void static void
...@@ -502,6 +504,7 @@ ProcShmDetach(client) ...@@ -502,6 +504,7 @@ ProcShmDetach(client)
return(client->noClientException); return(client->noClientException);
} }
#ifndef NXAGENT_SERVER
static void static void
miShmPutImage(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)
DrawablePtr dst; DrawablePtr dst;
...@@ -563,6 +566,7 @@ fbShmPutImage(dst, pGC, depth, format, w, h, sx, sy, sw, sh, dx, dy, data) ...@@ -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, miShmPutImage(dst, pGC, depth, format, w, h, sx, sy, sw, sh, dx, dy,
data); data);
} }
#endif /* NXAGENT_SERVER */
#ifdef PANORAMIX #ifdef PANORAMIX
...@@ -824,6 +828,7 @@ CreatePmap: ...@@ -824,6 +828,7 @@ CreatePmap:
#endif #endif
#ifndef NXAGENT_SERVER
static int static int
ProcShmPutImage(client) ProcShmPutImage(client)
register ClientPtr client; register ClientPtr client;
...@@ -934,7 +939,7 @@ ProcShmPutImage(client) ...@@ -934,7 +939,7 @@ ProcShmPutImage(client)
return (client->noClientException); return (client->noClientException);
} }
#endif /* NXAGENT_SERVER */
static int static int
...@@ -1047,6 +1052,7 @@ ProcShmGetImage(client) ...@@ -1047,6 +1052,7 @@ ProcShmGetImage(client)
return(client->noClientException); return(client->noClientException);
} }
#ifndef NXAGENT_SERVER
static PixmapPtr static PixmapPtr
fbShmCreatePixmap (pScreen, width, height, depth, addr) fbShmCreatePixmap (pScreen, width, height, depth, addr)
ScreenPtr pScreen; ScreenPtr pScreen;
...@@ -1068,6 +1074,7 @@ fbShmCreatePixmap (pScreen, width, height, depth, addr) ...@@ -1068,6 +1074,7 @@ fbShmCreatePixmap (pScreen, width, height, depth, addr)
} }
return pPixmap; return pPixmap;
} }
#endif /* NXAGENT_SERVER */
static int static int
ProcShmCreatePixmap(client) ProcShmCreatePixmap(client)
...@@ -1142,6 +1149,7 @@ CreatePmap: ...@@ -1142,6 +1149,7 @@ CreatePmap:
return (BadAlloc); return (BadAlloc);
} }
#ifndef NXAGENT_SERVER
static int static int
ProcShmDispatch (client) ProcShmDispatch (client)
register ClientPtr client; register ClientPtr client;
...@@ -1177,6 +1185,7 @@ ProcShmDispatch (client) ...@@ -1177,6 +1185,7 @@ ProcShmDispatch (client)
return BadRequest; return BadRequest;
} }
} }
#endif /* NXAGENT_SERVER */
static void static void
SShmCompletionEvent(from, to) SShmCompletionEvent(from, to)
...@@ -1286,6 +1295,7 @@ SProcShmCreatePixmap(client) ...@@ -1286,6 +1295,7 @@ SProcShmCreatePixmap(client)
return ProcShmCreatePixmap(client); return ProcShmCreatePixmap(client);
} }
#ifndef NXAGENT_SERVER
static int static int
SProcShmDispatch (client) SProcShmDispatch (client)
register ClientPtr client; register ClientPtr client;
...@@ -1309,3 +1319,4 @@ SProcShmDispatch (client) ...@@ -1309,3 +1319,4 @@ SProcShmDispatch (client)
return BadRequest; return BadRequest;
} }
} }
#endif /* NXAGENT_SERVER */
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment