summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-29 23:56:06 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-29 23:56:06 -0200
commitd6cbd4511e35a89a0353f11834c6fdb8d4d2189f (patch)
treee9ffd8f4060fb6ffd2dc80d4f936fe7d910e22e5 /dix
parentffb484f7ef84099019b196ef97bfb2355eb6d52a (diff)
Export symbols defined in the sdk.
This is the biggest "visibility" patch. Instead of doing a "export" symbol on demand, export everything in the sdk, so that if some module fails due to an unresolved symbol, it is because it is using a symbol not in the sdk. Most exported symbols shouldn't really be made visible, neither advertised in the sdk, as they are only used by a single shared object. Symbols in the sdk (or referenced in sdk macros), but not defined anywhere include: XkbBuildCoreState() XkbInitialMap XkbXIUnsupported XkbCheckActionVMods() XkbSendCompatNotify() XkbDDXFakePointerButton() XkbDDXApplyConfig() _XkbStrCaseCmp() _XkbErrMessages[] _XkbErrCode _XkbErrLocation _XkbErrData XkbAccessXDetailText() XkbNKNDetailMaskText() XkbLookupGroupAndLevel() XkbInitAtoms() XkbGetOrderedDrawables() XkbFreeOrderedDrawables() XkbConvertXkbComponents() XkbWriteXKBSemantics() XkbWriteXKBLayout() XkbWriteXKBKeymap() XkbWriteXKBFile() XkbWriteCFile() XkbWriteXKMFile() XkbWriteToServer() XkbMergeFile() XkmFindTOCEntry() XkmReadFileSection() XkmReadFileSectionName() InitExtInput() xf86CheckButton() xf86SwitchCoreDevice() RamDacSetGamma() RamDacRestoreDACValues() xf86Bpp xf86ConfigPix24 xf86MouseCflags[] xf86SupportedMouseTypes[] xf86NumMouseTypes xf86ChangeBusIndex() xf86EntityEnter() xf86EntityLeave() xf86WrapperInit() xf86RingBell() xf86findOptionBoolean() xf86debugListOptions() LoadSubModuleLocal() LoaderSymbolLocal() getInt10Rec() xf86CurrentScreen xf86ReallocatePciResources() xf86NewSerialNumber() xf86RandRSetInitialMode() fbCompositeSolidMask_nx1xn fbCompositeSolidMask_nx8888x0565C fbCompositeSolidMask_nx8888x8888C fbCompositeSolidMask_nx8x0565 fbCompositeSolidMask_nx8x0888 fbCompositeSolidMask_nx8x8888 fbCompositeSrc_0565x0565 fbCompositeSrc_8888x0565 fbCompositeSrc_8888x0888 fbCompositeSrc_8888x8888 fbCompositeSrcAdd_1000x1000 fbCompositeSrcAdd_8000x8000 fbCompositeSrcAdd_8888x8888 fbGeneration fbIn fbOver fbOver24 fbOverlayGeneration fbRasterizeEdges fbRestoreAreas fbSaveAreas composeFunctions VBEBuildVbeModeList() VBECalcVbeModeIndex() TIramdac3030CalculateMNPForClock() shadowBufPtr shadowFindBuf() miRRGetScreenInfo() RRSetScreenConfig() RRModePruneUnused() PixmanImageFromPicture() extern int miPointerGetMotionEvents() miClipPicture() miRasterizeTriangle() fbPush1toN() fbInitializeBackingStore() ddxBeforeReset() SetupSprite() InitSprite() DGADeliverEvent() SPECIAL CASES o defined as _X_INTERNAL xf86NewInputDevice() o defined as static fbGCPrivateKey fbOverlayScreenPrivateKey fbScreenPrivateKey fbWinPrivateKey o defined in libXfont.so, but declared in xorg/dixfont.h GetGlyphs() QueryGlyphExtents() QueryTextExtents() ParseGlyphCachingMode() InitGlyphCaching() SetGlyphCachingMode()
Diffstat (limited to 'dix')
-rw-r--r--dix/atom.c6
-rw-r--r--dix/colormap.c14
-rw-r--r--dix/cursor.c6
-rw-r--r--dix/devices.c44
-rw-r--r--dix/dispatch.c26
-rw-r--r--dix/dixfonts.c38
-rw-r--r--dix/dixutils.c24
-rw-r--r--dix/events.c114
-rw-r--r--dix/extension.c4
-rw-r--r--dix/ffs.c2
-rw-r--r--dix/gc.c12
-rw-r--r--dix/getevents.c10
-rw-r--r--dix/globals.c48
-rw-r--r--dix/glyphcurs.c4
-rw-r--r--dix/grabs.c10
-rw-r--r--dix/initatoms.c2
-rw-r--r--dix/main.c8
-rw-r--r--dix/pixmap.c4
-rw-r--r--dix/privates.c2
-rw-r--r--dix/property.c4
-rw-r--r--dix/ptrveloc.c10
-rw-r--r--dix/registry.c16
-rw-r--r--dix/resource.c14
-rw-r--r--dix/selection.c8
-rw-r--r--dix/swaprep.c138
-rw-r--r--dix/swapreq.c134
-rw-r--r--dix/tables.c8
-rw-r--r--dix/window.c48
28 files changed, 379 insertions, 379 deletions
diff --git a/dix/atom.c b/dix/atom.c
index c968c1e5a..bcf212dee 100644
--- a/dix/atom.c
+++ b/dix/atom.c
@@ -166,7 +166,7 @@ NameForAtom(Atom atom)
return node->string;
}
-void
+_X_EXPORT void
AtomError(void)
{
FatalError("initializing atoms");
@@ -184,7 +184,7 @@ FreeAtom(NodePtr patom)
xfree(patom);
}
-void
+_X_EXPORT void
FreeAllAtoms(void)
{
if(atomRoot == (NodePtr)NULL)
@@ -196,7 +196,7 @@ FreeAllAtoms(void)
lastAtom = None;
}
-void
+_X_EXPORT void
InitAtoms(void)
{
FreeAllAtoms();
diff --git a/dix/colormap.c b/dix/colormap.c
index 8b1bad8a3..c8f4c71e1 100644
--- a/dix/colormap.c
+++ b/dix/colormap.c
@@ -420,7 +420,7 @@ CreateColormap (Colormap mid, ScreenPtr pScreen, VisualPtr pVisual,
*
* \param value must conform to DeleteType
*/
-int
+_X_EXPORT int
FreeColormap (pointer value, XID mid)
{
int i;
@@ -552,7 +552,7 @@ TellGainedMap (WindowPtr pwin, pointer value)
}
-int
+_X_EXPORT int
CopyColormapAndFree (Colormap mid, ColormapPtr pSrc, int client)
{
ColormapPtr pmap = (ColormapPtr) NULL;
@@ -1203,7 +1203,7 @@ FindColorInRootCmap (ColormapPtr pmap, EntryPtr pentFirst, int size,
* Starts looking at pentFirst + *pPixel, so if you want a specific pixel,
* load *pPixel with that value, otherwise set it to 0
*/
-int
+_X_EXPORT int
FindColor (ColormapPtr pmap, EntryPtr pentFirst, int size, xrgb *prgb,
Pixel *pPixel, int channel, int client,
ColorCompareProcPtr comp)
@@ -1548,7 +1548,7 @@ FreePixels(ColormapPtr pmap, int client)
* \param value must conform to DeleteType
* \unused fakeid
*/
-int
+_X_EXPORT int
FreeClientPixels (pointer value, XID fakeid)
{
ColormapPtr pmap;
@@ -1561,7 +1561,7 @@ FreeClientPixels (pointer value, XID fakeid)
return Success;
}
-int
+_X_EXPORT int
AllocColorCells (int client, ColormapPtr pmap, int colors, int planes,
Bool contig, Pixel *ppix, Pixel *masks)
{
@@ -1633,7 +1633,7 @@ AllocColorCells (int client, ColormapPtr pmap, int colors, int planes,
}
-int
+_X_EXPORT int
AllocColorPlanes (int client, ColormapPtr pmap, int colors,
int r, int g, int b, Bool contig, Pixel *pixels,
Pixel *prmask, Pixel *pgmask, Pixel *pbmask)
@@ -2667,7 +2667,7 @@ StoreColors (ColormapPtr pmap, int count, xColorItem *defs)
return (errVal);
}
-int
+_X_EXPORT int
IsMapInstalled(Colormap map, WindowPtr pWin)
{
Colormap *pmaps;
diff --git a/dix/cursor.c b/dix/cursor.c
index 81540fd89..9e2506ac1 100644
--- a/dix/cursor.c
+++ b/dix/cursor.c
@@ -166,7 +166,7 @@ CheckForEmptyMask(CursorBitsPtr bits)
* \param pmaskbits server-defined padding
* \param argb no padding
*/
-int
+_X_EXPORT int
AllocARGBCursor(unsigned char *psrcbits, unsigned char *pmaskbits,
CARD32 *argb, CursorMetricPtr cm,
unsigned foreRed, unsigned foreGreen, unsigned foreBlue,
@@ -280,7 +280,7 @@ AllocARGBCursor(unsigned char *psrcbits, unsigned char *pmaskbits,
return rc;
}
-int
+_X_EXPORT int
AllocGlyphCursor(Font source, unsigned sourceChar, Font mask, unsigned maskChar,
unsigned foreRed, unsigned foreGreen, unsigned foreBlue,
unsigned backRed, unsigned backGreen, unsigned backBlue,
@@ -515,7 +515,7 @@ AllocGlyphCursor(Font source, unsigned sourceChar, Font mask, unsigned maskChar,
* add the cursor to the resource table
*************************************************************/
-CursorPtr
+_X_EXPORT CursorPtr
CreateRootCursor(char *unused1, unsigned int unused2)
{
CursorPtr curs;
diff --git a/dix/devices.c b/dix/devices.c
index f85e875af..220b895aa 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -94,7 +94,7 @@ SOFTWARE.
*/
static int CoreDevicePrivateKeyIndex;
-DevPrivateKey CoreDevicePrivateKey = &CoreDevicePrivateKeyIndex;
+_X_EXPORT DevPrivateKey CoreDevicePrivateKey = &CoreDevicePrivateKeyIndex;
/* Used to sture classes currently not in use by an MD */
static int UnusedClassesPrivateKeyIndex;
DevPrivateKey UnusedClassesPrivateKey = &UnusedClassesPrivateKeyIndex;
@@ -184,7 +184,7 @@ NextFreePointerDevice(void)
* @param deviceProc Callback for device control function (switch dev on/off).
* @return The newly created device.
*/
-DeviceIntPtr
+_X_EXPORT DeviceIntPtr
AddInputDevice(ClientPtr client, DeviceProc deviceProc, Bool autoStart)
{
DeviceIntPtr dev, *prev; /* not a typo */
@@ -258,7 +258,7 @@ AddInputDevice(ClientPtr client, DeviceProc deviceProc, Bool autoStart)
* @param The device to be enabled.
* @return TRUE on success or FALSE otherwise.
*/
-Bool
+_X_EXPORT Bool
EnableDevice(DeviceIntPtr dev)
{
DeviceIntPtr *prev;
@@ -356,7 +356,7 @@ EnableDevice(DeviceIntPtr dev)
*
* @return TRUE on success or FALSE otherwise.
*/
-Bool
+_X_EXPORT Bool
DisableDevice(DeviceIntPtr dev)
{
DeviceIntPtr *prev, other;
@@ -433,7 +433,7 @@ DisableDevice(DeviceIntPtr dev)
*
* @return Success or an error code on failure.
*/
-int
+_X_EXPORT int
ActivateDevice(DeviceIntPtr dev)
{
int ret = Success;
@@ -598,7 +598,7 @@ CorePointerProc(DeviceIntPtr pDev, int what)
* Note that the server MUST have two core devices at all times, even if there
* is no physical device connected.
*/
-void
+_X_EXPORT void
InitCoreDevices(void)
{
if (AllocMasterDevice(serverClient, "Virtual core",
@@ -625,7 +625,7 @@ InitCoreDevices(void)
*
* @return Success or error code on failure.
*/
-int
+_X_EXPORT int
InitAndStartDevices()
{
DeviceIntPtr dev, next;
@@ -890,7 +890,7 @@ CloseDevice(DeviceIntPtr dev)
* Shut down all devices, free all resources, etc.
* Only useful if you're shutting down the server!
*/
-void
+_X_EXPORT void
CloseDownDevices(void)
{
DeviceIntPtr dev, next;
@@ -930,7 +930,7 @@ CloseDownDevices(void)
* Remove the cursor sprite for all devices. This needs to be done before any
* resources are freed or any device is deleted.
*/
-void
+_X_EXPORT void
UndisplayDevices()
{
DeviceIntPtr dev;
@@ -951,7 +951,7 @@ UndisplayDevices()
* dev->init is FALSE it means the client never received a DeviceAdded event,
* so let's not send a DeviceRemoved event either.
*/
-int
+_X_EXPORT int
RemoveDevice(DeviceIntPtr dev)
{
DeviceIntPtr prev,tmp,next;
@@ -1018,7 +1018,7 @@ RemoveDevice(DeviceIntPtr dev)
return ret;
}
-int
+_X_EXPORT int
NumMotionEvents(void)
{
/* only called to fill data in initial connection reply.
@@ -1026,19 +1026,19 @@ NumMotionEvents(void)
return inputInfo.pointer->valuator->numMotionEvents;
}
-void
+_X_EXPORT void
RegisterPointerDevice(DeviceIntPtr device)
{
RegisterOtherDevice(device);
}
-void
+_X_EXPORT void
RegisterKeyboardDevice(DeviceIntPtr device)
{
RegisterOtherDevice(device);
}
-int
+_X_EXPORT int
dixLookupDevice(DeviceIntPtr *pDev, int id, ClientPtr client, Mask access_mode)
{
DeviceIntPtr dev;
@@ -1062,7 +1062,7 @@ found:
return rc;
}
-void
+_X_EXPORT void
QueryMinMaxKeyCodes(KeyCode *minCode, KeyCode *maxCode)
{
if (inputInfo.keyboard) {
@@ -1071,7 +1071,7 @@ QueryMinMaxKeyCodes(KeyCode *minCode, KeyCode *maxCode)
}
}
-Bool
+_X_EXPORT Bool
SetKeySymsMap(KeySymsPtr dst, KeySymsPtr src)
{
int i, j;
@@ -1600,7 +1600,7 @@ SendMappingNotify(DeviceIntPtr pDev, unsigned request, unsigned firstKeyCode,
*
* @return TRUE if the device map is invalid, FALSE otherwise.
*/
-Bool
+_X_EXPORT Bool
BadDeviceMap(BYTE *buff, int length, unsigned low, unsigned high, XID *errval)
{
int i;
@@ -1617,7 +1617,7 @@ BadDeviceMap(BYTE *buff, int length, unsigned low, unsigned high, XID *errval)
return FALSE;
}
-Bool
+_X_EXPORT Bool
AllModifierKeysAreUp(dev, map1, per1, map2, per2)
DeviceIntPtr dev;
CARD8 *map1, *map2;
@@ -1987,7 +1987,7 @@ ProcGetPointerMapping(ClientPtr client)
return Success;
}
-void
+_X_EXPORT void
NoteLedState(DeviceIntPtr keybd, int led, Bool on)
{
KeybdCtrl *ctrl = &keybd->kbdfeed->ctrl;
@@ -2392,7 +2392,7 @@ ProcGetPointerControl(ClientPtr client)
return Success;
}
-void
+_X_EXPORT void
MaybeStopHint(DeviceIntPtr dev, ClientPtr client)
{
GrabPtr grab = dev->deviceGrab.grab;
@@ -2509,7 +2509,7 @@ ProcQueryKeymap(ClientPtr client)
* We don't allow multi-layer hierarchies right now. You can't attach a slave
* to another slave.
*/
-int
+_X_EXPORT int
AttachDevice(ClientPtr client, DeviceIntPtr dev, DeviceIntPtr master)
{
ScreenPtr screen;
@@ -2613,7 +2613,7 @@ GetPairedDevice(DeviceIntPtr dev)
* Only allocates the devices, you will need to call ActivateDevice() and
* EnableDevice() manually.
*/
-int
+_X_EXPORT int
AllocMasterDevice(ClientPtr client, char* name, DeviceIntPtr* ptr, DeviceIntPtr* keybd)
{
DeviceIntPtr pointer;
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 66f8f79ff..14d4a7e54 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -168,7 +168,7 @@ static ClientPtr grabClient;
static int grabState = GrabNone;
static long grabWaiters[mskcnt];
_X_EXPORT CallbackListPtr ServerGrabCallback = NULL;
-HWEventQueuePtr checkForInput[2];
+_X_EXPORT HWEventQueuePtr checkForInput[2];
extern int connBlockScreenStart;
static void KillAllClients(void);
@@ -197,7 +197,7 @@ 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;
@@ -242,11 +242,11 @@ UpdateCurrentTimeIf(void)
#define SMART_SCHEDULE_DEFAULT_INTERVAL 20 /* ms */
#define SMART_SCHEDULE_MAX_SLICE 200 /* ms */
-Bool SmartScheduleDisable = FALSE;
-long SmartScheduleSlice = SMART_SCHEDULE_DEFAULT_INTERVAL;
-long SmartScheduleInterval = SMART_SCHEDULE_DEFAULT_INTERVAL;
-long SmartScheduleMaxSlice = SMART_SCHEDULE_MAX_SLICE;
-long SmartScheduleTime;
+_X_EXPORT Bool SmartScheduleDisable = FALSE;
+_X_EXPORT long SmartScheduleSlice = SMART_SCHEDULE_DEFAULT_INTERVAL;
+_X_EXPORT long SmartScheduleInterval = SMART_SCHEDULE_DEFAULT_INTERVAL;
+_X_EXPORT long SmartScheduleMaxSlice = SMART_SCHEDULE_MAX_SLICE;
+_X_EXPORT long SmartScheduleTime;
static ClientPtr SmartLastClient;
static int SmartLastIndex[SMART_MAX_PRIORITY-SMART_MIN_PRIORITY+1];
@@ -1239,7 +1239,7 @@ ProcListFontsWithInfo(ClientPtr client)
*
* \param value must conform to DeleteType
*/
-int
+_X_EXPORT int
dixDestroyPixmap(pointer value, XID pid)
{
PixmapPtr pPixmap = (PixmapPtr)value;
@@ -3356,9 +3356,9 @@ InitProcVectors(void)
* then killed again, the client is really destroyed.
*********************/
-char dispatchExceptionAtReset = DE_RESET;
+_X_EXPORT char dispatchExceptionAtReset = DE_RESET;
-void
+_X_EXPORT void
CloseDownClient(ClientPtr client)
{
Bool really_close_down = client->clientGone ||
@@ -3458,7 +3458,7 @@ KillAllClients(void)
}
}
-void InitClient(ClientPtr client, int i, pointer ospriv)
+_X_EXPORT void InitClient(ClientPtr client, int i, pointer ospriv)
{
client->index = i;
client->sequence = 0;
@@ -3504,7 +3504,7 @@ void InitClient(ClientPtr client, int i, pointer ospriv)
* Returns NULL if there are no free clients.
*************************/
-ClientPtr NextAvailableClient(pointer ospriv)
+_X_EXPORT ClientPtr NextAvailableClient(pointer ospriv)
{
int i;
ClientPtr client;
@@ -3720,7 +3720,7 @@ SendErrorToClient(ClientPtr client, unsigned majorCode, unsigned minorCode,
WriteEventsToClient (client, 1, (xEvent *)&rep);
}
-void
+_X_EXPORT void
MarkClientException(ClientPtr client)
{
client->noClientException = -1;
diff --git a/dix/dixfonts.c b/dix/dixfonts.c
index 97352ba2d..57469bd44 100644
--- a/dix/dixfonts.c
+++ b/dix/dixfonts.c
@@ -130,7 +130,7 @@ LoadGlyphs(ClientPtr client, FontPtr pfont, unsigned nchars, int item_size,
/*
* adding RT_FONT prevents conflict with default cursor font
*/
-Bool
+_X_EXPORT Bool
SetDefaultFont(char *defaultfontname)
{
int err;
@@ -158,7 +158,7 @@ SetDefaultFont(char *defaultfontname)
* init_fpe() and free_fpe(), there shouldn't be any problem in using
* freed data.
*/
-void
+_X_EXPORT void
QueueFontWakeup(FontPathElementPtr fpe)
{
int i;
@@ -182,7 +182,7 @@ QueueFontWakeup(FontPathElementPtr fpe)
num_slept_fpes++;
}
-void
+_X_EXPORT void
RemoveFontWakeup(FontPathElementPtr fpe)
{
int i,
@@ -199,7 +199,7 @@ RemoveFontWakeup(FontPathElementPtr fpe)
}
}
-void
+_X_EXPORT void
FontWakeup(pointer data, int count, pointer LastSelectMask)
{
int i;
@@ -389,7 +389,7 @@ bail:
return TRUE;
}
-int
+_X_EXPORT int
OpenFont(ClientPtr client, XID fid, Mask flags, unsigned lenfname, char *pfontname)
{
OFclosurePtr c;
@@ -479,7 +479,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;
@@ -522,7 +522,7 @@ CloseFont(pointer value, XID fid)
*
* \param pReply caller must allocate this storage
*/
-void
+_X_EXPORT void
QueryFont(FontPtr pFont, xQueryFontReply *pReply, int nProtoCCIStructs)
{
FontPropPtr pFP;
@@ -840,7 +840,7 @@ bail:
return TRUE;
}
-int
+_X_EXPORT int
ListFonts(ClientPtr client, unsigned char *pattern, unsigned length,
unsigned max_names)
{
@@ -894,7 +894,7 @@ ListFonts(ClientPtr client, unsigned char *pattern, unsigned length,
return Success;
}
-int
+_X_EXPORT int
doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c)
{
FontPathElementPtr fpe;
@@ -1175,7 +1175,7 @@ badAlloc:
static XID clearGC[] = { CT_NONE };
#define clearGCmask (GCClipMask)
-int
+_X_EXPORT int
doPolyText(ClientPtr client, PTclosurePtr c)
{
FontPtr pFont = c->pGC->font, oldpFont;
@@ -1442,7 +1442,7 @@ bail:
return TRUE;
}
-int
+_X_EXPORT int
PolyText(ClientPtr client, DrawablePtr pDraw, GC *pGC, unsigned char *pElt,
unsigned char *endReq, int xorg, int yorg, int reqType, XID did)
{
@@ -1477,7 +1477,7 @@ PolyText(ClientPtr client, DrawablePtr pDraw, GC *pGC, unsigned char *pElt,
#undef TextEltHeader
#undef FontShiftSize
-int
+_X_EXPORT int
doImageText(ClientPtr client, ITclosurePtr c)
{
int err = Success, lgerr; /* err is in X error, not font error, space */
@@ -1598,7 +1598,7 @@ bail:
return TRUE;
}
-int
+_X_EXPORT int
ImageText(ClientPtr client, DrawablePtr pDraw, GC *pGC, int nChars,
unsigned char *data, int xorg, int yorg, int reqType, XID did)
{
@@ -1796,7 +1796,7 @@ bail:
}
/* XXX -- do we need to pass error down to each renderer? */
-int
+_X_EXPORT int
SetFontPath(ClientPtr client, int npaths, unsigned char *paths, int *error)
{
int err = XaceHook(XACE_SERVER_ACCESS, client, DixManageAccess);
@@ -1812,7 +1812,7 @@ SetFontPath(ClientPtr client, int npaths, unsigned char *paths, int *error)
return err;
}
-int
+_X_EXPORT int
SetDefaultFontPath(char *path)
{
unsigned char *cp,
@@ -1853,7 +1853,7 @@ SetDefaultFontPath(char *path)
return err;
}
-int
+_X_EXPORT int
GetFontPath(ClientPtr client, int *count, int *length, unsigned char **result)
{
int i;
@@ -1888,7 +1888,7 @@ GetFontPath(ClientPtr client, int *count, int *length, unsigned char **result)
return Success;
}
-void
+_X_EXPORT void
DeleteClientFontStuff(ClientPtr client)
{
int i;
@@ -1902,7 +1902,7 @@ DeleteClientFontStuff(ClientPtr client)
}
}
-void
+_X_EXPORT void
InitFonts (void)
{
patternCache = MakeFontPatternCache();
@@ -2003,7 +2003,7 @@ RegisterFPEFunctions(NameCheckFunc name_func,
return num_fpe_types++;
}
-void
+_X_EXPORT void
FreeFonts(void)
{
if (patternCache) {
diff --git a/dix/dixutils.c b/dix/dixutils.c
index 1dfb34651..6d7c5129f 100644
--- a/dix/dixutils.c
+++ b/dix/dixutils.c
@@ -175,7 +175,7 @@ CopyISOLatin1Lowered(unsigned char *dest, unsigned char *source, int length)
*dest = '\0';
}
-int
+_X_EXPORT int
CompareISOLatin1Lowered(unsigned char *s1, int s1len,
unsigned char *s2, int s2len)
{
@@ -276,7 +276,7 @@ bad:
return rc;
}
-int
+_X_EXPORT int
AlterSaveSetForClient(ClientPtr client, WindowPtr pWin, unsigned mode,
Bool toRoot, Bool map)
{
@@ -332,7 +332,7 @@ AlterSaveSetForClient(ClientPtr client, WindowPtr pWin, unsigned mode,
return(Success);
}
-void
+_X_EXPORT void
DeleteWindowFromAnySaveSet(WindowPtr pWin)
{
int i;
@@ -374,7 +374,7 @@ static Bool handlerDeleted;
* \param pTimeout DIX doesn't want to know how OS represents time
* \param pReadMask nor how it represents the det of descriptors
*/
-void
+_X_EXPORT void
BlockHandler(pointer pTimeout, pointer pReadmask)
{
int i, j;
@@ -408,7 +408,7 @@ BlockHandler(pointer pTimeout, pointer pReadmask)
* \param result 32 bits of undefined result from the wait
* \param pReadmask the resulting descriptor mask
*/
-void
+_X_EXPORT void
WakeupHandler(int result, pointer pReadmask)
{
int i, j;
@@ -492,7 +492,7 @@ RemoveBlockAndWakeupHandlers (BlockHandlerProcPtr blockHandler,
}
}
-void
+_X_EXPORT void
InitBlockAndWakeupHandlers (void)
{
xfree (handlers);
@@ -509,7 +509,7 @@ InitBlockAndWakeupHandlers (void)
WorkQueuePtr workQueue;
static WorkQueuePtr *workQueueLast = &workQueue;
-void
+_X_EXPORT void
ProcessWorkQueue(void)
{
WorkQueuePtr q, *p;
@@ -537,7 +537,7 @@ ProcessWorkQueue(void)
workQueueLast = p;
}
-void
+_X_EXPORT void
ProcessWorkQueueZombies(void)
{
WorkQueuePtr q, *p;
@@ -653,7 +653,7 @@ ClientWakeup (ClientPtr client)
}
}
-Bool
+_X_EXPORT Bool
ClientIsAsleep (ClientPtr client)
{
SleepQueuePtr q;
@@ -869,21 +869,21 @@ DeleteCallback(CallbackListPtr *pcbl, CallbackProcPtr callback, pointer data)
return _DeleteCallback(pcbl, callback, data);
}
-void
+_X_EXPORT void
CallCallbacks(CallbackListPtr *pcbl, pointer call_data)
{
if (!pcbl || !*pcbl) return;
_CallCallbacks(pcbl, call_data);
}
-void
+_X_EXPORT void
DeleteCallbackList(CallbackListPtr *pcbl)
{
if (!pcbl || !*pcbl) return;
_DeleteCallbackList(pcbl);
}
-void
+_X_EXPORT void
InitCallbackManager(void)
{
int i;
diff --git a/dix/events.c b/dix/events.c
index bfc84948d..3f57a7893 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -215,7 +215,7 @@ _X_EXPORT CallbackListPtr DeviceEventCallback;
#define DNPMCOUNT 8
-Mask DontPropagateMasks[DNPMCOUNT];
+_X_EXPORT Mask DontPropagateMasks[DNPMCOUNT];
static int DontPropagateRefCnts[DNPMCOUNT];
@@ -757,7 +757,7 @@ XineramaChangeToCursor(DeviceIntPtr pDev, CursorPtr cursor)
#endif /* PANORAMIX */
-void
+_X_EXPORT void
SetMaskForEvent(int deviceid, Mask mask, int event)
{
int coretype;
@@ -781,7 +781,7 @@ SetCriticalEvent(int event)
criticalEvents[event >> 3] |= 1 << (event & 7);
}
-void
+_X_EXPORT void
ConfineToShape(DeviceIntPtr pDev, RegionPtr shape, int *px, int *py)
{
BoxRec box;
@@ -988,7 +988,7 @@ ChangeToCursor(DeviceIntPtr pDev, CursorPtr cursor)
/**
* @returns true if b is a descendent of a
*/
-Bool
+_X_EXPORT Bool
IsParent(WindowPtr a, WindowPtr b)
{
for (b = b->parent; b; b = b->parent)
@@ -1114,7 +1114,7 @@ MonthChangedOrBadTime(xEvent *xE)
currentTime.milliseconds = (xE)->u.keyButtonPointer.time; \
lastDeviceEventTime = currentTime; }
-void
+_X_EXPORT void
NoticeEventTime(xEvent *xE)
{
if (!syncEvents.playingEvents)
@@ -1130,7 +1130,7 @@ NoticeEventTime(xEvent *xE)
* Instead of delivering the events to the client, the event is tacked onto a
* linked list for later delivery.
*/
-void
+_X_EXPORT void
EnqueueEvent(xEvent *xE, DeviceIntPtr device, int count)
{
QdEventPtr tail = *syncEvents.pendtail;
@@ -1400,7 +1400,7 @@ playmore:
}
#ifdef RANDR
-void
+_X_EXPORT void
ScreenRestructured (ScreenPtr pScreen)
{
GrabPtr grab;
@@ -1526,7 +1526,7 @@ RestoreOldMaster(DeviceIntPtr dev)
* @param autoGrab True if the grab was caused by a button down event and not
* explicitely by a client.
*/
-void
+_X_EXPORT void
ActivatePointerGrab(DeviceIntPtr mouse, GrabPtr grab,
TimeStamp time, Bool autoGrab)
{
@@ -1572,7 +1572,7 @@ ActivatePointerGrab(DeviceIntPtr mouse, GrabPtr grab,
*
* Extension devices are set up for ActivateKeyboardGrab().
*/
-void
+_X_EXPORT void
DeactivatePointerGrab(DeviceIntPtr mouse)
{
GrabPtr grab = mouse->deviceGrab.grab;
@@ -1615,7 +1615,7 @@ DeactivatePointerGrab(DeviceIntPtr mouse)
*
* Extension devices have ActivateKeyboardGrab() set as their grabbing proc.
*/
-void
+_X_EXPORT void
ActivateKeyboardGrab(DeviceIntPtr keybd, GrabPtr grab, TimeStamp time, Bool passive)
{
GrabInfoPtr grabinfo = &keybd->deviceGrab;
@@ -1652,7 +1652,7 @@ ActivateKeyboardGrab(DeviceIntPtr keybd, GrabPtr grab, TimeStamp time, Bool pass
/**
* Delete keyboard grab for the given device.
*/
-void
+_X_EXPORT void
DeactivateKeyboardGrab(DeviceIntPtr keybd)
{
GrabPtr grab = keybd->deviceGrab.grab;
@@ -1687,7 +1687,7 @@ DeactivateKeyboardGrab(DeviceIntPtr keybd)
ComputeFreezes();
}
-void
+_X_EXPORT void
AllowSome(ClientPtr client,
TimeStamp time,
DeviceIntPtr thisDev,
@@ -1817,7 +1817,7 @@ AllowSome(ClientPtr client,
*
* Release some events from a frozen device.
*/
-int
+_X_EXPORT int
ProcAllowEvents(ClientPtr client)
{
TimeStamp time;
@@ -1867,7 +1867,7 @@ ProcAllowEvents(ClientPtr client)
/**
* Deactivate grabs from any device that has been grabbed by the client.
*/
-void
+_X_EXPORT void
ReleaseActiveGrabs(ClientPtr client)
{
DeviceIntPtr dev;
@@ -2013,7 +2013,7 @@ TryClientEvents (ClientPtr client, DeviceIntPtr dev, xEvent *pEvents,
*
* @return Number of events delivered to various clients.
*/
-int
+_X_EXPORT int
DeliverEventsToWindow(DeviceIntPtr pDev, WindowPtr pWin, xEvent
*pEvents, int count, Mask filter, GrabPtr grab, int mskidx)
{
@@ -2225,7 +2225,7 @@ XineramaTryClientEventsResult(
* @param filter Mask based on event type.
* @param dontClient Don't deliver to the dontClient.
*/
-int
+_X_EXPORT int
MaybeDeliverEventsToClient(WindowPtr pWin, xEvent *pEvents,
int count, Mask filter, ClientPtr dontClient)
{
@@ -2355,7 +2355,7 @@ FixUpEventFromWindow(
* @see DeliverGrabbedEvent
* @see DeliverFocusedEvent
*/
-int
+_X_EXPORT int
DeliverDeviceEvents(WindowPtr pWin, xEvent *xE, GrabPtr grab,
WindowPtr stopAt, DeviceIntPtr dev, int count)
{
@@ -2613,7 +2613,7 @@ XYToWindow(DeviceIntPtr pDev, int x, int y)
*
* @return TRUE if the sprite has moved or FALSE otherwise.
*/
-Bool
+_X_EXPORT Bool
CheckMotion(xEvent *xE, DeviceIntPtr pDev)
{
INT16 *rootX, *rootY;
@@ -2710,7 +2710,7 @@ CheckMotion(xEvent *xE, DeviceIntPtr pDev)
* Windows have restructured, we need to update the sprite position and the
* sprite's cursor.
*/
-void
+_X_EXPORT void
WindowsRestructured(void)
{
DeviceIntPtr pDev = inputInfo.devices;
@@ -2728,7 +2728,7 @@ WindowsRestructured(void)
* other than 0,0, the information in the private sprite structure must
* be updated accordingly, or XYToWindow (and other routines) will not
* compute correctly. */
-void ReinitializeRootWindow(WindowPtr win, int xoff, int yoff)
+_X_EXPORT void ReinitializeRootWindow(WindowPtr win, int xoff, int yoff)
{
GrabPtr grab;
DeviceIntPtr pDev;
@@ -2782,7 +2782,7 @@ void ReinitializeRootWindow(WindowPtr win, int xoff, int yoff)
*
* Should delete this now? -ds
*/
-void
+_X_EXPORT void
DefineInitialRootWindow(WindowPtr win)
{
}
@@ -2802,7 +2802,7 @@ DefineInitialRootWindow(WindowPtr win)
* @param pWin The window where to generate the sprite in.
*
*/
-void
+_X_EXPORT void
InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
{
SpritePtr pSprite;
@@ -2918,7 +2918,7 @@ InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
* reset the mouse pointer position.
* @param win must be the new pScreen we are switching to.
*/
-void
+_X_EXPORT void
UpdateSpriteForScreen(DeviceIntPtr pDev, ScreenPtr pScreen)
{
SpritePtr pSprite = NULL;
@@ -2970,7 +2970,7 @@ UpdateSpriteForScreen(DeviceIntPtr pDev, ScreenPtr pScreen)
* between the one the pointer is in and the one that the last cursor was
* instantiated from.
*/
-void
+_X_EXPORT void
WindowHasNewCursor(WindowPtr pWin)
{
DeviceIntPtr pDev;
@@ -3139,7 +3139,7 @@ XineramaWarpPointer(ClientPtr client)
* Server-side protocol handling for WarpPointer request.
* Warps the cursor position to the coordinates given in the request.
*/
-int
+_X_EXPORT int
ProcWarpPointer(ClientPtr client)
{
WindowPtr dest = NULL;
@@ -3438,7 +3438,7 @@ CheckPassiveGrabsOnWindow(
* @return TRUE if a grab has been activated or false otherwise.
*/
-Bool
+_X_EXPORT Bool
CheckDeviceGrabs(DeviceIntPtr device, xEvent *xE,
int checkFirst, int count)
{
@@ -3512,7 +3512,7 @@ CheckDeviceGrabs(DeviceIntPtr device, xEvent *xE,
* @param window Window underneath the sprite.
* @param count number of events in xE.
*/
-void
+_X_EXPORT void
DeliverFocusedEvent(DeviceIntPtr keybd, xEvent *xE, WindowPtr window, int count)
{
DeviceIntPtr pointer;
@@ -3570,7 +3570,7 @@ DeliverFocusedEvent(DeviceIntPtr keybd, xEvent *xE, WindowPtr window, int count)
*
* @param deactivateGrab True if the device's grab should be deactivated.
*/
-void
+_X_EXPORT void
DeliverGrabbedEvent(xEvent *xE, DeviceIntPtr thisDev,
Bool deactivateGrab, int count)
{
@@ -3742,7 +3742,7 @@ DeliverGrabbedEvent(xEvent *xE, DeviceIntPtr thisDev,
* @param keybd The device that caused an event.
* @param count Number of elements in xE.
*/
-void
+_X_EXPORT void
#ifdef XKB
CoreProcessKeyboardEvent (xEvent *xE, DeviceIntPtr keybd, int count)
#else
@@ -3823,7 +3823,7 @@ ProcessKeyboardEvent (xEvent *xE, DeviceIntPtr keybd, int count)
this is only used when the pressing of keys does not cause
the device's processInputProc to be called, as in for example Mouse Keys.
*/
-void
+_X_EXPORT void
FixKeyState (xEvent *xE, DeviceIntPtr keybd)
{
int key, bit;
@@ -3862,7 +3862,7 @@ FixKeyState (xEvent *xE, DeviceIntPtr keybd)
* @param mouse The device that caused an event.
* @param count Number of elements in xE.
*/
-void
+_X_EXPORT void
#ifdef XKB
CoreProcessPointerEvent (xEvent *xE, DeviceIntPtr mouse, int count)
#else
@@ -3969,7 +3969,7 @@ ProcessPointerEvent (xEvent *xE, DeviceIntPtr mouse, int count)
*
* Traverses to siblings and parents of the window.
*/
-void
+_X_EXPORT void
RecalculateDeliverableEvents(pWin)
WindowPtr pWin;
{
@@ -4010,7 +4010,7 @@ RecalculateDeliverableEvents(pWin)
*
* \param value must conform to DeleteType
*/
-int
+_X_EXPORT int
OtherClientGone(pointer value, XID id)
{
OtherClientsPtr other, prev;
@@ -4039,7 +4039,7 @@ OtherClientGone(pointer value, XID id)
return -1; /* make compiler happy */
}
-int
+_X_EXPORT int
EventSelectForWindow(WindowPtr pWin, ClientPtr client, Mask mask)
{
Mask check;
@@ -4123,7 +4123,7 @@ maskSet:
return Success;
}
-int
+_X_EXPORT int
EventSuppressForWindow(WindowPtr pWin, ClientPtr client,
Mask mask, Bool *checkOptional)
{
@@ -4478,7 +4478,7 @@ FocusOutEvents(
FocusEvent(dev, FocusOut, mode, detail, ancestor);
}
-void
+_X_EXPORT void
DoFocusEvents(DeviceIntPtr dev, WindowPtr fromWin, WindowPtr toWin, int mode)
{
int out, in; /* for holding details for to/from
@@ -4622,7 +4622,7 @@ DoFocusEvents(DeviceIntPtr dev, WindowPtr fromWin, WindowPtr toWin, int mode)
* @param ctime Specifies the time.
* @param followOK True if pointer is allowed to follow the keyboard.
*/
-int
+_X_EXPORT int
SetInputFocus(
ClientPtr client,
DeviceIntPtr dev,
@@ -4714,7 +4714,7 @@ SetInputFocus(
*
* Sets the input focus for the virtual core keyboard.
*/
-int
+_X_EXPORT int
ProcSetInputFocus(client)
ClientPtr client;
{
@@ -4733,7 +4733,7 @@ ProcSetInputFocus(client)
* Sends the current input focus for the client's keyboard back to the
* client.
*/
-int
+_X_EXPORT int
ProcGetInputFocus(ClientPtr client)
{
DeviceIntPtr kbd = PickKeyboard(client);
@@ -4766,7 +4766,7 @@ ProcGetInputFocus(ClientPtr client)
* Sets an active grab on the client's ClientPointer and returns success
* status to client.
*/
-int
+_X_EXPORT int
ProcGrabPointer(ClientPtr client)
{
xGrabPointerReply rep;
@@ -4900,7 +4900,7 @@ ProcGrabPointer(ClientPtr client)
* Changes properties of the grab hold by the client. If the client does not
* hold an active grab on the device, nothing happens.
*/
-int
+_X_EXPORT int
ProcChangeActivePointerGrab(ClientPtr client)
{
DeviceIntPtr device;
@@ -4955,7 +4955,7 @@ ProcChangeActivePointerGrab(ClientPtr client)
*
* Deletes a pointer grab on a device the client has grabbed.
*/
-int
+_X_EXPORT int
ProcUngrabPointer(ClientPtr client)
{
DeviceIntPtr device = PickPointer(client);
@@ -4993,7 +4993,7 @@ ProcUngrabPointer(ClientPtr client)
*
* @returns Success or BadValue.
*/
-int
+_X_EXPORT int
GrabDevice(ClientPtr client, DeviceIntPtr dev,
unsigned this_mode, unsigned other_mode, Window grabWindow,
unsigned ownerEvents, Time ctime, Mask mask, CARD8 *status,
@@ -5074,7 +5074,7 @@ GrabDevice(ClientPtr client, DeviceIntPtr dev,
*
* Grabs the client's keyboard and returns success status to client.
*/
-int
+_X_EXPORT int
ProcGrabKeyboard(ClientPtr client)
{
xGrabKeyboardReply rep;
@@ -5103,7 +5103,7 @@ ProcGrabKeyboard(ClientPtr client)
*
* Deletes a possible grab on the client's keyboard.
*/
-int
+_X_EXPORT int
ProcUngrabKeyboard(ClientPtr client)
{
DeviceIntPtr device = PickKeyboard(client);
@@ -5130,7 +5130,7 @@ ProcUngrabKeyboard(ClientPtr client)
* Returns the current state and position of the client's ClientPointer to the
* client.
*/
-int
+_X_EXPORT int
ProcQueryPointer(ClientPtr client)
{
xQueryPointerReply rep;
@@ -5198,7 +5198,7 @@ ProcQueryPointer(ClientPtr client)
* Initializes the device list and the DIX sprite to sane values. Allocates
* trace memory used for quick window traversal.
*/
-void
+_X_EXPORT void
InitEvents(void)
{
int i;
@@ -5242,7 +5242,7 @@ InitEvents(void)
FatalError("[dix] Failed to allocate input event list.\n");
}
-void
+_X_EXPORT void
CloseDownEvents(void)
{
int len;
@@ -5258,7 +5258,7 @@ CloseDownEvents(void)
*
* Locates the window to send the event to and forwards the event.
*/
-int
+_X_EXPORT int
ProcSendEvent(ClientPtr client)
{
WindowPtr pWin;
@@ -5355,7 +5355,7 @@ ProcSendEvent(ClientPtr client)
* Deletes a passive grab for the given key. Works on the
* client's keyboard.
*/
-int
+_X_EXPORT int
ProcUngrabKey(ClientPtr client)
{
REQUEST(xUngrabKeyReq);
@@ -5404,7 +5404,7 @@ ProcUngrabKey(ClientPtr client)
* Creates a grab for the client's keyboard and adds it to the list of passive
* grabs.
*/
-int
+_X_EXPORT int
ProcGrabKey(ClientPtr client)
{
WindowPtr pWin;
@@ -5465,7 +5465,7 @@ ProcGrabKey(ClientPtr client)
* Creates a grab for the client's ClientPointer and adds it as a passive grab
* to the list.
*/
-int
+_X_EXPORT int
ProcGrabButton(ClientPtr client)
{
WindowPtr pWin, confineTo;
@@ -5600,7 +5600,7 @@ ProcUngrabButton(ClientPtr client)
* @param freeResources True if resources associated with the window should be
* deleted.
*/
-void
+_X_EXPORT void
DeleteWindowFromAnyEvents(WindowPtr pWin, Bool freeResources)
{
WindowPtr parent;
@@ -5741,7 +5741,7 @@ CheckCursorConfinement(WindowPtr pWin)
}
}
-Mask
+_X_EXPORT Mask
EventMaskForClient(WindowPtr pWin, ClientPtr client)
{
OtherClientsPtr other;
@@ -5759,7 +5759,7 @@ EventMaskForClient(WindowPtr pWin, ClientPtr client)
/**
* Server-side protocol handling for RecolorCursor request.
*/
-int
+_X_EXPORT int
ProcRecolorCursor(ClientPtr client)
{
CursorPtr pCursor;
@@ -6026,7 +6026,7 @@ PickKeyboard(ClientPtr client)
* Return true if a core event from the device would interfere and should not
* be delivered.
*/
-Bool
+_X_EXPORT Bool
IsInterferingGrab(ClientPtr client, DeviceIntPtr dev, xEvent* event)
{
DeviceIntPtr it = inputInfo.devices;
@@ -6152,7 +6152,7 @@ ExtGrabDevice(ClientPtr client,
/*
* @return Zero if no devices has focus on the window, non-zero otherwise.
*/
-int
+_X_EXPORT int
FocusSemaphoresIsset(WindowPtr win)
{
int set = 0;
diff --git a/dix/extension.c b/dix/extension.c
index 3070f4da1..a7a8547d0 100644
--- a/dix/extension.c
+++ b/dix/extension.c
@@ -207,7 +207,7 @@ CheckExtension(const char *extname)
/*
* Added as part of Xace.
*/
-ExtensionEntry *
+_X_EXPORT ExtensionEntry *
GetExtensionEntry(int major)
{
if (major < EXTENSION_BASE)
@@ -238,7 +238,7 @@ MinorOpcodeOfRequest(ClientPtr client)
return (*extensions[major]->MinorOpcode)(client);
}
-void
+_X_EXPORT void
CloseDownExtensions(void)
{
int i,j;
diff --git a/dix/ffs.c b/dix/ffs.c
index d0bd3e507..24d3d2df6 100644
--- a/dix/ffs.c
+++ b/dix/ffs.c
@@ -34,7 +34,7 @@ The Open Group.
#include "dix.h"
-int
+_X_EXPORT int
ffs(int i)
{
int j;
diff --git a/dix/gc.c b/dix/gc.c
index b9256940d..b9073d5ae 100644
--- a/dix/gc.c
+++ b/dix/gc.c
@@ -956,7 +956,7 @@ CreateScratchGC(ScreenPtr pScreen, unsigned depth)
return pGC;
}
-void
+_X_EXPORT void
FreeGCperDepth(int screenNum)
{
int i;
@@ -972,7 +972,7 @@ FreeGCperDepth(int screenNum)
}
-Bool
+_X_EXPORT Bool
CreateGCperDepth(int screenNum)
{
int i;
@@ -1005,7 +1005,7 @@ CreateGCperDepth(int screenNum)
return TRUE;
}
-Bool
+_X_EXPORT Bool
CreateDefaultStipple(int screenNum)
{
ScreenPtr pScreen;
@@ -1042,14 +1042,14 @@ CreateDefaultStipple(int screenNum)
return TRUE;
}
-void
+_X_EXPORT void
FreeDefaultStipple(int screenNum)
{
ScreenPtr pScreen = screenInfo.screens[screenNum];
(*pScreen->DestroyPixmap)(pScreen->PixmapPerDepth[0]);
}
-int
+_X_EXPORT int
SetDashes(GCPtr pGC, unsigned offset, unsigned ndash, unsigned char *pdash)
{
long i;
@@ -1155,7 +1155,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)
{
diff --git a/dix/getevents.c b/dix/getevents.c
index 620ce937d..3d004920b 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -73,8 +73,8 @@
* DDX. The DDX is expected to call GetEventList() and then pass the list into
* Get{Pointer|Keyboard}Events.
*/
-EventListPtr InputEventList = NULL;
-int InputEventListLen = 0;
+_X_EXPORT EventListPtr InputEventList = NULL;
+_X_EXPORT int InputEventListLen = 0;
_X_EXPORT int
GetEventList(EventListPtr* list)
@@ -117,7 +117,7 @@ key_autorepeats(DeviceIntPtr pDev, int key_code)
(1 << (key_code & 7)));
}
-void
+_X_EXPORT void
CreateClassesChangedEvent(EventList* event,
DeviceIntPtr master,
DeviceIntPtr slave)
@@ -903,7 +903,7 @@ GetKeyboardValuatorEvents(EventList *events, DeviceIntPtr pDev, int type,
*
* @param num_events Number of elements in list.
*/
-EventListPtr
+_X_EXPORT EventListPtr
InitEventList(int num_events)
{
EventListPtr events;
@@ -1135,7 +1135,7 @@ GetProximityEvents(EventList *events, DeviceIntPtr pDev, int type,
* Used in cursor functions, e.g. when cursor confinement changes, and we need
* to shift the pointer to get it inside the new bounds.
*/
-void
+_X_EXPORT void
PostSyntheticMotion(DeviceIntPtr pDev,
int x,
int y,
diff --git a/dix/globals.c b/dix/globals.c
index 973dc43c3..a60b9e9d5 100644
--- a/dix/globals.c
+++ b/dix/globals.c
@@ -62,7 +62,7 @@ SOFTWARE.
#include "os.h"
_X_EXPORT ScreenInfo screenInfo;
-KeybdCtrl defaultKeyboardControl = {
+_X_EXPORT KeybdCtrl defaultKeyboardControl = {
DEFAULT_KEYBOARD_CLICK,
DEFAULT_BELL,
DEFAULT_BELL_PITCH,
@@ -72,7 +72,7 @@ KeybdCtrl defaultKeyboardControl = {
DEFAULT_LEDS,
0};
-PtrCtrl defaultPointerControl = {
+_X_EXPORT PtrCtrl defaultPointerControl = {
DEFAULT_PTR_NUMERATOR,
DEFAULT_PTR_DENOMINATOR,
DEFAULT_PTR_THRESHOLD,
@@ -90,9 +90,9 @@ _X_EXPORT unsigned long serverGeneration = 0;
/* these next four are initialized in main.c */
_X_EXPORT CARD32 ScreenSaverTime;
-CARD32 ScreenSaverInterval;
+_X_EXPORT CARD32 ScreenSaverInterval;
_X_EXPORT int ScreenSaverBlanking;
-int ScreenSaverAllowExposures;
+_X_EXPORT int ScreenSaverAllowExposures;
#ifdef DPMSExtension
# ifndef DEFAULT_STANDBY_TIME
@@ -107,11 +107,11 @@ int ScreenSaverAllowExposures;
# ifndef DEFAULT_DPMS_ENABLED
# define DEFAULT_DPMS_ENABLED TRUE
# endif
-CARD32 defaultDPMSStandbyTime = DEFAULT_STANDBY_TIME;
-CARD32 defaultDPMSSuspendTime = DEFAULT_SUSPEND_TIME;
-CARD32 defaultDPMSOffTime = DEFAULT_OFF_TIME;
+_X_EXPORT CARD32 defaultDPMSStandbyTime = DEFAULT_STANDBY_TIME;
+_X_EXPORT CARD32 defaultDPMSSuspendTime = DEFAULT_SUSPEND_TIME;
+_X_EXPORT CARD32 defaultDPMSOffTime = DEFAULT_OFF_TIME;
_X_EXPORT CARD16 DPMSPowerLevel = 0;
-Bool defaultDPMSEnabled = DEFAULT_DPMS_ENABLED;
+_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;
@@ -121,28 +121,28 @@ _X_EXPORT CARD32 DPMSOffTime;
_X_EXPORT Bool DPMSEnabled;
#endif
-CARD32 defaultScreenSaverTime = DEFAULT_SCREEN_SAVER_TIME;
-CARD32 defaultScreenSaverInterval = DEFAULT_SCREEN_SAVER_INTERVAL;
-int defaultScreenSaverBlanking = DEFAULT_SCREEN_SAVER_BLANKING;
-int defaultScreenSaverAllowExposures = DEFAULT_SCREEN_SAVER_EXPOSURES;
+_X_EXPORT CARD32 defaultScreenSaverTime = DEFAULT_SCREEN_SAVER_TIME;
+_X_EXPORT CARD32 defaultScreenSaverInterval = DEFAULT_SCREEN_SAVER_INTERVAL;
+_X_EXPORT int defaultScreenSaverBlanking = DEFAULT_SCREEN_SAVER_BLANKING;
+_X_EXPORT int defaultScreenSaverAllowExposures = DEFAULT_SCREEN_SAVER_EXPOSURES;
#ifndef NOLOGOHACK
-int logoScreenSaver = DEFAULT_LOGO_SCREEN_SAVER;
+_X_EXPORT int logoScreenSaver = DEFAULT_LOGO_SCREEN_SAVER;
#endif
#ifdef SCREENSAVER
-Bool screenSaverSuspended = FALSE;
+_X_EXPORT Bool screenSaverSuspended = FALSE;
#endif
-char *defaultFontPath = COMPILEDDEFAULTFONTPATH;
-char *defaultTextFont = COMPILEDDEFAULTFONT;
-char *defaultCursorFont = COMPILEDCURSORFONT;
+_X_EXPORT char *defaultFontPath = COMPILEDDEFAULTFONTPATH;
+_X_EXPORT char *defaultTextFont = COMPILEDDEFAULTFONT;
+_X_EXPORT char *defaultCursorFont = COMPILEDCURSORFONT;
FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in
every compilation of dix code */
-CursorPtr rootCursor;
-Bool party_like_its_1989 = FALSE;
-Bool whiteRoot = FALSE;
+_X_EXPORT CursorPtr rootCursor;
+_X_EXPORT Bool party_like_its_1989 = FALSE;
+_X_EXPORT Bool whiteRoot = FALSE;
-int cursorScreenDevPriv[MAXSCREENS];
+_X_EXPORT int cursorScreenDevPriv[MAXSCREENS];
_X_EXPORT TimeStamp currentTime;
_X_EXPORT TimeStamp lastDeviceEventTime;
@@ -151,8 +151,8 @@ _X_EXPORT int defaultColorVisualClass = -1;
_X_EXPORT int monitorResolution = 0;
_X_EXPORT char *display;
-char *ConnectionInfo;
+_X_EXPORT char *ConnectionInfo;
-CARD32 TimeOutValue = DEFAULT_TIMEOUT * MILLI_PER_SECOND;
+_X_EXPORT CARD32 TimeOutValue = DEFAULT_TIMEOUT * MILLI_PER_SECOND;
-DDXPointRec dixScreenOrigins[MAXSCREENS];
+_X_EXPORT DDXPointRec dixScreenOrigins[MAXSCREENS];
diff --git a/dix/glyphcurs.c b/dix/glyphcurs.c
index f74b13730..c2799a654 100644
--- a/dix/glyphcurs.c
+++ b/dix/glyphcurs.c
@@ -73,7 +73,7 @@ the first one we find.
cursor metrics.
*/
-int
+_X_EXPORT int
ServerBitsFromGlyph(FontPtr pfont, unsigned ch, CursorMetricPtr cm, unsigned char **ppbits)
{
ScreenPtr pScreen;
@@ -138,7 +138,7 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, CursorMetricPtr cm, unsigned cha
}
-Bool
+_X_EXPORT Bool
CursorMetricsFromGlyph(FontPtr pfont, unsigned ch, CursorMetricPtr cm)
{
CharInfoPtr pci;
diff --git a/dix/grabs.c b/dix/grabs.c
index b372d8f1b..458fc4ce6 100644
--- a/dix/grabs.c
+++ b/dix/grabs.c
@@ -67,7 +67,7 @@ SOFTWARE.
#define BITCLEAR(buf, i) MASKWORD(buf, i) &= ~BITMASK(i)
#define GETBIT(buf, i) (MASKWORD(buf, i) & BITMASK(i))
-GrabPtr
+_X_EXPORT GrabPtr
CreateGrab(
int client,
DeviceIntPtr device,
@@ -128,7 +128,7 @@ FreeGrab(GrabPtr pGrab)
xfree(pGrab);
}
-int
+_X_EXPORT int
DeletePassiveGrab(pointer value, XID id)
{
GrabPtr g, prev;
@@ -254,7 +254,7 @@ GrabSupersedesSecond(GrabPtr pFirstGrab, GrabPtr pSecondGrab)
* ignored.
* @return TRUE if the grabs match or FALSE otherwise.
*/
-Bool
+_X_EXPORT Bool
GrabMatchesSecond(GrabPtr pFirstGrab, GrabPtr pSecondGrab, Bool ignoreDevice)
{
if (!ignoreDevice &&
@@ -324,7 +324,7 @@ GrabsAreIdentical(GrabPtr pFirstGrab, GrabPtr pSecondGrab)
*
* @return Success or X error code on failure.
*/
-int
+_X_EXPORT int
AddPassiveGrabToList(ClientPtr client, GrabPtr pGrab)
{
GrabPtr grab;
@@ -376,7 +376,7 @@ AddPassiveGrabToList(ClientPtr client, GrabPtr pGrab)
* if any allocation fails
*/
-Bool
+_X_EXPORT Bool
DeletePassiveGrabFromList(GrabPtr pMinuendGrab)
{
GrabPtr grab;
diff --git a/dix/initatoms.c b/dix/initatoms.c
index de101bd0f..bd4249d0f 100644
--- a/dix/initatoms.c
+++ b/dix/initatoms.c
@@ -11,7 +11,7 @@
#include <X11/Xatom.h>
#include "misc.h"
#include "dix.h"
-void MakePredeclaredAtoms(void)
+_X_EXPORT void MakePredeclaredAtoms(void)
{
if (MakeAtom("PRIMARY", 7, 1) != XA_PRIMARY) AtomError();
if (MakeAtom("SECONDARY", 9, 1) != XA_SECONDARY) AtomError();
diff --git a/dix/main.c b/dix/main.c
index ee2e10db5..1b7a9914d 100644
--- a/dix/main.c
+++ b/dix/main.c
@@ -144,7 +144,7 @@ NotImplemented(xEvent *from, xEvent *to)
* Dummy entry for ReplySwapVector[]
*/
-void
+_X_EXPORT void
ReplyNotSwappd(
ClientPtr pClient ,
int size ,
@@ -446,13 +446,13 @@ int main(int argc, char *argv[], char *envp[])
static int VendorRelease = VENDOR_RELEASE;
static char *VendorString = VENDOR_NAME;
-void
+_X_EXPORT void
SetVendorRelease(int release)
{
VendorRelease = release;
}
-void
+_X_EXPORT void
SetVendorString(char *string)
{
VendorString = string;
@@ -609,7 +609,7 @@ with its screen number, a pointer to its ScreenRec, argc, and argv.
*/
-int
+_X_EXPORT int
AddScreen(
Bool (* pfnInit)(
int /*index*/,
diff --git a/dix/pixmap.c b/dix/pixmap.c
index 82e388cf3..7ab868113 100644
--- a/dix/pixmap.c
+++ b/dix/pixmap.c
@@ -88,7 +88,7 @@ FreeScratchPixmapHeader(PixmapPtr pPixmap)
}
-Bool
+_X_EXPORT Bool
CreateScratchPixmapsForScreen(int scrnum)
{
/* let it be created on first use */
@@ -97,7 +97,7 @@ CreateScratchPixmapsForScreen(int scrnum)
}
-void
+_X_EXPORT void
FreeScratchPixmapsForScreen(int scrnum)
{
FreeScratchPixmapHeader(screenInfo.screens[scrnum]->pScratchPixmap);
diff --git a/dix/privates.c b/dix/privates.c
index ca03317bf..0e8c9ef72 100644
--- a/dix/privates.c
+++ b/dix/privates.c
@@ -295,7 +295,7 @@ dixLookupPrivateOffset(RESTYPE type)
return offsets[type];
}
-int
+_X_EXPORT int
dixResetPrivates(void)
{
int i;
diff --git a/dix/property.c b/dix/property.c
index 7149f7c8c..150ae76a4 100644
--- a/dix/property.c
+++ b/dix/property.c
@@ -370,7 +370,7 @@ ChangeWindowProperty(WindowPtr pWin, Atom property, Atom type, int format,
mode, len, value, sendevent);
}
-int
+_X_EXPORT int
DeleteProperty(ClientPtr client, WindowPtr pWin, Atom propName)
{
PropertyPtr pProp, prevProp;
@@ -401,7 +401,7 @@ DeleteProperty(ClientPtr client, WindowPtr pWin, Atom propName)
return rc;
}
-void
+_X_EXPORT void
DeleteAllWindowProperties(WindowPtr pWin)
{
PropertyPtr pProp, pNextProp;
diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c
index e9d4e882f..9ae2b7282 100644
--- a/dix/ptrveloc.c
+++ b/dix/ptrveloc.c
@@ -93,7 +93,7 @@ SimpleSmoothProfile(DeviceVelocityPtr pVel, float velocity,
/**
* Init struct so it should match the average case
*/
-void
+_X_EXPORT void
InitVelocityData(DeviceVelocityPtr s)
{
memset(s, 0, sizeof(DeviceVelocityRec));
@@ -123,7 +123,7 @@ FreeVelocityData(DeviceVelocityPtr s){
/*
* dix uninit helper, called through scheme
*/
-void
+_X_EXPORT void
AccelerationDefaultCleanup(DeviceIntPtr pDev)
{
/*sanity check*/
@@ -149,7 +149,7 @@ and is being coupled to account for fast-changing input, or you have 'one for
every situation'. You might want to have tighter coupling then, e.g. 0.1.
In the filter stats, you can see if a reasonable filter useage emerges.
*/
-void
+_X_EXPORT void
InitFilterChain(DeviceVelocityPtr s, float rdecay, float progression, int stages, int lutsize)
{
int fn;
@@ -787,7 +787,7 @@ GetDevicePredictableAccelData(
* This version employs a velocity approximation algorithm to
* enable fine-grained predictable acceleration profiles.
*/
-void
+_X_EXPORT void
acceleratePointerPredictable(
DeviceIntPtr pDev,
int first_valuator,
@@ -863,7 +863,7 @@ acceleratePointerPredictable(
* Originally a part of xf86PostMotionEvent; modifies valuators
* in-place. Retained mostly for embedded scenarios.
*/
-void
+_X_EXPORT void
acceleratePointerLightweight(
DeviceIntPtr pDev,
int first_valuator,
diff --git a/dix/registry.c b/dix/registry.c
index a519cff6b..a96ef777d 100644
--- a/dix/registry.c
+++ b/dix/registry.c
@@ -114,7 +114,7 @@ RegisterErrorName(unsigned error, char *name) {
errors[error] = name;
}
-void
+_X_EXPORT void
RegisterExtensionNames(ExtensionEntry *extEntry)
{
char buf[256], *lineobj, *ptr;
@@ -196,7 +196,7 @@ RegisterExtensionNames(ExtensionEntry *extEntry)
* Registration functions
*/
-void
+_X_EXPORT void
RegisterResourceName(RESTYPE resource, char *name)
{
resource &= TypeMask;
@@ -214,7 +214,7 @@ RegisterResourceName(RESTYPE resource, char *name)
* Lookup functions
*/
-const char *
+_X_EXPORT const char *
LookupRequestName(int major, int minor)
{
if (major >= nmajor)
@@ -225,7 +225,7 @@ LookupRequestName(int major, int minor)
return requests[major][minor] ? requests[major][minor] : XREGISTRY_UNKNOWN;
}
-const char *
+_X_EXPORT const char *
LookupMajorName(int major)
{
if (major < 128) {
@@ -244,7 +244,7 @@ LookupMajorName(int major)
}
}
-const char *
+_X_EXPORT const char *
LookupEventName(int event)
{
event &= 127;
@@ -254,7 +254,7 @@ LookupEventName(int event)
return events[event] ? events[event] : XREGISTRY_UNKNOWN;
}
-const char *
+_X_EXPORT const char *
LookupErrorName(int error)
{
if (error >= nerror)
@@ -263,7 +263,7 @@ LookupErrorName(int error)
return errors[error] ? errors[error] : XREGISTRY_UNKNOWN;
}
-const char *
+_X_EXPORT const char *
LookupResourceName(RESTYPE resource)
{
resource &= TypeMask;
@@ -276,7 +276,7 @@ LookupResourceName(RESTYPE resource)
/*
* Setup and teardown
*/
-void
+_X_EXPORT void
dixResetRegistry(void)
{
ExtensionEntry extEntry;
diff --git a/dix/resource.c b/dix/resource.c
index 7b0441ee9..5435afea1 100644
--- a/dix/resource.c
+++ b/dix/resource.c
@@ -244,7 +244,7 @@ static ClientResourceRec clientTable[MAXCLIENTS];
* in resource table
*****************/
-Bool
+_X_EXPORT Bool
InitClientResources(ClientPtr client)
{
int i, j;
@@ -339,7 +339,7 @@ AvailableID(
return 0;
}
-void
+_X_EXPORT void
GetXIDRange(int client, Bool server, XID *minp, XID *maxp)
{
XID id, maxid;
@@ -390,7 +390,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;
@@ -698,7 +698,7 @@ FindAllClientResources(
}
-pointer
+_X_EXPORT pointer
LookupClientResourceComplex(
ClientPtr client,
RESTYPE type,
@@ -725,7 +725,7 @@ LookupClientResourceComplex(
}
-void
+_X_EXPORT void
FreeClientNeverRetainResources(ClientPtr client)
{
ResourcePtr *resources;
@@ -762,7 +762,7 @@ FreeClientNeverRetainResources(ClientPtr client)
}
}
-void
+_X_EXPORT void
FreeClientResources(ClientPtr client)
{
ResourcePtr *resources;
@@ -813,7 +813,7 @@ FreeClientResources(ClientPtr client)
clientTable[client->index].buckets = 0;
}
-void
+_X_EXPORT void
FreeAllResources(void)
{
int i;
diff --git a/dix/selection.c b/dix/selection.c
index c5427e004..b55826e2d 100644
--- a/dix/selection.c
+++ b/dix/selection.c
@@ -66,7 +66,7 @@ SOFTWARE.
*****************************************************************/
_X_EXPORT Selection *CurrentSelections;
-CallbackListPtr SelectionCallback;
+_X_EXPORT CallbackListPtr SelectionCallback;
_X_EXPORT int
dixLookupSelection(Selection **result, Atom selectionName,
@@ -86,7 +86,7 @@ dixLookupSelection(Selection **result, Atom selectionName,
return rc;
}
-void
+_X_EXPORT void
InitSelections(void)
{
Selection *pSel, *pNextSel;
@@ -110,7 +110,7 @@ CallSelectionCallback(Selection *pSel, ClientPtr client,
CallCallbacks(&SelectionCallback, &info);
}
-void
+_X_EXPORT void
DeleteWindowFromAnySelections(WindowPtr pWin)
{
Selection *pSel;
@@ -125,7 +125,7 @@ DeleteWindowFromAnySelections(WindowPtr pWin)
}
}
-void
+_X_EXPORT void
DeleteClientFromAnySelections(ClientPtr client)
{
Selection *pSel;
diff --git a/dix/swaprep.c b/dix/swaprep.c
index 91469e17b..c85076792 100644
--- a/dix/swaprep.c
+++ b/dix/swaprep.c
@@ -140,7 +140,7 @@ CopySwap32Write(ClientPtr pClient, int size, CARD32 *pbuf)
*
* \param size size in bytes
*/
-void
+_X_EXPORT void
CopySwap16Write(ClientPtr pClient, int size, short *pbuf)
{
int bufsize = size;
@@ -186,7 +186,7 @@ CopySwap16Write(ClientPtr pClient, int size, short *pbuf)
/* Extra-small reply */
-void
+_X_EXPORT void
SGenericReply(ClientPtr pClient, int size, xGenericReply *pRep)
{
char n;
@@ -196,7 +196,7 @@ SGenericReply(ClientPtr pClient, int size, xGenericReply *pRep)
}
/* Extra-large reply */
-void
+_X_EXPORT void
SGetWindowAttributesReply(ClientPtr pClient, int size,
xGetWindowAttributesReply *pRep)
{
@@ -215,7 +215,7 @@ SGetWindowAttributesReply(ClientPtr pClient, int size,
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetGeometryReply(ClientPtr pClient, int size, xGetGeometryReply *pRep)
{
char n;
@@ -230,7 +230,7 @@ SGetGeometryReply(ClientPtr pClient, int size, xGetGeometryReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SQueryTreeReply(ClientPtr pClient, int size, xQueryTreeReply *pRep)
{
char n;
@@ -243,7 +243,7 @@ SQueryTreeReply(ClientPtr pClient, int size, xQueryTreeReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SInternAtomReply(ClientPtr pClient, int size, xInternAtomReply *pRep)
{
char n;
@@ -253,7 +253,7 @@ SInternAtomReply(ClientPtr pClient, int size, xInternAtomReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetAtomNameReply(ClientPtr pClient, int size, xGetAtomNameReply *pRep)
{
char n;
@@ -265,7 +265,7 @@ SGetAtomNameReply(ClientPtr pClient, int size, xGetAtomNameReply *pRep)
}
-void
+_X_EXPORT void
SGetPropertyReply(ClientPtr pClient, int size, xGetPropertyReply *pRep)
{
char n;
@@ -278,7 +278,7 @@ SGetPropertyReply(ClientPtr pClient, int size, xGetPropertyReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SListPropertiesReply(ClientPtr pClient, int size, xListPropertiesReply *pRep)
{
char n;
@@ -289,7 +289,7 @@ SListPropertiesReply(ClientPtr pClient, int size, xListPropertiesReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetSelectionOwnerReply(ClientPtr pClient, int size,
xGetSelectionOwnerReply *pRep)
{
@@ -301,7 +301,7 @@ SGetSelectionOwnerReply(ClientPtr pClient, int size,
}
-void
+_X_EXPORT void
SQueryPointerReply(ClientPtr pClient, int size, xQueryPointerReply *pRep)
{
char n;
@@ -327,7 +327,7 @@ SwapTimecoord(xTimecoord* pCoord)
swaps(&pCoord->y, n);
}
-void
+_X_EXPORT void
SwapTimeCoordWrite(ClientPtr pClient, int size, xTimecoord *pRep)
{
int i, n;
@@ -343,7 +343,7 @@ SwapTimeCoordWrite(ClientPtr pClient, int size, xTimecoord *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetMotionEventsReply(ClientPtr pClient, int size, xGetMotionEventsReply *pRep)
{
char n;
@@ -354,7 +354,7 @@ SGetMotionEventsReply(ClientPtr pClient, int size, xGetMotionEventsReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
STranslateCoordsReply(ClientPtr pClient, int size, xTranslateCoordsReply *pRep)
{
char n;
@@ -366,7 +366,7 @@ STranslateCoordsReply(ClientPtr pClient, int size, xTranslateCoordsReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetInputFocusReply(ClientPtr pClient, int size, xGetInputFocusReply *pRep)
{
char n;
@@ -377,7 +377,7 @@ SGetInputFocusReply(ClientPtr pClient, int size, xGetInputFocusReply *pRep)
}
/* extra long reply */
-void
+_X_EXPORT void
SQueryKeymapReply(ClientPtr pClient, int size, xQueryKeymapReply *pRep)
{
char n;
@@ -448,14 +448,14 @@ SwapFont(xQueryFontReply *pr, Bool hasGlyphs)
}
}
-void
+_X_EXPORT void
SQueryFontReply(ClientPtr pClient, int size, xQueryFontReply *pRep)
{
SwapFont(pRep, TRUE);
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SQueryTextExtentsReply(ClientPtr pClient, int size, xQueryTextExtentsReply *pRep)
{
char n;
@@ -471,7 +471,7 @@ SQueryTextExtentsReply(ClientPtr pClient, int size, xQueryTextExtentsReply *pRep
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SListFontsReply(ClientPtr pClient, int size, xListFontsReply *pRep)
{
char n;
@@ -482,7 +482,7 @@ SListFontsReply(ClientPtr pClient, int size, xListFontsReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SListFontsWithInfoReply(ClientPtr pClient, int size,
xListFontsWithInfoReply *pRep)
{
@@ -490,7 +490,7 @@ SListFontsWithInfoReply(ClientPtr pClient, int size,
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetFontPathReply(ClientPtr pClient, int size, xGetFontPathReply *pRep)
{
char n;
@@ -501,7 +501,7 @@ SGetFontPathReply(ClientPtr pClient, int size, xGetFontPathReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetImageReply(ClientPtr pClient, int size, xGetImageReply *pRep)
{
char n;
@@ -513,7 +513,7 @@ SGetImageReply(ClientPtr pClient, int size, xGetImageReply *pRep)
/* Fortunately, image doesn't need swapping */
}
-void
+_X_EXPORT void
SListInstalledColormapsReply(ClientPtr pClient, int size,
xListInstalledColormapsReply *pRep)
{
@@ -525,7 +525,7 @@ SListInstalledColormapsReply(ClientPtr pClient, int size,
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SAllocColorReply(pClient, size, pRep)
ClientPtr pClient;
int size;
@@ -541,7 +541,7 @@ SAllocColorReply(pClient, size, pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SAllocNamedColorReply(ClientPtr pClient, int size, xAllocNamedColorReply *pRep)
{
char n;
@@ -557,7 +557,7 @@ SAllocNamedColorReply(ClientPtr pClient, int size, xAllocNamedColorReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SAllocColorCellsReply(ClientPtr pClient, int size, xAllocColorCellsReply *pRep)
{
char n;
@@ -570,7 +570,7 @@ SAllocColorCellsReply(ClientPtr pClient, int size, xAllocColorCellsReply *pRep)
}
-void
+_X_EXPORT void
SAllocColorPlanesReply(ClientPtr pClient, int size, xAllocColorPlanesReply *pRep)
{
char n;
@@ -594,7 +594,7 @@ SwapRGB(xrgb *prgb)
swaps(&prgb->blue, n);
}
-void
+_X_EXPORT void
SQColorsExtend(ClientPtr pClient, int size, xrgb *prgb)
{
int i, n;
@@ -610,7 +610,7 @@ SQColorsExtend(ClientPtr pClient, int size, xrgb *prgb)
(void)WriteToClient(pClient, size, (char *) prgb);
}
-void
+_X_EXPORT void
SQueryColorsReply(ClientPtr pClient, int size, xQueryColorsReply* pRep)
{
char n;
@@ -621,7 +621,7 @@ SQueryColorsReply(ClientPtr pClient, int size, xQueryColorsReply* pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SLookupColorReply(ClientPtr pClient, int size, xLookupColorReply *pRep)
{
char n;
@@ -636,7 +636,7 @@ SLookupColorReply(ClientPtr pClient, int size, xLookupColorReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SQueryBestSizeReply(ClientPtr pClient, int size, xQueryBestSizeReply *pRep)
{
char n;
@@ -647,7 +647,7 @@ SQueryBestSizeReply(ClientPtr pClient, int size, xQueryBestSizeReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SListExtensionsReply(ClientPtr pClient, int size, xListExtensionsReply *pRep)
{
char n;
@@ -657,7 +657,7 @@ SListExtensionsReply(ClientPtr pClient, int size, xListExtensionsReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetKeyboardMappingReply(ClientPtr pClient, int size,
xGetKeyboardMappingReply *pRep)
{
@@ -668,7 +668,7 @@ SGetKeyboardMappingReply(ClientPtr pClient, int size,
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetPointerMappingReply(ClientPtr pClient, int size,
xGetPointerMappingReply *pRep)
{
@@ -679,7 +679,7 @@ SGetPointerMappingReply(ClientPtr pClient, int size,
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetModifierMappingReply(ClientPtr pClient, int size,
xGetModifierMappingReply *pRep)
{
@@ -690,7 +690,7 @@ SGetModifierMappingReply(ClientPtr pClient, int size,
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetKeyboardControlReply(ClientPtr pClient, int size, xGetKeyboardControlReply *pRep)
{
char n;
@@ -703,7 +703,7 @@ SGetKeyboardControlReply(ClientPtr pClient, int size, xGetKeyboardControlReply *
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetPointerControlReply(ClientPtr pClient, int size, xGetPointerControlReply *pRep)
{
char n;
@@ -715,7 +715,7 @@ SGetPointerControlReply(ClientPtr pClient, int size, xGetPointerControlReply *pR
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SGetScreenSaverReply(ClientPtr pClient, int size, xGetScreenSaverReply *pRep)
{
char n;
@@ -726,7 +726,7 @@ SGetScreenSaverReply(ClientPtr pClient, int size, xGetScreenSaverReply *pRep)
(void)WriteToClient(pClient, size, (char *) pRep);
}
-void
+_X_EXPORT void
SLHostsExtend(ClientPtr pClient, int size, char *buf)
{
char *bufT = buf;
@@ -741,7 +741,7 @@ SLHostsExtend(ClientPtr pClient, int size, char *buf)
(void)WriteToClient (pClient, size, buf);
}
-void
+_X_EXPORT void
SListHostsReply(ClientPtr pClient, int size, xListHostsReply *pRep)
{
char n;
@@ -754,7 +754,7 @@ SListHostsReply(ClientPtr pClient, int size, xListHostsReply *pRep)
-void
+_X_EXPORT void
SErrorEvent(xError *from, xError *to)
{
to->type = X_Error;
@@ -765,7 +765,7 @@ SErrorEvent(xError *from, xError *to)
to->majorCode = from->majorCode;
}
-void
+_X_EXPORT void
SKeyButtonPtrEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -793,7 +793,7 @@ SKeyButtonPtrEvent(xEvent *from, xEvent *to)
from->u.keyButtonPointer.sameScreen;
}
-void
+_X_EXPORT void
SEnterLeaveEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -812,7 +812,7 @@ SEnterLeaveEvent(xEvent *from, xEvent *to)
to->u.enterLeave.flags = from->u.enterLeave.flags;
}
-void
+_X_EXPORT void
SFocusEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -822,7 +822,7 @@ SFocusEvent(xEvent *from, xEvent *to)
to->u.focus.mode = from->u.focus.mode;
}
-void
+_X_EXPORT void
SExposeEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -835,7 +835,7 @@ SExposeEvent(xEvent *from, xEvent *to)
cpswaps(from->u.expose.count, to->u.expose.count);
}
-void
+_X_EXPORT void
SGraphicsExposureEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -858,7 +858,7 @@ SGraphicsExposureEvent(xEvent *from, xEvent *to)
from->u.graphicsExposure.majorEvent;
}
-void
+_X_EXPORT void
SNoExposureEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -868,7 +868,7 @@ SNoExposureEvent(xEvent *from, xEvent *to)
to->u.noExposure.majorEvent = from->u.noExposure.majorEvent;
}
-void
+_X_EXPORT void
SVisibilityEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -877,7 +877,7 @@ SVisibilityEvent(xEvent *from, xEvent *to)
to->u.visibility.state = from->u.visibility.state;
}
-void
+_X_EXPORT void
SCreateNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -893,7 +893,7 @@ SCreateNotifyEvent(xEvent *from, xEvent *to)
to->u.createNotify.override = from->u.createNotify.override;
}
-void
+_X_EXPORT void
SDestroyNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -902,7 +902,7 @@ SDestroyNotifyEvent(xEvent *from, xEvent *to)
cpswapl(from->u.destroyNotify.window, to->u.destroyNotify.window);
}
-void
+_X_EXPORT void
SUnmapNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -912,7 +912,7 @@ SUnmapNotifyEvent(xEvent *from, xEvent *to)
to->u.unmapNotify.fromConfigure = from->u.unmapNotify.fromConfigure;
}
-void
+_X_EXPORT void
SMapNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -922,7 +922,7 @@ SMapNotifyEvent(xEvent *from, xEvent *to)
to->u.mapNotify.override = from->u.mapNotify.override;
}
-void
+_X_EXPORT void
SMapRequestEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -931,7 +931,7 @@ SMapRequestEvent(xEvent *from, xEvent *to)
cpswapl(from->u.mapRequest.window, to->u.mapRequest.window);
}
-void
+_X_EXPORT void
SReparentEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -944,7 +944,7 @@ SReparentEvent(xEvent *from, xEvent *to)
to->u.reparent.override = from->u.reparent.override;
}
-void
+_X_EXPORT void
SConfigureNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -965,7 +965,7 @@ SConfigureNotifyEvent(xEvent *from, xEvent *to)
to->u.configureNotify.override = from->u.configureNotify.override;
}
-void
+_X_EXPORT void
SConfigureRequestEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -990,7 +990,7 @@ SConfigureRequestEvent(xEvent *from, xEvent *to)
}
-void
+_X_EXPORT void
SGravityEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1001,7 +1001,7 @@ SGravityEvent(xEvent *from, xEvent *to)
cpswaps(from->u.gravity.y, to->u.gravity.y);
}
-void
+_X_EXPORT void
SResizeRequestEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1011,7 +1011,7 @@ SResizeRequestEvent(xEvent *from, xEvent *to)
cpswaps(from->u.resizeRequest.height, to->u.resizeRequest.height);
}
-void
+_X_EXPORT void
SCirculateEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1023,7 +1023,7 @@ SCirculateEvent(xEvent *from, xEvent *to)
to->u.circulate.place = from->u.circulate.place;
}
-void
+_X_EXPORT void
SPropertyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1034,7 +1034,7 @@ SPropertyEvent(xEvent *from, xEvent *to)
to->u.property.state = from->u.property.state;
}
-void
+_X_EXPORT void
SSelectionClearEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1044,7 +1044,7 @@ SSelectionClearEvent(xEvent *from, xEvent *to)
cpswapl(from->u.selectionClear.atom, to->u.selectionClear.atom);
}
-void
+_X_EXPORT void
SSelectionRequestEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1062,7 +1062,7 @@ SSelectionRequestEvent(xEvent *from, xEvent *to)
to->u.selectionRequest.property);
}
-void
+_X_EXPORT void
SSelectionNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1078,7 +1078,7 @@ SSelectionNotifyEvent(xEvent *from, xEvent *to)
to->u.selectionNotify.property);
}
-void
+_X_EXPORT void
SColormapEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1089,7 +1089,7 @@ SColormapEvent(xEvent *from, xEvent *to)
to->u.colormap.state = from->u.colormap.state;
}
-void
+_X_EXPORT void
SMappingEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1100,7 +1100,7 @@ SMappingEvent(xEvent *from, xEvent *to)
to->u.mappingNotify.count = from->u.mappingNotify.count;
}
-void
+_X_EXPORT void
SClientMessageEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1151,7 +1151,7 @@ SClientMessageEvent(xEvent *from, xEvent *to)
}
}
-void
+_X_EXPORT void
SKeymapNotifyEvent(xEvent *from, xEvent *to)
{
/* Keymap notify events are special; they have no
@@ -1262,7 +1262,7 @@ SwapConnSetupInfo(
}
}
-void
+_X_EXPORT void
WriteSConnectionInfo(ClientPtr pClient, unsigned long size, char *pInfo)
{
char *pInfoTBase;
@@ -1288,7 +1288,7 @@ SwapConnSetupPrefix(xConnSetupPrefix *pcspFrom, xConnSetupPrefix *pcspTo)
cpswaps(pcspFrom->length, pcspTo->length);
}
-void
+_X_EXPORT void
WriteSConnSetupPrefix(ClientPtr pClient, xConnSetupPrefix *pcsp)
{
xConnSetupPrefix cspT;
diff --git a/dix/swapreq.c b/dix/swapreq.c
index ad60d17da..1b90351b0 100644
--- a/dix/swapreq.c
+++ b/dix/swapreq.c
@@ -123,7 +123,7 @@ SwapShorts (short *list, unsigned long count)
/* The following is used for all requests that have
no fields to be swapped (except "length") */
-int
+_X_EXPORT int
SProcSimpleReq(ClientPtr client)
{
char n;
@@ -136,7 +136,7 @@ SProcSimpleReq(ClientPtr client)
/* The following is used for all requests that have
only a single 32-bit field to be swapped, coming
right after the "length" field */
-int
+_X_EXPORT int
SProcResourceReq(ClientPtr client)
{
char n;
@@ -148,7 +148,7 @@ SProcResourceReq(ClientPtr client)
return(*ProcVector[stuff->reqType])(client);
}
-int
+_X_EXPORT int
SProcCreateWindow(ClientPtr client)
{
char n;
@@ -170,7 +170,7 @@ SProcCreateWindow(ClientPtr client)
return((* ProcVector[X_CreateWindow])(client));
}
-int
+_X_EXPORT int
SProcChangeWindowAttributes(ClientPtr client)
{
char n;
@@ -184,7 +184,7 @@ SProcChangeWindowAttributes(ClientPtr client)
return((* ProcVector[X_ChangeWindowAttributes])(client));
}
-int
+_X_EXPORT int
SProcReparentWindow(ClientPtr client)
{
char n;
@@ -198,7 +198,7 @@ SProcReparentWindow(ClientPtr client)
return((* ProcVector[X_ReparentWindow])(client));
}
-int
+_X_EXPORT int
SProcConfigureWindow(ClientPtr client)
{
char n;
@@ -213,7 +213,7 @@ SProcConfigureWindow(ClientPtr client)
}
-int
+_X_EXPORT int
SProcInternAtom(ClientPtr client)
{
char n;
@@ -224,7 +224,7 @@ SProcInternAtom(ClientPtr client)
return((* ProcVector[X_InternAtom])(client));
}
-int
+_X_EXPORT int
SProcChangeProperty(ClientPtr client)
{
char n;
@@ -248,7 +248,7 @@ SProcChangeProperty(ClientPtr client)
return((* ProcVector[X_ChangeProperty])(client));
}
-int
+_X_EXPORT int
SProcDeleteProperty(ClientPtr client)
{
char n;
@@ -261,7 +261,7 @@ SProcDeleteProperty(ClientPtr client)
}
-int
+_X_EXPORT int
SProcGetProperty(ClientPtr client)
{
char n;
@@ -276,7 +276,7 @@ SProcGetProperty(ClientPtr client)
return((* ProcVector[X_GetProperty])(client));
}
-int
+_X_EXPORT int
SProcSetSelectionOwner(ClientPtr client)
{
char n;
@@ -289,7 +289,7 @@ SProcSetSelectionOwner(ClientPtr client)
return((* ProcVector[X_SetSelectionOwner])(client));
}
-int
+_X_EXPORT int
SProcConvertSelection(ClientPtr client)
{
char n;
@@ -304,7 +304,7 @@ SProcConvertSelection(ClientPtr client)
return((* ProcVector[X_ConvertSelection])(client));
}
-int
+_X_EXPORT int
SProcSendEvent(ClientPtr client)
{
char n;
@@ -326,7 +326,7 @@ SProcSendEvent(ClientPtr client)
return((* ProcVector[X_SendEvent])(client));
}
-int
+_X_EXPORT int
SProcGrabPointer(ClientPtr client)
{
char n;
@@ -341,7 +341,7 @@ SProcGrabPointer(ClientPtr client)
return((* ProcVector[X_GrabPointer])(client));
}
-int
+_X_EXPORT int
SProcGrabButton(ClientPtr client)
{
char n;
@@ -356,7 +356,7 @@ SProcGrabButton(ClientPtr client)
return((* ProcVector[X_GrabButton])(client));
}
-int
+_X_EXPORT int
SProcUngrabButton(ClientPtr client)
{
char n;
@@ -368,7 +368,7 @@ SProcUngrabButton(ClientPtr client)
return((* ProcVector[X_UngrabButton])(client));
}
-int
+_X_EXPORT int
SProcChangeActivePointerGrab(ClientPtr client)
{
char n;
@@ -381,7 +381,7 @@ SProcChangeActivePointerGrab(ClientPtr client)
return((* ProcVector[X_ChangeActivePointerGrab])(client));
}
-int
+_X_EXPORT int
SProcGrabKeyboard(ClientPtr client)
{
char n;
@@ -393,7 +393,7 @@ SProcGrabKeyboard(ClientPtr client)
return((* ProcVector[X_GrabKeyboard])(client));
}
-int
+_X_EXPORT int
SProcGrabKey(ClientPtr client)
{
char n;
@@ -405,7 +405,7 @@ SProcGrabKey(ClientPtr client)
return((* ProcVector[X_GrabKey])(client));
}
-int
+_X_EXPORT int
SProcUngrabKey(ClientPtr client)
{
char n;
@@ -417,7 +417,7 @@ SProcUngrabKey(ClientPtr client)
return((* ProcVector[X_UngrabKey])(client));
}
-int
+_X_EXPORT int
SProcGetMotionEvents(ClientPtr client)
{
char n;
@@ -430,7 +430,7 @@ SProcGetMotionEvents(ClientPtr client)
return((* ProcVector[X_GetMotionEvents])(client));
}
-int
+_X_EXPORT int
SProcTranslateCoords(ClientPtr client)
{
char n;
@@ -444,7 +444,7 @@ SProcTranslateCoords(ClientPtr client)
return((* ProcVector[X_TranslateCoords])(client));
}
-int
+_X_EXPORT int
SProcWarpPointer(ClientPtr client)
{
char n;
@@ -462,7 +462,7 @@ SProcWarpPointer(ClientPtr client)
return((* ProcVector[X_WarpPointer])(client));
}
-int
+_X_EXPORT int
SProcSetInputFocus(ClientPtr client)
{
char n;
@@ -474,7 +474,7 @@ SProcSetInputFocus(ClientPtr client)
return((* ProcVector[X_SetInputFocus])(client));
}
-int
+_X_EXPORT int
SProcOpenFont(ClientPtr client)
{
char n;
@@ -486,7 +486,7 @@ SProcOpenFont(ClientPtr client)
return((* ProcVector[X_OpenFont])(client));
}
-int
+_X_EXPORT int
SProcListFonts(ClientPtr client)
{
char n;
@@ -498,7 +498,7 @@ SProcListFonts(ClientPtr client)
return((* ProcVector[X_ListFonts])(client));
}
-int
+_X_EXPORT int
SProcListFontsWithInfo(ClientPtr client)
{
char n;
@@ -510,7 +510,7 @@ SProcListFontsWithInfo(ClientPtr client)
return((* ProcVector[X_ListFontsWithInfo])(client));
}
-int
+_X_EXPORT int
SProcSetFontPath(ClientPtr client)
{
char n;
@@ -521,7 +521,7 @@ SProcSetFontPath(ClientPtr client)
return((* ProcVector[X_SetFontPath])(client));
}
-int
+_X_EXPORT int
SProcCreatePixmap(ClientPtr client)
{
char n;
@@ -536,7 +536,7 @@ SProcCreatePixmap(ClientPtr client)
return((* ProcVector[X_CreatePixmap])(client));
}
-int
+_X_EXPORT int
SProcCreateGC(ClientPtr client)
{
char n;
@@ -550,7 +550,7 @@ SProcCreateGC(ClientPtr client)
return((* ProcVector[X_CreateGC])(client));
}
-int
+_X_EXPORT int
SProcChangeGC(ClientPtr client)
{
char n;
@@ -563,7 +563,7 @@ SProcChangeGC(ClientPtr client)
return((* ProcVector[X_ChangeGC])(client));
}
-int
+_X_EXPORT int
SProcCopyGC(ClientPtr client)
{
char n;
@@ -576,7 +576,7 @@ SProcCopyGC(ClientPtr client)
return((* ProcVector[X_CopyGC])(client));
}
-int
+_X_EXPORT int
SProcSetDashes(ClientPtr client)
{
char n;
@@ -590,7 +590,7 @@ SProcSetDashes(ClientPtr client)
}
-int
+_X_EXPORT int
SProcSetClipRectangles(ClientPtr client)
{
char n;
@@ -604,7 +604,7 @@ SProcSetClipRectangles(ClientPtr client)
return((* ProcVector[X_SetClipRectangles])(client));
}
-int
+_X_EXPORT int
SProcClearToBackground(ClientPtr client)
{
char n;
@@ -619,7 +619,7 @@ SProcClearToBackground(ClientPtr client)
return((* ProcVector[X_ClearArea])(client));
}
-int
+_X_EXPORT int
SProcCopyArea(ClientPtr client)
{
char n;
@@ -638,7 +638,7 @@ SProcCopyArea(ClientPtr client)
return((* ProcVector[X_CopyArea])(client));
}
-int
+_X_EXPORT int
SProcCopyPlane(ClientPtr client)
{
char n;
@@ -660,7 +660,7 @@ SProcCopyPlane(ClientPtr client)
/* The following routine is used for all Poly drawing requests
(except FillPoly, which uses a different request format) */
-int
+_X_EXPORT int
SProcPoly(ClientPtr client)
{
char n;
@@ -677,7 +677,7 @@ SProcPoly(ClientPtr client)
/* cannot use SProcPoly for this one, because xFillPolyReq
is longer than xPolyPointReq, and we don't want to swap
the difference as shorts! */
-int
+_X_EXPORT int
SProcFillPoly(ClientPtr client)
{
char n;
@@ -691,7 +691,7 @@ SProcFillPoly(ClientPtr client)
return((* ProcVector[X_FillPoly])(client));
}
-int
+_X_EXPORT int
SProcPutImage(ClientPtr client)
{
char n;
@@ -709,7 +709,7 @@ SProcPutImage(ClientPtr client)
}
-int
+_X_EXPORT int
SProcGetImage(ClientPtr client)
{
char n;
@@ -727,7 +727,7 @@ SProcGetImage(ClientPtr client)
/* ProcPolyText used for both PolyText8 and PolyText16 */
-int
+_X_EXPORT int
SProcPolyText(ClientPtr client)
{
char n;
@@ -743,7 +743,7 @@ SProcPolyText(ClientPtr client)
/* ProcImageText used for both ImageText8 and ImageText16 */
-int
+_X_EXPORT int
SProcImageText(ClientPtr client)
{
char n;
@@ -757,7 +757,7 @@ SProcImageText(ClientPtr client)
return((* ProcVector[stuff->reqType])(client));
}
-int
+_X_EXPORT int
SProcCreateColormap(ClientPtr client)
{
char n;
@@ -771,7 +771,7 @@ SProcCreateColormap(ClientPtr client)
}
-int
+_X_EXPORT int
SProcCopyColormapAndFree(ClientPtr client)
{
char n;
@@ -784,7 +784,7 @@ SProcCopyColormapAndFree(ClientPtr client)
}
-int
+_X_EXPORT int
SProcAllocColor(ClientPtr client)
{
char n;
@@ -798,7 +798,7 @@ SProcAllocColor(ClientPtr client)
return((* ProcVector[X_AllocColor])(client));
}
-int
+_X_EXPORT int
SProcAllocNamedColor(ClientPtr client)
{
char n;
@@ -811,7 +811,7 @@ SProcAllocNamedColor(ClientPtr client)
return((* ProcVector[X_AllocNamedColor])(client));
}
-int
+_X_EXPORT int
SProcAllocColorCells(ClientPtr client)
{
char n;
@@ -824,7 +824,7 @@ SProcAllocColorCells(ClientPtr client)
return((* ProcVector[X_AllocColorCells])(client));
}
-int
+_X_EXPORT int
SProcAllocColorPlanes(ClientPtr client)
{
char n;
@@ -839,7 +839,7 @@ SProcAllocColorPlanes(ClientPtr client)
return((* ProcVector[X_AllocColorPlanes])(client));
}
-int
+_X_EXPORT int
SProcFreeColors(ClientPtr client)
{
char n;
@@ -864,7 +864,7 @@ SwapColorItem(xColorItem *pItem)
swaps(&pItem->blue, n);
}
-int
+_X_EXPORT int
SProcStoreColors(ClientPtr client)
{
char n;
@@ -881,7 +881,7 @@ SProcStoreColors(ClientPtr client)
return((* ProcVector[X_StoreColors])(client));
}
-int
+_X_EXPORT int
SProcStoreNamedColor (ClientPtr client)
{
char n;
@@ -894,7 +894,7 @@ SProcStoreNamedColor (ClientPtr client)
return((* ProcVector[X_StoreNamedColor])(client));
}
-int
+_X_EXPORT int
SProcQueryColors (ClientPtr client)
{
char n;
@@ -906,7 +906,7 @@ SProcQueryColors (ClientPtr client)
return((* ProcVector[X_QueryColors])(client));
}
-int
+_X_EXPORT int
SProcLookupColor (ClientPtr client)
{
char n;
@@ -918,7 +918,7 @@ SProcLookupColor (ClientPtr client)
return((* ProcVector[X_LookupColor])(client));
}
-int
+_X_EXPORT int
SProcCreateCursor (ClientPtr client)
{
char n;
@@ -939,7 +939,7 @@ SProcCreateCursor (ClientPtr client)
return((* ProcVector[X_CreateCursor])(client));
}
-int
+_X_EXPORT int
SProcCreateGlyphCursor (ClientPtr client)
{
char n;
@@ -961,7 +961,7 @@ SProcCreateGlyphCursor (ClientPtr client)
}
-int
+_X_EXPORT int
SProcRecolorCursor (ClientPtr client)
{
char n;
@@ -978,7 +978,7 @@ SProcRecolorCursor (ClientPtr client)
return((* ProcVector[X_RecolorCursor])(client));
}
-int
+_X_EXPORT int
SProcQueryBestSize (ClientPtr client)
{
char n;
@@ -992,7 +992,7 @@ SProcQueryBestSize (ClientPtr client)
}
-int
+_X_EXPORT int
SProcQueryExtension (ClientPtr client)
{
char n;
@@ -1003,7 +1003,7 @@ SProcQueryExtension (ClientPtr client)
return((* ProcVector[X_QueryExtension])(client));
}
-int
+_X_EXPORT int
SProcChangeKeyboardMapping (ClientPtr client)
{
char n;
@@ -1015,7 +1015,7 @@ SProcChangeKeyboardMapping (ClientPtr client)
}
-int
+_X_EXPORT int
SProcChangeKeyboardControl (ClientPtr client)
{
char n;
@@ -1027,7 +1027,7 @@ SProcChangeKeyboardControl (ClientPtr client)
return((* ProcVector[X_ChangeKeyboardControl])(client));
}
-int
+_X_EXPORT int
SProcChangePointerControl (ClientPtr client)
{
char n;
@@ -1041,7 +1041,7 @@ SProcChangePointerControl (ClientPtr client)
}
-int
+_X_EXPORT int
SProcSetScreenSaver (ClientPtr client)
{
char n;
@@ -1053,7 +1053,7 @@ SProcSetScreenSaver (ClientPtr client)
return((* ProcVector[X_SetScreenSaver])(client));
}
-int
+_X_EXPORT int
SProcChangeHosts (ClientPtr client)
{
char n;
@@ -1066,7 +1066,7 @@ SProcChangeHosts (ClientPtr client)
}
-int SProcRotateProperties (ClientPtr client)
+_X_EXPORT int SProcRotateProperties (ClientPtr client)
{
char n;
REQUEST(xRotatePropertiesReq);
@@ -1079,7 +1079,7 @@ int SProcRotateProperties (ClientPtr client)
return ((* ProcVector[X_RotateProperties])(client));
}
-int
+_X_EXPORT int
SProcNoOperation(ClientPtr client)
{
char n;
@@ -1088,7 +1088,7 @@ SProcNoOperation(ClientPtr client)
return ((* ProcVector[X_NoOperation])(client));
}
-void
+_X_EXPORT void
SwapConnClientPrefix(xConnClientPrefix *pCCP)
{
char n;
diff --git a/dix/tables.c b/dix/tables.c
index e4f93661c..3a1616d65 100644
--- a/dix/tables.c
+++ b/dix/tables.c
@@ -61,7 +61,7 @@ SOFTWARE.
#include "swaprep.h"
#include "swapreq.h"
-int (* InitialVector[3]) (
+_X_EXPORT int (* InitialVector[3]) (
ClientPtr /* client */
) =
{
@@ -70,7 +70,7 @@ int (* InitialVector[3]) (
ProcEstablishConnection
};
-int (* ProcVector[256]) (
+_X_EXPORT int (* ProcVector[256]) (
ClientPtr /* client */
) =
{
@@ -204,7 +204,7 @@ int (* ProcVector[256]) (
ProcNoOperation
};
-int (* SwappedProcVector[256]) (
+_X_EXPORT int (* SwappedProcVector[256]) (
ClientPtr /* client */
) =
{
@@ -378,7 +378,7 @@ _X_EXPORT EventSwapPtr EventSwapVector[128] =
};
-ReplySwapPtr ReplySwapVector[256] =
+_X_EXPORT ReplySwapPtr ReplySwapVector[256] =
{
ReplyNotSwappd,
ReplyNotSwappd,
diff --git a/dix/window.c b/dix/window.c
index c31fa875b..08afa45be 100644
--- a/dix/window.c
+++ b/dix/window.c
@@ -263,10 +263,10 @@ WalkTree(ScreenPtr pScreen, VisitWindowProcPtr func, pointer data)
}
/* hack for forcing backing store on all windows */
-int defaultBackingStore = NotUseful;
+_X_EXPORT int defaultBackingStore = NotUseful;
/* hack to force no backing store */
-Bool disableBackingStore = FALSE;
-Bool enableBackingStore = FALSE;
+_X_EXPORT Bool disableBackingStore = FALSE;
+_X_EXPORT Bool enableBackingStore = FALSE;
static void
SetWindowToDefaults(WindowPtr pWin)
@@ -356,7 +356,7 @@ MakeRootTile(WindowPtr pWin)
* Makes a window at initialization time for specified screen
*****/
-Bool
+_X_EXPORT Bool
CreateRootWindow(ScreenPtr pScreen)
{
WindowPtr pWin;
@@ -469,7 +469,7 @@ CreateRootWindow(ScreenPtr pScreen)
return TRUE;
}
-void
+_X_EXPORT void
InitRootWindow(WindowPtr pWin)
{
ScreenPtr pScreen = pWin->drawable.pScreen;
@@ -540,14 +540,14 @@ ClippedRegionFromBox(WindowPtr pWin, RegionPtr Rgn,
static RealChildHeadProc realChildHeadProc = NULL;
-void
+_X_EXPORT void
RegisterRealChildHeadProc (RealChildHeadProc proc)
{
realChildHeadProc = proc;
}
-WindowPtr
+_X_EXPORT WindowPtr
RealChildHead(WindowPtr pWin)
{
if (realChildHeadProc) {
@@ -933,7 +933,7 @@ CrushTree(WindowPtr pWin)
* If wid is None, don't send any events
*****/
-int
+_X_EXPORT int
DeleteWindow(pointer value, XID wid)
{
WindowPtr pParent;
@@ -970,7 +970,7 @@ DeleteWindow(pointer value, XID wid)
return Success;
}
-int
+_X_EXPORT int
DestroySubwindows(WindowPtr pWin, ClientPtr client)
{
/* XXX
@@ -1480,7 +1480,7 @@ PatchUp:
* Notice that this is different than ChangeWindowAttributes
*****/
-void
+_X_EXPORT void
GetWindowAttributes(WindowPtr pWin, ClientPtr client, xGetWindowAttributesReply *wa)
{
wa->type = X_Reply;
@@ -1516,7 +1516,7 @@ GetWindowAttributes(WindowPtr pWin, ClientPtr client, xGetWindowAttributesReply
}
-WindowPtr
+_X_EXPORT WindowPtr
MoveWindowInStack(WindowPtr pWin, WindowPtr pNextSib)
{
WindowPtr pParent = pWin->parent;
@@ -1626,7 +1626,7 @@ CreateUnclippedWinSize (WindowPtr pWin)
return pRgn;
}
-void
+_X_EXPORT void
SetWinSize (WindowPtr pWin)
{
#ifdef COMPOSITE
@@ -1667,7 +1667,7 @@ SetWinSize (WindowPtr pWin)
}
}
-void
+_X_EXPORT void
SetBorderSize (WindowPtr pWin)
{
int bw;
@@ -1771,7 +1771,7 @@ GravityTranslate (int x, int y, int oldx, int oldy,
}
/* XXX need to retile border on each window with ParentRelative origin */
-void
+_X_EXPORT void
ResizeChildrenWinSize(WindowPtr pWin, int dx, int dy, int dw, int dh)
{
ScreenPtr pScreen;
@@ -2165,7 +2165,7 @@ ReflectStackChange(
* ConfigureWindow
*****/
-int
+_X_EXPORT int
ConfigureWindow(WindowPtr pWin, Mask mask, XID *vlist, ClientPtr client)
{
#define RESTACK_WIN 0
@@ -2427,7 +2427,7 @@ ActuallyDoSomething:
*
******/
-int
+_X_EXPORT int
CirculateWindow(WindowPtr pParent, int direction, ClientPtr client)
{
WindowPtr pWin, pHead, pFirst;
@@ -2499,7 +2499,7 @@ CompareWIDs(
* ReparentWindow
*****/
-int
+_X_EXPORT int
ReparentWindow(WindowPtr pWin, WindowPtr pParent,
int x, int y, ClientPtr client)
{
@@ -2622,7 +2622,7 @@ RealizeTree(WindowPtr pWin)
static WindowPtr windowDisableMapUnmapEvents;
-void
+_X_EXPORT void
DisableMapUnmapEvents(WindowPtr pWin)
{
assert (windowDisableMapUnmapEvents == NULL);
@@ -2630,7 +2630,7 @@ DisableMapUnmapEvents(WindowPtr pWin)
windowDisableMapUnmapEvents = pWin;
}
-void
+_X_EXPORT void
EnableMapUnmapEvents(WindowPtr pWin)
{
assert (windowDisableMapUnmapEvents != NULL);
@@ -2742,7 +2742,7 @@ MapWindow(WindowPtr pWin, ClientPtr client)
* to bottom stacking order.
*****/
-void
+_X_EXPORT void
MapSubwindows(WindowPtr pParent, ClientPtr client)
{
WindowPtr pWin;
@@ -2923,7 +2923,7 @@ UnmapWindow(WindowPtr pWin, Bool fromConfigure)
* children of the window, in bottom to top stacking order.
*****/
-void
+_X_EXPORT void
UnmapSubwindows(WindowPtr pWin)
{
WindowPtr pChild, pHead;
@@ -3001,7 +3001,7 @@ UnmapSubwindows(WindowPtr pWin)
}
-void
+_X_EXPORT void
HandleSaveSet(ClientPtr client)
{
WindowPtr pParent, pWin;
@@ -3051,7 +3051,7 @@ HandleSaveSet(ClientPtr client)
*
* \param x,y in root
*/
-Bool
+_X_EXPORT Bool
PointInWindowIsVisible(WindowPtr pWin, int x, int y)
{
BoxRec box;
@@ -3087,7 +3087,7 @@ NotClippedByChildren(WindowPtr pWin)
return(pReg);
}
-void
+_X_EXPORT void
SendVisibilityNotify(WindowPtr pWin)
{
xEvent event;