Skip to content

Commit

Permalink
Merge branch 'master' into XACE-SELINUX
Browse files Browse the repository at this point in the history
Conflicts:

	Xext/EVI.c
	Xext/bigreq.c
	Xext/cup.c
	Xext/dpms.c
	Xext/fontcache.c
	Xext/mitmisc.c
	Xext/xcmisc.c
	Xext/xf86bigfont.c
	Xext/xtest.c
	configure.ac
	dbe/dbe.c
	hw/darwin/darwin.h
	hw/darwin/darwinEvents.c
	hw/darwin/iokit/xfIOKit.h
	hw/darwin/iokit/xfIOKitCursor.c
	hw/darwin/quartz/fullscreen/fullscreen.c
	hw/darwin/quartz/fullscreen/quartzCursor.c
	hw/darwin/quartz/quartz.c
	hw/darwin/quartz/quartzCommon.h
	hw/darwin/quartz/quartzCursor.c
	hw/darwin/quartz/xpr/dri.c
	hw/darwin/quartz/xpr/dristruct.h
	hw/darwin/quartz/xpr/xprCursor.c
	hw/darwin/quartz/xpr/xprFrame.c
	hw/xfree86/modes/xf86RandR12.c
	include/cursor.h
	miext/rootless/rootlessCommon.h
	miext/rootless/rootlessScreen.c
	miext/rootless/rootlessWindow.c
	render/picturestr.h

Trying to pick up the pieces from the darwin churn here...
  • Loading branch information
Eamon Walsh authored and Eamon Walsh committed Dec 13, 2007
2 parents 9a7ce57 + a125ce4 commit c8feb73
Show file tree
Hide file tree
Showing 278 changed files with 2,533 additions and 23,055 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Makefile.in
*.o
*~
.*.swp
*.pbxuser
*.mode1v3
obj*
build*
aclocal.m4
Expand Down Expand Up @@ -271,6 +273,7 @@ hw/xprint/doc/Xprt.1x
hw/xprint/doc/Xprt.man
hw/xprint/dpmsstubs-wrapper.c
hw/xprint/miinitext-wrapper.c
hw/xquartz/bundle/org.x.X11.plist
include/dix-config.h
include/kdrive-config.h
include/xgl-config.h
Expand Down
8 changes: 5 additions & 3 deletions GL/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
if XDARWIN
DARWIN_SUBDIRS = apple
if XQUARTZ
XQUARTZ_SUBDIRS = apple
endif
SUBDIRS = glx mesa $(DARWIN_SUBDIRS)

SUBDIRS = glx mesa $(XQUARTZ_SUBDIRS)
DIST_SUBDIRS = glx mesa apple

WINDOWS_EXTRAS = \
windows/ChangeLog \
Expand Down
19 changes: 14 additions & 5 deletions GL/apple/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
AM_CFLAGS = -I$(top_srcdir) \
-I$(top_srcdir)/hw/darwin/quartz \
-I$(top_srcdir)/GL/glx \
-I$(top_srcdir)/hw/darwin/quartz/cr \
-I$(top_srcdir)/GL/include
AM_CFLAGS = $(DIX_CFLAGS)
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/GL/glx \
-I$(top_srcdir)/GL/include \
-I$(top_srcdir)/GL/mesa/glapi \
-I$(top_srcdir)/hw/xquartz \
-I$(top_srcdir)/hw/xquartz/xpr \
-I$(top_srcdir)/miext/damage

if HAVE_AGL_FRAMEWORK
noinst_LIBRARIES = libAGLcore.a
Expand All @@ -13,3 +17,8 @@ libAGLcore_a_SOURCES = aglGlx.c \
$(top_srcdir)/hw/darwin/quartz/xpr/x-hash.h \
$(top_srcdir)/hw/dmx/glxProxy/compsize.c
endif

