/* * quartzCommon.h * * Common definitions used internally by all Quartz modes * * This file should be included before any X11 or IOKit headers * so that it can avoid symbol conflicts. */ /* $XFree86: xc/programs/Xserver/hw/darwin/bundle/quartzCommon.h,v 1.2 2001/10/07 18:47:49 torrey Exp $ */ #ifndef _QUARTZCOMMON_H #define _QUARTZCOMMON_H // QuickDraw in ApplicationServices has the following conflicts with // the basic X server headers. Use QD_ to use the QuickDraw // definition of any of these symbols, or the normal name for the // X11 definition. #define AllocCursor QD_AllocCursor #define InitFonts QD_InitFonts #define Cursor QD_Cursor #define WindowPtr QD_WindowPtr #include #undef AllocCursor #undef InitFonts #undef Cursor #undef WindowPtr #include "quartzShared.h" // Quartz specific per screen storage structure typedef struct { CGDirectDisplayID displayID; } QuartzScreenRec, *QuartzScreenPtr; #define QUARTZ_PRIV(pScreen) \ ((QuartzScreenPtr)pScreen->devPrivates[quartzScreenIndex].ptr) // Data stored at startup for Cocoa front end extern int quartzEventWriteFD; extern int quartzStartClients; // User preferences used by Quartz modes extern int quartzRootless; extern int quartzUseSysBeep; // Other shared data extern int quartzServerVisible; extern int quartzScreenIndex; extern int aquaMenuBarHeight; void QuartzCapture(void); void QuartzReadPreferences(void); void QuartzMessageMainThread(unsigned msg); int QuartzFSUseQDCursor(int depth); // Messages that can be sent to the main thread. enum { kQuartzServerHidden, kQuartzServerDied }; #endif /* _QUARTZCOMMON_H */