diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-02-15 20:44:13 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-02-15 20:44:13 +0000 |
commit | f105b8da11fcf337512b3c39da3368f98da07a33 (patch) | |
tree | 8d2c7b8ee5657f0d630bd50956819d77e2d071a5 /dix | |
parent | 010d6effa6fa210251b12459882e88aeee82c2c0 (diff) |
Mark everything in dixsym.c as _X_EXPORT.
Diffstat (limited to 'dix')
-rw-r--r-- | dix/atom.c | 4 | ||||
-rw-r--r-- | dix/colormap.c | 20 | ||||
-rw-r--r-- | dix/cursor.c | 2 | ||||
-rw-r--r-- | dix/devices.c | 34 | ||||
-rw-r--r-- | dix/dispatch.c | 24 | ||||
-rw-r--r-- | dix/dixfonts.c | 10 | ||||
-rw-r--r-- | dix/dixutils.c | 32 | ||||
-rw-r--r-- | dix/events.c | 38 | ||||
-rw-r--r-- | dix/extension.c | 12 | ||||
-rw-r--r-- | dix/gc.c | 26 | ||||
-rw-r--r-- | dix/globals.c | 58 | ||||
-rw-r--r-- | dix/main.c | 6 | ||||
-rw-r--r-- | dix/pixmap.c | 6 | ||||
-rw-r--r-- | dix/privates.c | 26 | ||||
-rw-r--r-- | dix/property.c | 2 | ||||
-rw-r--r-- | dix/resource.c | 42 | ||||
-rw-r--r-- | dix/swaprep.c | 8 | ||||
-rw-r--r-- | dix/swapreq.c | 8 | ||||
-rw-r--r-- | dix/tables.c | 6 | ||||
-rw-r--r-- | dix/window.c | 46 |
20 files changed, 205 insertions, 205 deletions
diff --git a/dix/atom.c b/dix/atom.c index d78fa566c..53cd5c311 100644 --- a/dix/atom.c +++ b/dix/atom.c @@ -74,7 +74,7 @@ static NodePtr *nodeTable; void FreeAtom(NodePtr patom); -Atom +_X_EXPORT Atom MakeAtom(char *string, unsigned len, Bool makeit) { register NodePtr * np; @@ -151,7 +151,7 @@ MakeAtom(char *string, unsigned len, Bool makeit) return None; } -Bool +_X_EXPORT Bool ValidAtom(Atom atom) { return (atom != None) && (atom <= lastAtom); diff --git a/dix/colormap.c b/dix/colormap.c index 47c6c51e3..900949c81 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/dix/colormap.c,v 1.7 2005/04/20 12:25:19 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/dix/colormap.c,v 1.11 2005/09/05 07:40:50 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/dix/colormap.c,v 3.11 2003/11/03 05:10:59 tsi Exp $ */ /*********************************************************** @@ -255,7 +255,7 @@ typedef struct _colorResource * \param mid resource to use for this colormap * \param alloc 1 iff all entries are allocated writable */ -int +_X_EXPORT int CreateColormap (Colormap mid, ScreenPtr pScreen, VisualPtr pVisual, ColormapPtr *ppcmap, int alloc, int client) { @@ -505,7 +505,7 @@ TellNoMap (WindowPtr pwin, Colormap *pmid) } /* Tell window that pmid got uninstalled */ -int +_X_EXPORT int TellLostMap (WindowPtr pwin, pointer value) { Colormap *pmid = (Colormap *)value; @@ -530,7 +530,7 @@ TellLostMap (WindowPtr pwin, pointer value) } /* Tell window that pmid got installed */ -int +_X_EXPORT int TellGainedMap (WindowPtr pwin, pointer value) { Colormap *pmid = (Colormap *)value; @@ -803,7 +803,7 @@ UpdateColors (ColormapPtr pmap) /* Get a read-only color from a ColorMap (probably slow for large maps) * Returns by changing the value in pred, pgreen, pblue and pPix */ -int +_X_EXPORT int AllocColor (ColormapPtr pmap, unsigned short *pred, unsigned short *pgreen, unsigned short *pblue, Pixel *pPix, int client) @@ -988,7 +988,7 @@ AllocColor (ColormapPtr pmap, * is that this routine will never return failure. */ -void +_X_EXPORT void FakeAllocColor (register ColormapPtr pmap, register xColorItem *item) { Pixel pixR, pixG, pixB; @@ -1054,7 +1054,7 @@ FakeAllocColor (register ColormapPtr pmap, register xColorItem *item) } /* free a pixel value obtained from FakeAllocColor */ -void +_X_EXPORT void FakeFreeColor(register ColormapPtr pmap, Pixel pixel) { register VisualPtr pVisual; @@ -1417,7 +1417,7 @@ BlueComp (EntryPtr pent, xrgb *prgb) /* Read the color value of a cell */ -int +_X_EXPORT int QueryColors (ColormapPtr pmap, int count, Pixel *ppixIn, xrgb *prgbList) { Pixel *ppix, pixel; @@ -2256,7 +2256,7 @@ AllocShared (ColormapPtr pmap, Pixel *ppix, int c, int r, int g, int b, /** FreeColors * Free colors and/or cells (probably slow for large numbers) */ -int +_X_EXPORT int FreeColors (ColormapPtr pmap, int client, int count, Pixel *pixels, Pixel mask) { int rval, result, class; @@ -2500,7 +2500,7 @@ FreeCo (ColormapPtr pmap, int client, int color, int npixIn, Pixel *ppixIn, Pixe /* Redefine color values */ -int +_X_EXPORT int StoreColors (ColormapPtr pmap, int count, xColorItem *defs) { register Pixel pix; diff --git a/dix/cursor.c b/dix/cursor.c index f4d6c6419..af9282f98 100644 --- a/dix/cursor.c +++ b/dix/cursor.c @@ -109,7 +109,7 @@ FreeCursorBits(CursorBitsPtr bits) * * \param value must conform to DeleteType */ -int +_X_EXPORT int FreeCursor(pointer value, XID cid) { int nscr; diff --git a/dix/devices.c b/dix/devices.c index ab286ad04..2d160fb22 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -48,7 +48,7 @@ SOFTWARE. /* $Xorg: devices.c,v 1.4 2001/02/09 02:04:39 xorgcvs Exp $ */ -/* $XdotOrg: xc/programs/Xserver/dix/devices.c,v 1.5 2005/05/22 01:12:49 alanc Exp $ */ +/* $XdotOrg: xserver/xorg/dix/devices.c,v 1.8 2005/07/03 08:53:38 daniels Exp $ */ #ifdef HAVE_DIX_CONFIG_H #include <dix-config.h> @@ -400,13 +400,13 @@ _RegisterKeyboardDevice(DeviceIntPtr device) } } -DevicePtr +_X_EXPORT DevicePtr LookupKeyboardDevice() { return inputInfo.keyboard ? &inputInfo.keyboard->public : NULL; } -DevicePtr +_X_EXPORT DevicePtr LookupPointerDevice() { return inputInfo.pointer ? &inputInfo.pointer->public : NULL; @@ -528,7 +528,7 @@ InitModMap(register KeyClassPtr keyc) return TRUE; } -Bool +_X_EXPORT Bool InitKeyClassDeviceStruct(DeviceIntPtr dev, KeySymsPtr pKeySyms, CARD8 pModifiers[]) { int i; @@ -566,7 +566,7 @@ InitKeyClassDeviceStruct(DeviceIntPtr dev, KeySymsPtr pKeySyms, CARD8 pModifiers return TRUE; } -Bool +_X_EXPORT Bool InitButtonClassDeviceStruct(register DeviceIntPtr dev, int numButtons, CARD8 *map) { @@ -590,7 +590,7 @@ InitButtonClassDeviceStruct(register DeviceIntPtr dev, int numButtons, return TRUE; } -Bool +_X_EXPORT Bool InitValuatorClassDeviceStruct(DeviceIntPtr dev, int numAxes, ValuatorMotionProcPtr motionProc, int numMotionEvents, int mode) @@ -616,7 +616,7 @@ InitValuatorClassDeviceStruct(DeviceIntPtr dev, int numAxes, return TRUE; } -Bool +_X_EXPORT Bool InitFocusClassDeviceStruct(DeviceIntPtr dev) { register FocusClassPtr focc; @@ -634,7 +634,7 @@ InitFocusClassDeviceStruct(DeviceIntPtr dev) return TRUE; } -Bool +_X_EXPORT Bool InitKbdFeedbackClassDeviceStruct(DeviceIntPtr dev, BellProcPtr bellProc, KbdCtrlProcPtr controlProc) { @@ -662,7 +662,7 @@ InitKbdFeedbackClassDeviceStruct(DeviceIntPtr dev, BellProcPtr bellProc, return TRUE; } -Bool +_X_EXPORT Bool InitPtrFeedbackClassDeviceStruct(DeviceIntPtr dev, PtrCtrlProcPtr controlProc) { register PtrFeedbackPtr feedc; @@ -703,7 +703,7 @@ IntegerCtrl defaultIntegerControl = { DEFAULT_INT_DISPLAYED, 0}; -Bool +_X_EXPORT Bool InitStringFeedbackClassDeviceStruct ( DeviceIntPtr dev, StringCtrlProcPtr controlProc, int max_symbols, int num_symbols_supported, KeySym *symbols) @@ -743,7 +743,7 @@ InitStringFeedbackClassDeviceStruct ( return TRUE; } -Bool +_X_EXPORT Bool InitBellFeedbackClassDeviceStruct (DeviceIntPtr dev, BellProcPtr bellProc, BellCtrlProcPtr controlProc) { @@ -763,7 +763,7 @@ InitBellFeedbackClassDeviceStruct (DeviceIntPtr dev, BellProcPtr bellProc, return TRUE; } -Bool +_X_EXPORT Bool InitLedFeedbackClassDeviceStruct (DeviceIntPtr dev, LedCtrlProcPtr controlProc) { register LedFeedbackPtr feedc; @@ -784,7 +784,7 @@ InitLedFeedbackClassDeviceStruct (DeviceIntPtr dev, LedCtrlProcPtr controlProc) return TRUE; } -Bool +_X_EXPORT Bool InitIntegerFeedbackClassDeviceStruct (DeviceIntPtr dev, IntegerCtrlProcPtr controlProc) { register IntegerFeedbackPtr feedc; @@ -802,7 +802,7 @@ InitIntegerFeedbackClassDeviceStruct (DeviceIntPtr dev, IntegerCtrlProcPtr contr return TRUE; } -Bool +_X_EXPORT Bool InitPointerDeviceStruct(DevicePtr device, CARD8 *map, int numButtons, ValuatorMotionProcPtr motionProc, PtrCtrlProcPtr controlProc, int numMotionEvents) @@ -815,7 +815,7 @@ InitPointerDeviceStruct(DevicePtr device, CARD8 *map, int numButtons, InitPtrFeedbackClassDeviceStruct(dev, controlProc)); } -Bool +_X_EXPORT Bool InitKeyboardDeviceStruct(DevicePtr device, KeySymsPtr pKeySyms, CARD8 pModifiers[], BellProcPtr bellProc, KbdCtrlProcPtr controlProc) @@ -827,7 +827,7 @@ InitKeyboardDeviceStruct(DevicePtr device, KeySymsPtr pKeySyms, InitKbdFeedbackClassDeviceStruct(dev, bellProc, controlProc)); } -void +_X_EXPORT void SendMappingNotify(unsigned request, unsigned firstKeyCode, unsigned count, ClientPtr client) { @@ -1199,7 +1199,7 @@ NoteLedState(DeviceIntPtr keybd, int led, Bool on) ctrl->leds &= ~((Leds)1 << (led - 1)); } -int +_X_EXPORT int Ones(unsigned long mask) /* HACKMEM 169 */ { register unsigned long y; diff --git a/dix/dispatch.c b/dix/dispatch.c index ccbe06419..c88398e68 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/dix/dispatch.c,v 1.9 2005/06/10 04:01:14 ajax Exp $ */ +/* $XdotOrg: xserver/xorg/dix/dispatch.c,v 1.13 2005/09/13 01:33:19 daniels Exp $ */ /* $Xorg: dispatch.c,v 1.5 2001/02/09 02:04:40 xorgcvs Exp $ */ /************************************************************ @@ -134,8 +134,8 @@ int ProcInitialConnection(); extern xConnSetupPrefix connSetupPrefix; extern char *ConnectionInfo; -Selection *CurrentSelections; -int NumCurrentSelections; +_X_EXPORT Selection *CurrentSelections; +_X_EXPORT int NumCurrentSelections; CallbackListPtr SelectionCallback = NULL; static ClientPtr grabClient; @@ -144,7 +144,7 @@ static ClientPtr grabClient; #define GrabKickout 2 static int grabState = GrabNone; static long grabWaiters[mskcnt]; -CallbackListPtr ServerGrabCallback = NULL; +_X_EXPORT CallbackListPtr ServerGrabCallback = NULL; HWEventQueuePtr checkForInput[2]; extern int connBlockScreenStart; @@ -156,15 +156,15 @@ static int nextFreeClientID; /* always MIN free client ID */ static int nClients; /* number of authorized clients */ -CallbackListPtr ClientStateCallback; +_X_EXPORT CallbackListPtr ClientStateCallback; /* dispatchException & isItTimeToYield must be declared volatile since they * are modified by signal handlers - otherwise optimizer may assume it doesn't * need to actually check value in memory when used and may miss changes from * signal handlers. */ -volatile char dispatchException = 0; -volatile char isItTimeToYield; +_X_EXPORT volatile char dispatchException = 0; +_X_EXPORT volatile char isItTimeToYield; /* Various of the DIX function interfaces were not designed to allow * the client->errorValue to be set on BadValue and other errors. @@ -176,14 +176,14 @@ XID clientErrorValue; /* XXX this is a kludge */ #define SAME_SCREENS(a, b) (\ (a.pScreen == b.pScreen)) -void +_X_EXPORT void SetInputCheck(HWEventQueuePtr c0, HWEventQueuePtr c1) { checkForInput[0] = c0; checkForInput[1] = c1; } -void +_X_EXPORT void UpdateCurrentTime() { TimeStamp systime; @@ -202,7 +202,7 @@ UpdateCurrentTime() } /* Like UpdateCurrentTime, but can't call ProcessInputEvents */ -void +_X_EXPORT void UpdateCurrentTimeIf() { TimeStamp systime; @@ -492,7 +492,7 @@ Dispatch(void) #undef MAJOROP -int +_X_EXPORT int ProcBadRequest(ClientPtr client) { return (BadRequest); @@ -3968,7 +3968,7 @@ ProcEstablishConnection(register ClientPtr client) return(client->noClientException); } -void +_X_EXPORT void SendErrorToClient(ClientPtr client, unsigned majorCode, unsigned minorCode, XID resId, int errorCode) { diff --git a/dix/dixfonts.c b/dix/dixfonts.c index 3c1d65daf..a3ccf6c1e 100644 --- a/dix/dixfonts.c +++ b/dix/dixfonts.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/dix/dixfonts.c,v 1.5 2005/04/20 13:33:54 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/dix/dixfonts.c,v 1.8 2005/07/03 08:53:38 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/dix/dixfonts.c,v 3.28 2003/11/08 02:02:03 dawes Exp $ */ /************************************************************************ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. @@ -92,7 +92,7 @@ extern FontPtr defaultFont; static FontPathElementPtr *font_path_elements = (FontPathElementPtr *) 0; static int num_fpes = 0; -FPEFunctions *fpe_functions = (FPEFunctions *) 0; +_X_EXPORT FPEFunctions *fpe_functions = (FPEFunctions *) 0; static int num_fpe_types = 0; static unsigned char *font_path_string; @@ -102,7 +102,7 @@ static int size_slept_fpes = 0; static FontPathElementPtr *slept_fpes = (FontPathElementPtr *) 0; static FontPatternCachePtr patternCache; -int +_X_EXPORT int FontToXError(err) int err; { @@ -467,7 +467,7 @@ OpenFont(ClientPtr client, XID fid, Mask flags, unsigned lenfname, char *pfontna * * \param value must conform to DeleteType */ -int +_X_EXPORT int CloseFont(pointer value, XID fid) { int nscr; @@ -1867,7 +1867,7 @@ GetFontPath(int *count, int *length) return font_path_string; } -int +_X_EXPORT int LoadGlyphs(ClientPtr client, FontPtr pfont, unsigned nchars, int item_size, unsigned char *data) { if (fpe_functions[pfont->fpe->type].load_glyphs) diff --git a/dix/dixutils.c b/dix/dixutils.c index e7d4ccd4d..91796eade 100644 --- a/dix/dixutils.c +++ b/dix/dixutils.c @@ -107,7 +107,7 @@ Author: Adobe Systems Incorporated * argument is less than, equal to or greater than the second argument. */ -int +_X_EXPORT int CompareTimeStamps(TimeStamp a, TimeStamp b) { if (a.months < b.months) @@ -126,7 +126,7 @@ CompareTimeStamps(TimeStamp a, TimeStamp b) */ #define HALFMONTH ((unsigned long) 1<<31) -TimeStamp +_X_EXPORT TimeStamp ClientTimeToServerTime(CARD32 c) { TimeStamp ts; @@ -170,7 +170,7 @@ ISOLatin1ToLower (unsigned char source) } -void +_X_EXPORT void CopyISOLatin1Lowered(unsigned char *dest, unsigned char *source, int length) { register int i; @@ -209,7 +209,7 @@ CompareISOLatin1Lowered(unsigned char *s1, int s1len, * LookupWindow and LookupDrawable, which do no access checks. */ -WindowPtr +_X_EXPORT WindowPtr SecurityLookupWindow(XID rid, ClientPtr client, Mask access_mode) { WindowPtr pWin; @@ -236,7 +236,7 @@ SecurityLookupWindow(XID rid, ClientPtr client, Mask access_mode) } -pointer +_X_EXPORT pointer SecurityLookupDrawable(XID rid, ClientPtr client, Mask access_mode) { register DrawablePtr pDraw; @@ -259,13 +259,13 @@ SecurityLookupDrawable(XID rid, ClientPtr client, Mask access_mode) * macros because of compatibility with loadable servers. */ -WindowPtr +_X_EXPORT WindowPtr LookupWindow(XID rid, ClientPtr client) { return SecurityLookupWindow(rid, client, SecurityUnknownAccess); } -pointer +_X_EXPORT pointer LookupDrawable(XID rid, ClientPtr client) { return SecurityLookupDrawable(rid, client, SecurityUnknownAccess); @@ -315,7 +315,7 @@ LookupDrawable(XID rid, ClientPtr client) #endif /* XCSECURITY */ -ClientPtr +_X_EXPORT ClientPtr LookupClient(XID rid, ClientPtr client) { pointer pRes = (pointer)SecurityLookupIDByClass(client, rid, RC_ANY, @@ -405,7 +405,7 @@ DeleteWindowFromAnySaveSet(WindowPtr pWin) * colormaps, if someone calls install colormap, it's easier to have a dummy * procedure to call than to check if there's a procedure */ -void +_X_EXPORT void NoopDDA(void) { } @@ -495,7 +495,7 @@ WakeupHandler(int result, pointer pReadmask) * Reentrant with BlockHandler and WakeupHandler, except wakeup won't * get called until next time */ -Bool +_X_EXPORT Bool RegisterBlockAndWakeupHandlers (BlockHandlerProcPtr blockHandler, WakeupHandlerProcPtr wakeupHandler, pointer blockData) @@ -519,7 +519,7 @@ RegisterBlockAndWakeupHandlers (BlockHandlerProcPtr blockHandler, return TRUE; } -void +_X_EXPORT void RemoveBlockAndWakeupHandlers (BlockHandlerProcPtr blockHandler, WakeupHandlerProcPtr wakeupHandler, pointer blockData) @@ -614,7 +614,7 @@ ProcessWorkQueueZombies(void) workQueueLast = p; } -Bool +_X_EXPORT Bool QueueWorkProc ( Bool (*function)(ClientPtr /* pClient */, pointer /* closure */), ClientPtr client, pointer closure) @@ -650,7 +650,7 @@ typedef struct _SleepQueue { static SleepQueuePtr sleepQueue = NULL; -Bool +_X_EXPORT Bool ClientSleep (ClientPtr client, ClientSleepProcPtr function, pointer closure) { SleepQueuePtr q; @@ -681,7 +681,7 @@ ClientSignal (ClientPtr client) return FALSE; } -void +_X_EXPORT void ClientWakeup (ClientPtr client) { SleepQueuePtr q, *prev; @@ -913,7 +913,7 @@ CreateCallbackList(CallbackListPtr *pcbl, CallbackFuncsPtr cbfuncs) return TRUE; } -Bool +_X_EXPORT Bool AddCallback(CallbackListPtr *pcbl, CallbackProcPtr callback, pointer data) { if (!pcbl) return FALSE; @@ -925,7 +925,7 @@ AddCallback(CallbackListPtr *pcbl, CallbackProcPtr callback, pointer data) return ((*(*pcbl)->funcs.AddCallback) (pcbl, callback, data)); } -Bool +_X_EXPORT Bool DeleteCallback(CallbackListPtr *pcbl, CallbackProcPtr callback, pointer data) { if (!pcbl || !*pcbl) return FALSE; diff --git a/dix/events.c b/dix/events.c index 86333609d..88e05ef2f 100644 --- a/dix/events.c +++ b/dix/events.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/dix/events.c,v 1.16 2005/07/15 05:48:29 kem Exp $ */ +/* $XdotOrg: xserver/xorg/dix/events.c,v 1.17 2005/08/25 22:11:04 anholt Exp $ */ /* $XFree86: xc/programs/Xserver/dix/events.c,v 3.51 2004/01/12 17:04:52 tsi Exp $ */ /************************************************************ @@ -202,8 +202,8 @@ xEvent *xeviexE; #define rClient(obj) (clients[CLIENT_ID((obj)->resource)]) -CallbackListPtr EventCallback; -CallbackListPtr DeviceEventCallback; +_X_EXPORT CallbackListPtr EventCallback; +_X_EXPORT CallbackListPtr DeviceEventCallback; #define DNPMCOUNT 8 @@ -213,7 +213,7 @@ static int DontPropagateRefCnts[DNPMCOUNT]; #ifdef DEBUG static debug_events = 0; #endif -InputInfo inputInfo; +_X_EXPORT InputInfo inputInfo; static struct { QdEventPtr pending, *pendtail; @@ -254,8 +254,8 @@ static struct { } sprite; /* info about the cursor sprite */ #ifdef XEVIE -WindowPtr xeviewin; -HotSpot xeviehot; +_X_EXPORT WindowPtr xeviewin; +_X_EXPORT HotSpot xeviehot; #endif static void DoEnterLeaveEvents( @@ -692,7 +692,7 @@ SetMaskForEvent(Mask mask, int event) filters[event] = mask; } -void +_X_EXPORT void SetCriticalEvent(int event) { if (event >= 128) @@ -908,7 +908,7 @@ ConfineCursorToWindow(WindowPtr pWin, Bool generateEvents, Bool confineToScreen) } } -Bool +_X_EXPORT Bool PointerConfinedToScreen() { return sprite.confined; @@ -977,25 +977,25 @@ PostNewCursor(void) } } -WindowPtr +_X_EXPORT WindowPtr GetCurrentRootWindow() { return ROOT; } -WindowPtr +_X_EXPORT WindowPtr GetSpriteWindow() { return sprite.win; } -CursorPtr +_X_EXPORT CursorPtr GetSpriteCursor() { return sprite.current; } -void +_X_EXPORT void GetSpritePosition(int *px, int *py) { *px = sprite.hotPhys.x; @@ -1003,7 +1003,7 @@ GetSpritePosition(int *px, int *py) } #ifdef PANORAMIX -int +_X_EXPORT int XineramaGetCursorScreen() { if(!noPanoramiXExtension) { @@ -1575,7 +1575,7 @@ ReleaseActiveGrabs(ClientPtr client) * The following procedures deal with delivering events * **************************************************************************/ -int +_X_EXPORT int TryClientEvents (ClientPtr client, xEvent *pEvents, int count, Mask mask, Mask filter, GrabPtr grab) { @@ -1928,7 +1928,7 @@ DeliverDeviceEvents(register WindowPtr pWin, register xEvent *xE, GrabPtr grab, } /* not useful for events that propagate up the tree or extension events */ -int +_X_EXPORT int DeliverEvents(register WindowPtr pWin, register xEvent *xE, int count, register WindowPtr otherParent) { @@ -2126,7 +2126,7 @@ CheckMotion(xEvent *xE) return TRUE; } -void +_X_EXPORT void WindowsRestructured() { (void) CheckMotion((xEvent *)NULL); @@ -2230,7 +2230,7 @@ WindowHasNewCursor(WindowPtr pWin) PostNewCursor(); } -void +_X_EXPORT void NewCurrentScreen(ScreenPtr newScreen, int x, int y) { sprite.hotPhys.x = x; @@ -4520,7 +4520,7 @@ DeleteWindowFromAnyEvents(WindowPtr pWin, Bool freeResources) /** * Call this whenever some window at or below pWin has changed geometry */ -void +_X_EXPORT void CheckCursorConfinement(WindowPtr pWin) { GrabPtr grab = inputInfo.pointer->grab; @@ -4595,7 +4595,7 @@ ProcRecolorCursor(ClientPtr client) return (Success); } -void +_X_EXPORT void WriteEventsToClient(ClientPtr pClient, int count, xEvent *events) { #ifdef PANORAMIX diff --git a/dix/extension.c b/dix/extension.c index 270d54f9b..3e379d7fe 100644 --- a/dix/extension.c +++ b/dix/extension.c @@ -82,7 +82,7 @@ int lastEvent = EXTENSION_EVENT_BASE; static int lastError = FirstExtensionError; static unsigned int NumExtensions = 0; -ExtensionEntry * +_X_EXPORT ExtensionEntry * AddExtension(char *name, int NumEvents, int NumErrors, int (*MainProc)(ClientPtr c1), int (*SwappedMainProc)(ClientPtr c2), @@ -160,7 +160,7 @@ AddExtension(char *name, int NumEvents, int NumErrors, return(ext); } -Bool AddExtensionAlias(char *alias, ExtensionEntry *ext) +_X_EXPORT Bool AddExtensionAlias(char *alias, ExtensionEntry *ext) { char *name; char **aliases; @@ -208,7 +208,7 @@ FindExtension(char *extname, int len) * CheckExtension returns the extensions[] entry for the requested * extension name. Maybe this could just return a Bool instead? */ -ExtensionEntry * +_X_EXPORT ExtensionEntry * CheckExtension(const char *extname) { int n; @@ -220,7 +220,7 @@ CheckExtension(const char *extname) return NULL; } -void +_X_EXPORT void DeclareExtensionSecurity(char *extname, Bool secure) { #ifdef XCSECURITY @@ -246,13 +246,13 @@ DeclareExtensionSecurity(char *extname, Bool secure) #endif } -unsigned short +_X_EXPORT unsigned short StandardMinorOpcode(ClientPtr client) { return ((xReq *)client->requestBuffer)->data; } -unsigned short +_X_EXPORT unsigned short MinorOpcodeOfRequest(ClientPtr client) { unsigned char major; @@ -73,7 +73,7 @@ static Bool CreateDefaultTile(GCPtr pGC); unsigned char DefaultDash[2] = {4, 4}; -void +_X_EXPORT void ValidateGC(DrawablePtr pDraw, GC *pGC) { (*pGC->funcs->ValidateGC) (pGC, pGC->stateChanges, pDraw); @@ -145,7 +145,7 @@ ValidateGC(DrawablePtr pDraw, GC *pGC) #define NEXT_PTR(_type, _var) { \ assert(pUnion); _var = (_type)pUnion->ptr; pUnion++; } -int +_X_EXPORT int dixChangeGC(ClientPtr client, register GC *pGC, register BITS32 mask, CARD32 *pC32, ChangeGCValPtr pUnion) { register BITS32 index2; @@ -523,7 +523,7 @@ dixChangeGC(ClientPtr client, register GC *pGC, register BITS32 mask, CARD32 *pC /* Publically defined entry to ChangeGC. Just calls dixChangeGC and tells * it that all of the entries are constants or IDs */ -int +_X_EXPORT int ChangeGC(register GC *pGC, register BITS32 mask, XID *pval) { return (dixChangeGC(NullClient, pGC, mask, pval, NULL)); @@ -549,7 +549,7 @@ NOTE: all values sent over the protocol for ChangeGC requests are 32 bits long */ -int +_X_EXPORT int DoChangeGC(register GC *pGC, register BITS32 mask, XID *pval, int fPointer) { if (fPointer) @@ -601,7 +601,7 @@ AllocateGC(ScreenPtr pScreen) return pGC; } -GCPtr +_X_EXPORT GCPtr CreateGC(DrawablePtr pDrawable, BITS32 mask, XID *pval, int *pStatus) { register GCPtr pGC; @@ -725,7 +725,7 @@ CreateDefaultTile (GCPtr pGC) return TRUE; } -int +_X_EXPORT int CopyGC(register GC *pgcSrc, register GC *pgcDst, register BITS32 mask) { register BITS32 index2; @@ -889,7 +889,7 @@ CopyGC(register GC *pgcSrc, register GC *pgcDst, register BITS32 mask) * * \param value must conform to DeleteType */ -int +_X_EXPORT int FreeGC(pointer value, XID gid) { GCPtr pGC = (GCPtr)value; @@ -933,7 +933,7 @@ is what fills the default tile. (maybe this comment should go with CreateGC() or ChangeGC().) */ -GCPtr +_X_EXPORT GCPtr CreateScratchGC(ScreenPtr pScreen, unsigned depth) { register GCPtr pGC; @@ -1078,7 +1078,7 @@ FreeDefaultStipple(int screenNum) (*pScreen->DestroyPixmap)(pScreen->PixmapPerDepth[0]); } -int +_X_EXPORT int SetDashes(register GCPtr pGC, unsigned offset, unsigned ndash, unsigned char *pdash) { register long i; @@ -1134,7 +1134,7 @@ SetDashes(register GCPtr pGC, unsigned offset, unsigned ndash, unsigned char *pd return Success; } -int +_X_EXPORT int VerifyRectOrder(int nrects, xRectangle *prects, int ordering) { register xRectangle *prectP, *prectN; @@ -1184,7 +1184,7 @@ VerifyRectOrder(int nrects, xRectangle *prects, int ordering) return -1; } -int +_X_EXPORT int SetClipRects(GCPtr pGC, int xOrigin, int yOrigin, int nrects, xRectangle *prects, int ordering) { @@ -1221,7 +1221,7 @@ SetClipRects(GCPtr pGC, int xOrigin, int yOrigin, int nrects, if we can't, create one out of whole cloth (The Velveteen GC -- if you use it often enough it will become real.) */ -GCPtr +_X_EXPORT GCPtr GetScratchGC(register unsigned depth, register ScreenPtr pScreen) { register int i; @@ -1270,7 +1270,7 @@ GetScratchGC(register unsigned depth, register ScreenPtr pScreen) mark it as available. if not, free it for real */ -void +_X_EXPORT void FreeScratchGC(register GCPtr pGC) { register ScreenPtr pScreen = pGC->pScreen; diff --git a/dix/globals.c b/dix/globals.c index 26dca5792..f8b4e3ead 100644 --- a/dix/globals.c +++ b/dix/globals.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/dix/globals.c,v 1.4 2005/04/20 12:25:19 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/dix/globals.c,v 1.7 2005/07/03 08:53:38 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/dix/globals.c,v 1.12tsi Exp $ */ /************************************************************ @@ -64,7 +64,7 @@ SOFTWARE. #include "dixstruct.h" #include "os.h" -ScreenInfo screenInfo; +_X_EXPORT ScreenInfo screenInfo; KeybdCtrl defaultKeyboardControl = { DEFAULT_KEYBOARD_CLICK, DEFAULT_BELL, @@ -81,20 +81,20 @@ PtrCtrl defaultPointerControl = { DEFAULT_PTR_THRESHOLD, 0}; -ClientPtr *clients; -ClientPtr serverClient; -int currentMaxClients; /* current size of clients array */ -long maxBigRequestSize = MAX_BIG_REQUEST_SIZE; +_X_EXPORT ClientPtr *clients; +_X_EXPORT ClientPtr serverClient; +_X_EXPORT int currentMaxClients; /* current size of clients array */ +_X_EXPORT long maxBigRequestSize = MAX_BIG_REQUEST_SIZE; -WindowPtr *WindowTable; +_X_EXPORT WindowPtr *WindowTable; -unsigned long globalSerialNumber = 0; -unsigned long serverGeneration = 0; +_X_EXPORT unsigned long globalSerialNumber = 0; +_X_EXPORT unsigned long serverGeneration = 0; /* these next four are initialized in main.c */ -CARD32 ScreenSaverTime; +_X_EXPORT CARD32 ScreenSaverTime; CARD32 ScreenSaverInterval; -int ScreenSaverBlanking; +_X_EXPORT int ScreenSaverBlanking; int ScreenSaverAllowExposures; #ifdef DPMSExtension @@ -113,15 +113,15 @@ int ScreenSaverAllowExposures; CARD32 defaultDPMSStandbyTime = DEFAULT_STANDBY_TIME; CARD32 defaultDPMSSuspendTime = DEFAULT_SUSPEND_TIME; CARD32 defaultDPMSOffTime = DEFAULT_OFF_TIME; -CARD16 DPMSPowerLevel = 0; -Bool defaultDPMSEnabled = DEFAULT_DPMS_ENABLED; -Bool DPMSEnabledSwitch = FALSE; /* these denote the DPMS command line */ -Bool DPMSDisabledSwitch = FALSE; /* switch states */ -Bool DPMSCapableFlag = FALSE; -CARD32 DPMSStandbyTime; -CARD32 DPMSSuspendTime; -CARD32 DPMSOffTime; -Bool DPMSEnabled; +_X_EXPORT CARD16 DPMSPowerLevel = 0; +_X_EXPORT Bool defaultDPMSEnabled = DEFAULT_DPMS_ENABLED; +_X_EXPORT Bool DPMSEnabledSwitch = FALSE; /* these denote the DPMS command */ +_X_EXPORT Bool DPMSDisabledSwitch = FALSE; /* lind switch states */ +_X_EXPORT Bool DPMSCapableFlag = FALSE; +_X_EXPORT CARD32 DPMSStandbyTime; +_X_EXPORT CARD32 DPMSSuspendTime; +_X_EXPORT CARD32 DPMSOffTime; +_X_EXPORT Bool DPMSEnabled; #endif CARD32 defaultScreenSaverTime = DEFAULT_SCREEN_SAVER_TIME; @@ -144,17 +144,19 @@ CursorPtr rootCursor; Bool blackRoot=FALSE; ClientPtr requestingClient; /* XXX this should be obsolete now, remove? */ -TimeStamp currentTime; -TimeStamp lastDeviceEventTime; +_X_EXPORT TimeStamp currentTime; +_X_EXPORT TimeStamp lastDeviceEventTime; -Bool permitOldBugs = FALSE; /* turn off some error checking, to permit certain - * old broken clients (like R2/R3 xterms) to work - */ +/* + * turn off some error checking, to permit old broken clients (like R2/R3 + * xterms) to work + */ +_X_EXPORT Bool permitOldBugs = FALSE; -int defaultColorVisualClass = -1; -int monitorResolution = 0; +_X_EXPORT int defaultColorVisualClass = -1; +_X_EXPORT int monitorResolution = 0; -char *display; +_X_EXPORT char *display; CARD32 TimeOutValue = DEFAULT_TIMEOUT * MILLI_PER_SECOND; int argcGlobal; diff --git a/dix/main.c b/dix/main.c index 9605c7043..39c060f31 100644 --- a/dix/main.c +++ b/dix/main.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/dix/main.c,v 1.11 2005/05/22 01:12:49 alanc Exp $ */ +/* $XdotOrg: xserver/xorg/dix/main.c,v 1.14 2005/07/03 08:53:38 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/dix/main.c,v 3.43 2003/10/30 21:21:02 herrb Exp $ */ /*********************************************************** @@ -140,13 +140,13 @@ Bool CreateConnectionBlock(void); static void FreeScreen(ScreenPtr); -PaddingInfo PixmapWidthPaddingInfo[33]; +_X_EXPORT PaddingInfo PixmapWidthPaddingInfo[33]; int connBlockScreenStart; static int restart = 0; -void +_X_EXPORT void NotImplemented(xEvent *from, xEvent *to) { FatalError("Not implemented"); diff --git a/dix/pixmap.c b/dix/pixmap.c index 78ce2a8c6..527b0f0b2 100644 --- a/dix/pixmap.c +++ b/dix/pixmap.c @@ -51,7 +51,7 @@ from The Open Group. /* callable by ddx */ -PixmapPtr +_X_EXPORT PixmapPtr GetScratchPixmapHeader(ScreenPtr pScreen, int width, int height, int depth, int bitsPerPixel, int devKind, pointer pPixData) { @@ -74,7 +74,7 @@ GetScratchPixmapHeader(ScreenPtr pScreen, int width, int height, int depth, /* callable by ddx */ -void +_X_EXPORT void FreeScratchPixmapHeader(PixmapPtr pPixmap) { if (pPixmap) @@ -107,7 +107,7 @@ FreeScratchPixmapsForScreen(int scrnum) /* callable by ddx */ -PixmapPtr +_X_EXPORT PixmapPtr AllocatePixmap(ScreenPtr pScreen, int pixDataSize) { PixmapPtr pPixmap; diff --git a/dix/privates.c b/dix/privates.c index 1e04a7b22..0c94ff54d 100644 --- a/dix/privates.c +++ b/dix/privates.c @@ -1,5 +1,5 @@ /* $Xorg: privates.c,v 1.4 2001/02/09 02:04:40 xorgcvs Exp $ */ -/* $XdotOrg: xc/programs/Xserver/dix/privates.c,v 1.6 2005/05/22 01:12:49 alanc Exp $ */ +/* $XdotOrg: xserver/xorg/dix/privates.c,v 1.10 2005/09/05 07:40:50 daniels Exp $ */ /* Copyright 1993, 1998 The Open Group @@ -72,13 +72,13 @@ ResetClientPrivates() ((sizeof(ClientRec) + sizeof(long) - 1) / sizeof(long)) * sizeof(long); } -int +_X_EXPORT int AllocateClientPrivateIndex() { return clientPrivateCount++; } -Bool +_X_EXPORT Bool AllocateClientPrivate(int index2, unsigned amount) { unsigned oldamount; @@ -124,7 +124,7 @@ ResetScreenPrivates() /* this can be called after some screens have been created, * so we have to worry about resizing existing devPrivates */ -int +_X_EXPORT int AllocateScreenPrivateIndex() { int idx; @@ -163,13 +163,13 @@ ResetWindowPrivates() windowPrivateCount = 0; } -int +_X_EXPORT int AllocateWindowPrivateIndex() { return windowPrivateCount++; } -Bool +_X_EXPORT Bool AllocateWindowPrivate(register ScreenPtr pScreen, int index2, unsigned amount) { unsigned oldamount; @@ -213,13 +213,13 @@ ResetGCPrivates() gcPrivateCount = 0; } -int +_X_EXPORT int AllocateGCPrivateIndex() { return gcPrivateCount++; } -Bool +_X_EXPORT Bool AllocateGCPrivate(register ScreenPtr pScreen, int index2, unsigned amount) { unsigned oldamount; @@ -263,13 +263,13 @@ ResetPixmapPrivates() pixmapPrivateCount = 0; } -int +_X_EXPORT int AllocatePixmapPrivateIndex() { return pixmapPrivateCount++; } -Bool +_X_EXPORT Bool AllocatePixmapPrivate(register ScreenPtr pScreen, int index2, unsigned amount) { unsigned oldamount; @@ -316,7 +316,7 @@ ResetColormapPrivates() } -int +_X_EXPORT int AllocateColormapPrivateIndex (InitCmapPrivFunc initPrivFunc) { int index; @@ -370,13 +370,13 @@ AllocateColormapPrivateIndex (InitCmapPrivFunc initPrivFunc) static int devicePrivateIndex = 0; -int +_X_EXPORT int AllocateDevicePrivateIndex() { return devicePrivateIndex++; } -Bool +_X_EXPORT Bool AllocateDevicePrivate(DeviceIntPtr device, int index) { if (device->nPrivates < ++index) { diff --git a/dix/property.c b/dix/property.c index cabe46ecc..3dc1afd68 100644 --- a/dix/property.c +++ b/dix/property.c @@ -274,7 +274,7 @@ ProcChangeProperty(ClientPtr client) return client->noClientException; } -int +_X_EXPORT int ChangeWindowProperty(WindowPtr pWin, Atom property, Atom type, int format, int mode, unsigned long len, pointer value, Bool sendevent) diff --git a/dix/resource.c b/dix/resource.c index 48b695f62..bb34bc9d4 100644 --- a/dix/resource.c +++ b/dix/resource.c @@ -74,7 +74,7 @@ Equipment Corporation. ******************************************************************/ /* $Xorg: resource.c,v 1.5 2001/02/09 02:04:40 xorgcvs Exp $ */ -/* $XdotOrg: xc/programs/Xserver/dix/resource.c,v 1.5 2005/04/20 12:25:19 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/dix/resource.c,v 1.8 2005/07/03 08:53:38 daniels Exp $ */ /* $TOG: resource.c /main/41 1998/02/09 14:20:31 kaleb $ */ /* Routines to manage various kinds of resources: @@ -153,24 +153,24 @@ typedef struct _ClientResource { XID expectID; } ClientResourceRec; -RESTYPE lastResourceType; +_X_EXPORT RESTYPE lastResourceType; static RESTYPE lastResourceClass; -RESTYPE TypeMask; +_X_EXPORT RESTYPE TypeMask; static DeleteType *DeleteFuncs = (DeleteType *)NULL; #ifdef XResExtension -Atom * ResourceNames = NULL; +_X_EXPORT Atom * ResourceNames = NULL; -void RegisterResourceName (RESTYPE type, char *name) +_X_EXPORT void RegisterResourceName (RESTYPE type, char *name) { ResourceNames[type & TypeMask] = MakeAtom(name, strlen(name), TRUE); } #endif -RESTYPE +_X_EXPORT RESTYPE CreateNewResourceType(DeleteType deleteFunc) { RESTYPE next = lastResourceType + 1; @@ -200,7 +200,7 @@ CreateNewResourceType(DeleteType deleteFunc) return next; } -RESTYPE +_X_EXPORT RESTYPE CreateNewResourceClass() { RESTYPE next = lastResourceClass >> 1; @@ -323,7 +323,7 @@ AvailableID( return 0; } -void +_X_EXPORT void GetXIDRange(int client, Bool server, XID *minp, XID *maxp) { register XID id, maxid; @@ -374,7 +374,7 @@ GetXIDRange(int client, Bool server, XID *minp, XID *maxp) * invented, but this will be used so rarely that this should suffice. */ -unsigned int +_X_EXPORT unsigned int GetXIDList(ClientPtr pClient, unsigned count, XID *pids) { unsigned int found = 0; @@ -401,7 +401,7 @@ GetXIDList(ClientPtr pClient, unsigned count, XID *pids) * over-running another client. */ -XID +_X_EXPORT XID FakeClientID(register int client) { XID id, maxid; @@ -422,7 +422,7 @@ FakeClientID(register int client) return id; } -Bool +_X_EXPORT Bool AddResource(XID id, RESTYPE type, pointer value) { int client; @@ -507,7 +507,7 @@ RebuildTable(int client) clientTable[client].resources = resources; } -void +_X_EXPORT void FreeResource(XID id, RESTYPE skipDeleteFuncType) { int cid; @@ -554,7 +554,7 @@ FreeResource(XID id, RESTYPE skipDeleteFuncType) } -void +_X_EXPORT void FreeResourceByType(XID id, RESTYPE type, Bool skipFree) { int cid; @@ -594,7 +594,7 @@ FreeResourceByType(XID id, RESTYPE type, Bool skipFree) * data */ -Bool +_X_EXPORT Bool ChangeResourceValue (XID id, RESTYPE rtype, pointer value) { int cid; @@ -622,7 +622,7 @@ ChangeResourceValue (XID id, RESTYPE rtype, pointer value) * add and delete an equal number of resources! */ -void +_X_EXPORT void FindClientResourcesByType( ClientPtr client, RESTYPE type, @@ -654,7 +654,7 @@ FindClientResourcesByType( } } -void +_X_EXPORT void FindAllClientResources( ClientPtr client, FindAllRes func, @@ -801,7 +801,7 @@ FreeAllResources() } } -Bool +_X_EXPORT Bool LegalNewID(XID id, register ClientPtr client) { @@ -831,7 +831,7 @@ LegalNewID(XID id, register ClientPtr client) * else NULL is returned. */ -pointer +_X_EXPORT pointer SecurityLookupIDByType(ClientPtr client, XID id, RESTYPE rtype, Mask mode) { int cid; @@ -860,7 +860,7 @@ SecurityLookupIDByType(ClientPtr client, XID id, RESTYPE rtype, Mask mode) } -pointer +_X_EXPORT pointer SecurityLookupIDByClass(ClientPtr client, XID id, RESTYPE classes, Mask mode) { int cid; @@ -892,14 +892,14 @@ SecurityLookupIDByClass(ClientPtr client, XID id, RESTYPE classes, Mask mode) * macros because of compatibility with loadable servers. */ -pointer +_X_EXPORT pointer LookupIDByType(XID id, RESTYPE rtype) { return SecurityLookupIDByType(NullClient, id, rtype, SecurityUnknownAccess); } -pointer +_X_EXPORT pointer LookupIDByClass(XID id, RESTYPE classes) { return SecurityLookupIDByClass(NullClient, id, classes, diff --git a/dix/swaprep.c b/dix/swaprep.c index 9776cd437..5c05d3682 100644 --- a/dix/swaprep.c +++ b/dix/swaprep.c @@ -76,7 +76,7 @@ static void SwapFont(xQueryFontReply *pr, Bool hasGlyphs); * * \param size size in bytes */ -void +_X_EXPORT void Swap32Write(ClientPtr pClient, int size, register CARD32 *pbuf) { register int i; @@ -96,7 +96,7 @@ Swap32Write(ClientPtr pClient, int size, register CARD32 *pbuf) * * \param size size in bytes */ -void +_X_EXPORT void CopySwap32Write(ClientPtr pClient, int size, CARD32 *pbuf) { int bufsize = size; @@ -1169,7 +1169,7 @@ SKeymapNotifyEvent(xEvent *from, xEvent *to) *to = *from; } -void +_X_EXPORT void SwapConnSetupInfo( char *pInfo, char *pInfoT @@ -1289,7 +1289,7 @@ SwapVisual(xVisualType *pVis, xVisualType *pVisT) cpswapl(pVis->blueMask, pVisT->blueMask); } -void +_X_EXPORT void SwapConnSetupPrefix(xConnSetupPrefix *pcspFrom, xConnSetupPrefix *pcspTo) { pcspTo->success = pcspFrom->success; diff --git a/dix/swapreq.c b/dix/swapreq.c index 7d57d551f..2678fb6de 100644 --- a/dix/swapreq.c +++ b/dix/swapreq.c @@ -64,8 +64,7 @@ SOFTWARE. /* Thanks to Jack Palevich for testing and subsequently rewriting all this */ /* Byte swap a list of longs */ - -void +_X_EXPORT void SwapLongs (register CARD32 *list, register unsigned long count) { register char n; @@ -91,8 +90,7 @@ SwapLongs (register CARD32 *list, register unsigned long count) } /* Byte swap a list of shorts */ - -void +_X_EXPORT void SwapShorts (register short *list, register unsigned long count) { register char n; @@ -857,7 +855,7 @@ SProcFreeColors(register ClientPtr client) } -void +_X_EXPORT void SwapColorItem(xColorItem *pItem) { register char n; diff --git a/dix/tables.c b/dix/tables.c index 5196f0e85..d5854ef57 100644 --- a/dix/tables.c +++ b/dix/tables.c @@ -77,7 +77,7 @@ int (* InitialVector[3]) ( ProcEstablishConnection }; -int (* ProcVector[256]) ( +_X_EXPORT int (* ProcVector[256]) ( ClientPtr /* client */ ) = { @@ -345,7 +345,7 @@ int (* SwappedProcVector[256]) ( SProcNoOperation }; -EventSwapPtr EventSwapVector[128] = +_X_EXPORT EventSwapPtr EventSwapVector[128] = { (EventSwapPtr)SErrorEvent, NotImplemented, @@ -385,7 +385,7 @@ EventSwapPtr EventSwapVector[128] = }; -ReplySwapPtr ReplySwapVector[256] = +_X_EXPORT ReplySwapPtr ReplySwapVector[256] = { ReplyNotSwappd, ReplyNotSwappd, diff --git a/dix/window.c b/dix/window.c index 84985e66f..43b7ef473 100644 --- a/dix/window.c +++ b/dix/window.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/dix/window.c,v 1.9 2005/06/10 04:01:14 ajax Exp $ */ +/* $XdotOrg: xserver/xorg/dix/window.c,v 1.13 2006/01/12 22:14:56 sandmann Exp $ */ /* $Xorg: window.c,v 1.4 2001/02/09 02:04:41 xorgcvs Exp $ */ /* @@ -125,9 +125,9 @@ Equipment Corporation. static unsigned char _back_lsb[4] = {0x88, 0x22, 0x44, 0x11}; static unsigned char _back_msb[4] = {0x11, 0x44, 0x22, 0x88}; -int screenIsSaved = SCREEN_SAVER_OFF; +_X_EXPORT int screenIsSaved = SCREEN_SAVER_OFF; -ScreenSaverStuffRec savedScreenInfo[MAXSCREENS]; +_X_EXPORT ScreenSaverStuffRec savedScreenInfo[MAXSCREENS]; #if 0 extern void DeleteWindowFromAnyEvents(); @@ -160,8 +160,8 @@ static Bool TileScreenSaver(int i, int kind); #define SubStrSend(pWin,pParent) (StrSend(pWin) || SubSend(pParent)) -int numSaveUndersViewable = 0; -int deltaSaveUndersViewable = 0; +_X_EXPORT int numSaveUndersViewable = 0; +_X_EXPORT int deltaSaveUndersViewable = 0; #ifdef DEBUG /****** @@ -202,7 +202,7 @@ PrintWindowTree() } #endif -int +_X_EXPORT int TraverseTree(register WindowPtr pWin, VisitWindowProcPtr func, pointer data) { register int result; @@ -237,7 +237,7 @@ TraverseTree(register WindowPtr pWin, VisitWindowProcPtr func, pointer data) * exit WalkTree. Does depth-first traverse. *****/ -int +_X_EXPORT int WalkTree(ScreenPtr pScreen, VisitWindowProcPtr func, pointer data) { return(TraverseTree(WindowTable[pScreen->myNum], func, data)); @@ -551,7 +551,7 @@ RealChildHead(register WindowPtr pWin) * Makes a window in response to client request *****/ -WindowPtr +_X_EXPORT WindowPtr CreateWindow(Window wid, register WindowPtr pParent, int x, int y, unsigned w, unsigned h, unsigned bw, unsigned class, register Mask vmask, XID *vlist, int depth, ClientPtr client, VisualID visual, int *error) @@ -938,7 +938,7 @@ DestroySubwindows(register WindowPtr pWin, ClientPtr client) * to most significant bit in the mask. *****/ -int +_X_EXPORT int ChangeWindowAttributes(register WindowPtr pWin, Mask vmask, XID *vlist, ClientPtr client) { register Mask index2; @@ -1514,7 +1514,7 @@ GetWindowAttributes(register WindowPtr pWin, ClientPtr client, xGetWindowAttribu } -WindowPtr +_X_EXPORT WindowPtr MoveWindowInStack(register WindowPtr pWin, register WindowPtr pNextSib) { register WindowPtr pParent = pWin->parent; @@ -1598,7 +1598,7 @@ MoveWindowInStack(register WindowPtr pWin, register WindowPtr pNextSib) return( pFirstChange ); } -RegionPtr +_X_EXPORT RegionPtr CreateUnclippedWinSize (register WindowPtr pWin) { RegionPtr pRgn; @@ -1625,7 +1625,7 @@ CreateUnclippedWinSize (register WindowPtr pWin) return pRgn; } -void +_X_EXPORT void SetWinSize (register WindowPtr pWin) { #ifdef COMPOSITE @@ -1663,7 +1663,7 @@ SetWinSize (register WindowPtr pWin) #endif } -void +_X_EXPORT void SetBorderSize (register WindowPtr pWin) { int bw; @@ -1714,7 +1714,7 @@ SetBorderSize (register WindowPtr pWin) * \param destx,desty position relative to gravity */ -void +_X_EXPORT void GravityTranslate (register int x, register int y, int oldx, int oldy, int dw, int dh, unsigned gravity, register int *destx, register int *desty) @@ -1764,7 +1764,7 @@ GravityTranslate (register int x, register int y, int oldx, int oldy, } /* XXX need to retile border on each window with ParentRelative origin */ -void +_X_EXPORT void ResizeChildrenWinSize(register WindowPtr pWin, int dx, int dy, int dw, int dh) { register ScreenPtr pScreen; @@ -2666,7 +2666,7 @@ RealizeTree(WindowPtr pWin) * MapNotify event is generated. *****/ -int +_X_EXPORT int MapWindow(register WindowPtr pWin, ClientPtr client) { register ScreenPtr pScreen; @@ -2971,7 +2971,7 @@ UnrealizeTree( * generated. Cannot unmap a root window. *****/ -int +_X_EXPORT int UnmapWindow(register WindowPtr pWin, Bool fromConfigure) { register WindowPtr pParent; @@ -3200,7 +3200,7 @@ PointInWindowIsVisible(register WindowPtr pWin, int x, int y) } -RegionPtr +_X_EXPORT RegionPtr NotClippedByChildren(register WindowPtr pWin) { register ScreenPtr pScreen; @@ -3217,7 +3217,7 @@ NotClippedByChildren(register WindowPtr pWin) return(pReg); } -void +_X_EXPORT void SendVisibilityNotify(WindowPtr pWin) { xEvent event; @@ -3317,7 +3317,7 @@ static void DrawLogo( ); #endif -void +_X_EXPORT void SaveScreens(int on, int mode) { int i; @@ -3548,7 +3548,7 @@ TileScreenSaver(int i, int kind) * contain the structure. */ -WindowPtr +_X_EXPORT WindowPtr FindWindowWithOptional (register WindowPtr w) { do @@ -3565,7 +3565,7 @@ FindWindowWithOptional (register WindowPtr w) * release the optional record */ -void +_X_EXPORT void CheckWindowOptionalNeed (register WindowPtr w) { register WindowOptPtr optional; @@ -3619,7 +3619,7 @@ CheckWindowOptionalNeed (register WindowPtr w) * values. */ -Bool +_X_EXPORT Bool MakeWindowOptional (register WindowPtr pWin) { register WindowOptPtr optional; |