#noinst_LIBRARIES = libCGLcore.a
#libCGLcore_a_SOURCES = \
# indirect.c \
# $(top_srcdir)/hw/dmx/glxProxy/compsize.c
2 changes: 1 addition & 1 deletion GL/glx/glxscreens.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static char GLXServerExtensions[] =
"GLX_EXT_texture_from_pixmap "
"GLX_OML_swap_method "
"GLX_SGI_make_current_read "
#ifndef __DARWIN__
#ifndef __APPLE__
"GLX_SGIS_multisample "
"GLX_SGIX_hyperpipe "
"GLX_SGIX_swap_barrier "
Expand Down
14 changes: 5 additions & 9 deletions Xext/EVI.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,9 @@ EVIResetProc(ExtensionEntry *extEntry)
void
EVIExtensionInit(INITARGS)
{
ExtensionEntry *extEntry;

if (!(extEntry = AddExtension(EVINAME, 0, 0,
ProcEVIDispatch,
SProcEVIDispatch,
EVIResetProc, StandardMinorOpcode)))
return;

eviPriv = eviDDXInit();
if (AddExtension(EVINAME, 0, 0,
ProcEVIDispatch, SProcEVIDispatch,
EVIResetProc, StandardMinorOpcode)) {
eviPriv = eviDDXInit();
}
}
17 changes: 7 additions & 10 deletions Xext/cup.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,13 @@ static xColorItem citems[] = {
void
XcupExtensionInit (INITARGS)
{
ExtensionEntry* extEntry;

if (!(extEntry = AddExtension (XCUPNAME,
0,
XcupNumberErrors,
ProcDispatch,
SProcDispatch,
ResetProc,
StandardMinorOpcode)))
return;
(void) AddExtension (XCUPNAME,
0,
XcupNumberErrors,
ProcDispatch,
SProcDispatch,
ResetProc,
StandardMinorOpcode);

/* PC servers initialize the desktop colors (citems) here! */
}
Expand Down
15 changes: 12 additions & 3 deletions Xext/fontcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,18 @@ static DISPATCH_PROC(SProcFontCacheChangeCacheSettings);
void
FontCacheExtensionInit(INITARGS)
{
AddExtension(FONTCACHENAME, FontCacheNumberEvents, FontCacheNumberErrors,
ProcFontCacheDispatch, SProcFontCacheDispatch,
FontCacheResetProc, StandardMinorOpcode);
ExtensionEntry* extEntry;

if (
(extEntry = AddExtension(FONTCACHENAME,
FontCacheNumberEvents,
FontCacheNumberErrors,
ProcFontCacheDispatch,
SProcFontCacheDispatch,
FontCacheResetProc,
StandardMinorOpcode))) {
miscErrorBase = extEntry->errorBase;
}
}

/*ARGSUSED*/
Expand Down
6 changes: 0 additions & 6 deletions Xext/mbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ in this Software without prior written authorization from The Open Group.

#define ValidEventMasks (ExposureMask|MultibufferClobberNotifyMask|MultibufferUpdateNotifyMask)

#if 0
static unsigned char MultibufferReqCode;
#endif
static int MultibufferEventBase;
static int MultibufferErrorBase;
int MultibufferScreenIndex = -1;
Expand Down Expand Up @@ -247,9 +244,6 @@ MultibufferExtensionInit()
ProcMultibufferDispatch, SProcMultibufferDispatch,
MultibufferResetProc, StandardMinorOpcode)))
{
#if 0
MultibufferReqCode = (unsigned char)extEntry->base;
#endif
MultibufferEventBase = extEntry->eventBase;
MultibufferErrorBase = extEntry->errorBase;
EventSwapVector[MultibufferEventBase + MultibufferClobberNotify] = (EventSwapPtr) SClobberNotifyEvent;
Expand Down
7 changes: 0 additions & 7 deletions Xext/panoramiX.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ extern VisualPtr glxMatchVisual(ScreenPtr pScreen,
ScreenPtr pMatchScreen);
#endif

#if 0
static unsigned char PanoramiXReqCode = 0;
#endif
/*
* PanoramiX data declarations
*/
Expand Down Expand Up @@ -471,10 +468,6 @@ void PanoramiXExtensionInit(int argc, char *argv[])
break;
}

#if 0
PanoramiXReqCode = (unsigned char)extEntry->base;
#endif

/*
* First make sure all the basic allocations succeed. If not,
* run in non-PanoramiXeen mode.
Expand Down
8 changes: 4 additions & 4 deletions Xext/panoramiXSwap.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ Equipment Corporation.
#include "window.h"
#include "windowstr.h"
#include "pixmapstr.h"
#if 0
#include <sys/workstation.h>
#include <X11/Xserver/ws.h>
#endif
#include "panoramiX.h"
#include <X11/extensions/panoramiXproto.h>
#include "panoramiXsrv.h"
Expand All @@ -70,6 +66,7 @@ SProcPanoramiXGetState(ClientPtr client)

swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
swapl (&stuff->window, n);
return ProcPanoramiXGetState(client);
}

Expand All @@ -81,6 +78,7 @@ SProcPanoramiXGetScreenCount(ClientPtr client)

swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
swapl (&stuff->window, n);
return ProcPanoramiXGetScreenCount(client);
}

Expand All @@ -92,6 +90,8 @@ SProcPanoramiXGetScreenSize(ClientPtr client)

swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
swapl (&stuff->window, n);
swapl (&stuff->screen, n);
return ProcPanoramiXGetScreenSize(client);
}

Expand Down
10 changes: 0 additions & 10 deletions Xext/panoramiXprocs.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,6 @@ Equipment Corporation.
#define INPUTONLY_LEGAL_MASK (CWWinGravity | CWEventMask | \
CWDontPropagate | CWOverrideRedirect | CWCursor )

#if 0
extern void (* EventSwapVector[128]) (fsError *, fsError *);

extern void Swap32Write();
extern void SLHostsExtend();
extern void SQColorsExtend();
WriteSConnectionInfo();
extern void WriteSConnSetupPrefix();
#endif

/* Various of the DIX function interfaces were not designed to allow
* the client->errorValue to be set on BadValue and other errors.
* Rather than changing interfaces and breaking untold code we introduce
Expand Down
6 changes: 0 additions & 6 deletions Xext/saver.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ in this Software without prior written authorization from the X Consortium.

#include "modinit.h"

#if 0
static unsigned char ScreenSaverReqCode = 0;
#endif
static int ScreenSaverEventBase = 0;

static DISPATCH_PROC(ProcScreenSaverQueryInfo);
Expand Down Expand Up @@ -274,9 +271,6 @@ ScreenSaverExtensionInit(INITARGS)
ProcScreenSaverDispatch, SProcScreenSaverDispatch,
ScreenSaverResetProc, StandardMinorOpcode)))
{
#if 0
ScreenSaverReqCode = (unsigned char)extEntry->base;
#endif
ScreenSaverEventBase = extEntry->eventBase;
EventSwapVector[ScreenSaverEventBase] = (EventSwapPtr) SScreenSaverNotifyEvent;
}
Expand Down
6 changes: 0 additions & 6 deletions Xext/shape.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ static DISPATCH_PROC(SProcShapeSelectInput);
#include "panoramiXsrv.h"
#endif

#if 0
static unsigned char ShapeReqCode = 0;
#endif
static int ShapeEventBase = 0;
static RESTYPE ClientType, EventType; /* resource types for event masks */

Expand Down Expand Up @@ -154,9 +151,6 @@ ShapeExtensionInit(void)
ProcShapeDispatch, SProcShapeDispatch,
ShapeResetProc, StandardMinorOpcode)))
{
#if 0
ShapeReqCode = (unsigned char)extEntry->base;
#endif
ShapeEventBase = extEntry->eventBase;
EventSwapVector[ShapeEventBase] = (EventSwapPtr) SShapeNotifyEvent;
}
Expand Down
16 changes: 7 additions & 9 deletions Xext/xf86bigfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,13 @@ CheckForShmSyscall(void)
void
XFree86BigfontExtensionInit()
{
ExtensionEntry* extEntry;

if ((extEntry = AddExtension(XF86BIGFONTNAME,
XF86BigfontNumberEvents,
XF86BigfontNumberErrors,
ProcXF86BigfontDispatch,
SProcXF86BigfontDispatch,
XF86BigfontResetProc,
StandardMinorOpcode))) {
if (AddExtension(XF86BIGFONTNAME,
XF86BigfontNumberEvents,
XF86BigfontNumberErrors,
ProcXF86BigfontDispatch,
SProcXF86BigfontDispatch,
XF86BigfontResetProc,
StandardMinorOpcode)) {
#ifdef HAS_SHM
#ifdef MUST_CHECK_FOR_SHM_SYSCALL
/*
Expand Down
19 changes: 0 additions & 19 deletions Xext/xprint.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,25 +355,6 @@ XpCloseScreen(int index, ScreenPtr pScreen)
return (*CloseScreen)(index, pScreen);
}

#if 0 /* NOT USED */
static void
FreeScreenEntry(XpScreenPtr pScreenEntry)
{
XpDriverPtr pDriver;

pDriver = pScreenEntry->drivers;
while(pDriver != (XpDriverPtr)NULL)
{
XpDriverPtr tmp;

tmp = pDriver->next;
xfree(pDriver);
pDriver = tmp;
}
xfree(pScreenEntry);
}
#endif

/*
* XpRegisterInitFunc tells the print extension which screens
* are printers as opposed to displays, and what drivers are
Expand Down
Loading

0 comments on commit c8feb73

Please sign in to comment.