summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
Diffstat (limited to 'randr')
-rw-r--r--randr/mirandr.c14
-rw-r--r--randr/randr.c22
-rw-r--r--randr/rrcrtc.c48
-rw-r--r--randr/rrdispatch.c4
-rw-r--r--randr/rrinfo.c12
-rw-r--r--randr/rrmode.c18
-rw-r--r--randr/rroutput.c30
-rw-r--r--randr/rrpointer.c4
-rw-r--r--randr/rrproperty.c26
-rw-r--r--randr/rrscreen.c20
-rw-r--r--randr/rrsdispatch.c2
-rw-r--r--randr/rrtransform.c12
-rw-r--r--randr/rrxinerama.c2
13 files changed, 107 insertions, 107 deletions
diff --git a/randr/mirandr.c b/randr/mirandr.c
index 05375e46c..266f83b73 100644
--- a/randr/mirandr.c
+++ b/randr/mirandr.c
@@ -34,7 +34,7 @@
#include "randrstr.h"
#include <stdio.h>
-Bool
+_X_EXPORT Bool
miRRGetInfo (ScreenPtr pScreen, Rotation *rotations)
{
return TRUE;
@@ -44,7 +44,7 @@ miRRGetInfo (ScreenPtr pScreen, Rotation *rotations)
* Any hardware that can actually change anything will need something
* different here
*/
-Bool
+_X_EXPORT Bool
miRRCrtcSet (ScreenPtr pScreen,
RRCrtcPtr crtc,
RRModePtr mode,
@@ -64,7 +64,7 @@ miRRCrtcSetGamma (ScreenPtr pScreen,
return TRUE;
}
-Bool
+_X_EXPORT Bool
miRROutputSetProperty (ScreenPtr pScreen,
RROutputPtr output,
Atom property,
@@ -73,7 +73,7 @@ miRROutputSetProperty (ScreenPtr pScreen,
return TRUE;
}
-Bool
+_X_EXPORT Bool
miRROutputGetProperty (ScreenPtr pScreen,
RROutputPtr output,
Atom property)
@@ -81,7 +81,7 @@ miRROutputGetProperty (ScreenPtr pScreen,
return TRUE;
}
-Bool
+_X_EXPORT Bool
miRROutputValidateMode (ScreenPtr pScreen,
RROutputPtr output,
RRModePtr mode)
@@ -89,7 +89,7 @@ miRROutputValidateMode (ScreenPtr pScreen,
return FALSE;
}
-void
+_X_EXPORT void
miRRModeDestroy (ScreenPtr pScreen,
RRModePtr mode)
{
@@ -104,7 +104,7 @@ miRRModeDestroy (ScreenPtr pScreen,
* XXX what to do here....
*/
-Bool
+_X_EXPORT Bool
miRandRInit (ScreenPtr pScreen)
{
rrScrPrivPtr pScrPriv;
diff --git a/randr/randr.c b/randr/randr.c
index 230d816a3..5a60cc983 100644
--- a/randr/randr.c
+++ b/randr/randr.c
@@ -53,14 +53,14 @@ static int RRNScreens;
static int ProcRRDispatch (ClientPtr pClient);
static int SProcRRDispatch (ClientPtr pClient);
-int RREventBase;
-int RRErrorBase;
-RESTYPE RRClientType, RREventType; /* resource types for event masks */
+_X_EXPORT int RREventBase;
+_X_EXPORT int RRErrorBase;
+_X_EXPORT RESTYPE RRClientType, RREventType; /* resource types for event masks */
static int RRClientPrivateKeyIndex;
-DevPrivateKey RRClientPrivateKey = &RRClientPrivateKeyIndex;
+_X_EXPORT DevPrivateKey RRClientPrivateKey = &RRClientPrivateKeyIndex;
static int rrPrivKeyIndex;
-DevPrivateKey rrPrivKey = &rrPrivKeyIndex;
+_X_EXPORT DevPrivateKey rrPrivKey = &rrPrivKeyIndex;
static void
RRClientCallback (CallbackListPtr *list,
@@ -196,7 +196,7 @@ SRRNotifyEvent (xEvent *from,
static int RRGeneration;
-Bool RRInit (void)
+_X_EXPORT Bool RRInit (void)
{
if (RRGeneration != serverGeneration)
{
@@ -211,7 +211,7 @@ Bool RRInit (void)
return TRUE;
}
-Bool RRScreenInit(ScreenPtr pScreen)
+_X_EXPORT Bool RRScreenInit(ScreenPtr pScreen)
{
rrScrPrivPtr pScrPriv;
@@ -314,7 +314,7 @@ RRFreeEvents (pointer data, XID id)
return 1;
}
-void
+_X_EXPORT void
RRExtensionInit (void)
{
ExtensionEntry *extEntry;
@@ -398,7 +398,7 @@ TellChanged (WindowPtr pWin, pointer value)
/*
* Something changed; send events and adjust pointer position
*/
-void
+_X_EXPORT void
RRTellChanged (ScreenPtr pScreen)
{
rrScrPriv (pScreen);
@@ -431,7 +431,7 @@ RRTellChanged (ScreenPtr pScreen)
* Return the first output which is connected to an active CRTC
* Used in emulating 1.0 behaviour
*/
-RROutputPtr
+_X_EXPORT RROutputPtr
RRFirstOutput (ScreenPtr pScreen)
{
rrScrPriv(pScreen);
@@ -451,7 +451,7 @@ RRFirstOutput (ScreenPtr pScreen)
return NULL;
}
-CARD16
+_X_EXPORT CARD16
RRVerticalRefresh (xRRModeInfo *mode)
{
CARD32 refresh;
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 5d270ce12..102ef6d29 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -24,12 +24,12 @@
#include "swaprep.h"
#include "registry.h"
-RESTYPE RRCrtcType;
+_X_EXPORT RESTYPE RRCrtcType;
/*
* Notify the CRTC of some change
*/
-void
+_X_EXPORT void
RRCrtcChanged (RRCrtcPtr crtc, Bool layoutChanged)
{
ScreenPtr pScreen = crtc->pScreen;
@@ -51,7 +51,7 @@ RRCrtcChanged (RRCrtcPtr crtc, Bool layoutChanged)
/*
* Create a CRTC
*/
-RRCrtcPtr
+_X_EXPORT RRCrtcPtr
RRCrtcCreate (ScreenPtr pScreen, void *devPrivate)
{
RRCrtcPtr crtc;
@@ -108,7 +108,7 @@ RRCrtcCreate (ScreenPtr pScreen, void *devPrivate)
/*
* Set the allowed rotations on a CRTC
*/
-void
+_X_EXPORT void
RRCrtcSetRotations (RRCrtcPtr crtc, Rotation rotations)
{
crtc->rotations = rotations;
@@ -117,7 +117,7 @@ RRCrtcSetRotations (RRCrtcPtr crtc, Rotation rotations)
/*
* Set whether transforms are allowed on a CRTC
*/
-void
+_X_EXPORT void
RRCrtcSetTransformSupport (RRCrtcPtr crtc, Bool transforms)
{
crtc->transforms = transforms;
@@ -127,7 +127,7 @@ RRCrtcSetTransformSupport (RRCrtcPtr crtc, Bool transforms)
* Notify the extension that the Crtc has been reconfigured,
* the driver calls this whenever it has updated the mode
*/
-Bool
+_X_EXPORT Bool
RRCrtcNotify (RRCrtcPtr crtc,
RRModePtr mode,
int x,
@@ -245,7 +245,7 @@ RRCrtcNotify (RRCrtcPtr crtc,
return TRUE;
}
-void
+_X_EXPORT void
RRDeliverCrtcEvent (ClientPtr client, WindowPtr pWin, RRCrtcPtr crtc)
{
ScreenPtr pScreen = pWin->drawable.pScreen;
@@ -298,7 +298,7 @@ RRCrtcPendingProperties (RRCrtcPtr crtc)
/*
* Request that the Crtc be reconfigured
*/
-Bool
+_X_EXPORT Bool
RRCrtcSet (RRCrtcPtr crtc,
RRModePtr mode,
int x,
@@ -390,7 +390,7 @@ RRCrtcSet (RRCrtcPtr crtc,
/*
* Return crtc transform
*/
-RRTransformPtr
+_X_EXPORT RRTransformPtr
RRCrtcGetTransform (RRCrtcPtr crtc)
{
RRTransformPtr transform = &crtc->client_pending_transform;
@@ -403,7 +403,7 @@ RRCrtcGetTransform (RRCrtcPtr crtc)
/*
* Check whether the pending and current transforms are the same
*/
-Bool
+_X_EXPORT Bool
RRCrtcPendingTransform (RRCrtcPtr crtc)
{
return memcmp (&crtc->client_current_transform.transform,
@@ -414,7 +414,7 @@ RRCrtcPendingTransform (RRCrtcPtr crtc)
/*
* Destroy a Crtc at shutdown
*/
-void
+_X_EXPORT void
RRCrtcDestroy (RRCrtcPtr crtc)
{
FreeResource (crtc->id, 0);
@@ -454,7 +454,7 @@ RRCrtcDestroyResource (pointer value, XID pid)
* Request that the Crtc gamma be changed
*/
-Bool
+_X_EXPORT Bool
RRCrtcGammaSet (RRCrtcPtr crtc,
CARD16 *red,
CARD16 *green,
@@ -485,7 +485,7 @@ RRCrtcGammaSet (RRCrtcPtr crtc,
* in the RRCrtcRec
*/
-Bool
+_X_EXPORT Bool
RRCrtcGammaNotify (RRCrtcPtr crtc)
{
return TRUE; /* not much going on here */
@@ -516,7 +516,7 @@ RRModeGetScanoutSize (RRModePtr mode, PictTransformPtr transform,
/**
* Returns the width/height that the crtc scans out from the framebuffer
*/
-void
+_X_EXPORT void
RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height)
{
return RRModeGetScanoutSize (crtc->mode, &crtc->transform, width, height);
@@ -526,7 +526,7 @@ RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height)
* Set the size of the gamma table at server startup time
*/
-Bool
+_X_EXPORT Bool
RRCrtcGammaSetSize (RRCrtcPtr crtc,
int size)
{
@@ -555,7 +555,7 @@ RRCrtcGammaSetSize (RRCrtcPtr crtc,
* Set the pending CRTC transformation
*/
-int
+_X_EXPORT int
RRCrtcTransformSet (RRCrtcPtr crtc,
PictTransformPtr transform,
struct pixman_f_transform *f_transform,
@@ -607,7 +607,7 @@ RRCrtcTransformSet (RRCrtcPtr crtc,
/*
* Initialize crtc type
*/
-Bool
+_X_EXPORT Bool
RRCrtcInit (void)
{
RRCrtcType = CreateNewResourceType (RRCrtcDestroyResource);
@@ -617,7 +617,7 @@ RRCrtcInit (void)
return TRUE;
}
-int
+_X_EXPORT int
ProcRRGetCrtcInfo (ClientPtr client)
{
REQUEST(xRRGetCrtcInfoReq);
@@ -724,7 +724,7 @@ ProcRRGetCrtcInfo (ClientPtr client)
return client->noClientException;
}
-int
+_X_EXPORT int
ProcRRSetCrtcConfig (ClientPtr client)
{
REQUEST(xRRSetCrtcConfigReq);
@@ -977,7 +977,7 @@ sendReply:
return client->noClientException;
}
-int
+_X_EXPORT int
ProcRRGetCrtcGammaSize (ClientPtr client)
{
REQUEST(xRRGetCrtcGammaSizeReq);
@@ -1003,7 +1003,7 @@ ProcRRGetCrtcGammaSize (ClientPtr client)
return client->noClientException;
}
-int
+_X_EXPORT int
ProcRRGetCrtcGamma (ClientPtr client)
{
REQUEST(xRRGetCrtcGammaReq);
@@ -1046,7 +1046,7 @@ ProcRRGetCrtcGamma (ClientPtr client)
return client->noClientException;
}
-int
+_X_EXPORT int
ProcRRSetCrtcGamma (ClientPtr client)
{
REQUEST(xRRSetCrtcGammaReq);
@@ -1077,7 +1077,7 @@ ProcRRSetCrtcGamma (ClientPtr client)
/* Version 1.3 additions */
-int
+_X_EXPORT int
ProcRRSetCrtcTransform (ClientPtr client)
{
REQUEST(xRRSetCrtcTransformReq);
@@ -1165,7 +1165,7 @@ transform_encode (ClientPtr client, xRenderTransform *wire, PictTransform *pict)
SwapLongs ((CARD32 *) wire, sizeof (xRenderTransform));
}
-int
+_X_EXPORT int
ProcRRGetCrtcTransform (ClientPtr client)
{
REQUEST(xRRGetCrtcTransformReq);
diff --git a/randr/rrdispatch.c b/randr/rrdispatch.c
index 64af6ce2a..e9a70f07a 100644
--- a/randr/rrdispatch.c
+++ b/randr/rrdispatch.c
@@ -25,7 +25,7 @@
#define SERVER_RANDR_MAJOR 1
#define SERVER_RANDR_MINOR 3
-Bool
+_X_EXPORT Bool
RRClientKnowsRates (ClientPtr pClient)
{
rrClientPriv(pClient);
@@ -181,7 +181,7 @@ ProcRRSelectInput (ClientPtr client)
return Success;
}
-int (*ProcRandrVector[RRNumberRequests])(ClientPtr) = {
+_X_EXPORT int (*ProcRandrVector[RRNumberRequests])(ClientPtr) = {
ProcRRQueryVersion, /* 0 */
/* we skip 1 to make old clients fail pretty immediately */
NULL, /* 1 ProcRandrOldGetScreenInfo */
diff --git a/randr/rrinfo.c b/randr/rrinfo.c
index 38314defd..20acf5729 100644
--- a/randr/rrinfo.c
+++ b/randr/rrinfo.c
@@ -177,7 +177,7 @@ RRScanOldConfig (ScreenPtr pScreen, Rotation rotations)
/*
* Poll the driver for changed information
*/
-Bool
+_X_EXPORT Bool
RRGetInfo (ScreenPtr pScreen)
{
rrScrPriv (pScreen);
@@ -207,7 +207,7 @@ RRGetInfo (ScreenPtr pScreen)
/*
* Register the range of sizes for the screen
*/
-void
+_X_EXPORT void
RRScreenSetSizeRange (ScreenPtr pScreen,
CARD16 minWidth,
CARD16 minHeight,
@@ -248,7 +248,7 @@ RRScreenSizeMatches (RRScreenSizePtr a,
return TRUE;
}
-RRScreenSizePtr
+_X_EXPORT RRScreenSizePtr
RRRegisterSize (ScreenPtr pScreen,
short width,
short height,
@@ -282,7 +282,7 @@ RRRegisterSize (ScreenPtr pScreen,
return &pNew[pScrPriv->nSizes-1];
}
-Bool RRRegisterRate (ScreenPtr pScreen,
+_X_EXPORT Bool RRRegisterRate (ScreenPtr pScreen,
RRScreenSizePtr pSize,
int rate)
{
@@ -307,7 +307,7 @@ Bool RRRegisterRate (ScreenPtr pScreen,
return TRUE;
}
-Rotation
+_X_EXPORT Rotation
RRGetRotation(ScreenPtr pScreen)
{
RROutputPtr output = RRFirstOutput (pScreen);
@@ -318,7 +318,7 @@ RRGetRotation(ScreenPtr pScreen)
return output->crtc->rotation;
}
-void
+_X_EXPORT void
RRSetCurrentConfig (ScreenPtr pScreen,
Rotation rotation,
int rate,
diff --git a/randr/rrmode.c b/randr/rrmode.c
index 2fa440385..0c847a128 100644
--- a/randr/rrmode.c
+++ b/randr/rrmode.c
@@ -23,7 +23,7 @@
#include "randrstr.h"
#include "registry.h"
-RESTYPE RRModeType;
+_X_EXPORT RESTYPE RRModeType;
static Bool
RRModeEqual (xRRModeInfo *a, xRRModeInfo *b)
@@ -112,7 +112,7 @@ RRModeFindByName (const char *name,
return NULL;
}
-RRModePtr
+_X_EXPORT RRModePtr
RRModeGet (xRRModeInfo *modeInfo,
const char *name)
{
@@ -157,7 +157,7 @@ RRModeCreateUser (ScreenPtr pScreen,
return mode;
}
-RRModePtr *
+_X_EXPORT RRModePtr *
RRModesForScreen (ScreenPtr pScreen, int *num_ret)
{
rrScrPriv(pScreen);
@@ -228,7 +228,7 @@ RRModesForScreen (ScreenPtr pScreen, int *num_ret)
return screen_modes;
}
-void
+_X_EXPORT void
RRModeDestroy (RRModePtr mode)
{
int m;
@@ -261,7 +261,7 @@ RRModeDestroyResource (pointer value, XID pid)
return 1;
}
-Bool
+_X_EXPORT Bool
RRModeInit (void)
{
assert (num_modes == 0);
@@ -273,7 +273,7 @@ RRModeInit (void)
return TRUE;
}
-int
+_X_EXPORT int
ProcRRCreateMode (ClientPtr client)
{
REQUEST(xRRCreateModeReq);
@@ -325,7 +325,7 @@ ProcRRCreateMode (ClientPtr client)
return client->noClientException;
}
-int
+_X_EXPORT int
ProcRRDestroyMode (ClientPtr client)
{
REQUEST(xRRDestroyModeReq);
@@ -346,7 +346,7 @@ ProcRRDestroyMode (ClientPtr client)
return Success;
}
-int
+_X_EXPORT int
ProcRRAddOutputMode (ClientPtr client)
{
REQUEST(xRRAddOutputModeReq);
@@ -372,7 +372,7 @@ ProcRRAddOutputMode (ClientPtr client)
return RROutputAddUserMode (output, mode);
}
-int
+_X_EXPORT int
ProcRRDeleteOutputMode (ClientPtr client)
{
REQUEST(xRRDeleteOutputModeReq);
diff --git a/randr/rroutput.c b/randr/rroutput.c
index 1ecde31a2..b98fc5447 100644
--- a/randr/rroutput.c
+++ b/randr/rroutput.c
@@ -23,12 +23,12 @@
#include "randrstr.h"
#include "registry.h"
-RESTYPE RROutputType;
+_X_EXPORT RESTYPE RROutputType;
/*
* Notify the output of some change
*/
-void
+_X_EXPORT void
RROutputChanged (RROutputPtr output, Bool configChanged)
{
ScreenPtr pScreen = output->pScreen;
@@ -47,7 +47,7 @@ RROutputChanged (RROutputPtr output, Bool configChanged)
* Create an output
*/
-RROutputPtr
+_X_EXPORT RROutputPtr
RROutputCreate (ScreenPtr pScreen,
const char *name,
int nameLength,
@@ -110,7 +110,7 @@ RROutputCreate (ScreenPtr pScreen,
/*
* Notify extension that output parameters have been changed
*/
-Bool
+_X_EXPORT Bool
RROutputSetClones (RROutputPtr output,
RROutputPtr *clones,
int numClones)
@@ -143,7 +143,7 @@ RROutputSetClones (RROutputPtr output,
return TRUE;
}
-Bool
+_X_EXPORT Bool
RROutputSetModes (RROutputPtr output,
RRModePtr *modes,
int numModes,
@@ -187,7 +187,7 @@ RROutputSetModes (RROutputPtr output,
return TRUE;
}
-int
+_X_EXPORT int
RROutputAddUserMode (RROutputPtr output,
RRModePtr mode)
{
@@ -227,7 +227,7 @@ RROutputAddUserMode (RROutputPtr output,
return Success;
}
-int
+_X_EXPORT int
RROutputDeleteUserMode (RROutputPtr output,
RRModePtr mode)
{
@@ -256,7 +256,7 @@ RROutputDeleteUserMode (RROutputPtr output,
return Success;
}
-Bool
+_X_EXPORT Bool
RROutputSetCrtcs (RROutputPtr output,
RRCrtcPtr *crtcs,
int numCrtcs)
@@ -289,7 +289,7 @@ RROutputSetCrtcs (RROutputPtr output,
return TRUE;
}
-Bool
+_X_EXPORT Bool
RROutputSetConnection (RROutputPtr output,
CARD8 connection)
{
@@ -300,7 +300,7 @@ RROutputSetConnection (RROutputPtr output,
return TRUE;
}
-Bool
+_X_EXPORT Bool
RROutputSetSubpixelOrder (RROutputPtr output,
int subpixelOrder)
{
@@ -312,7 +312,7 @@ RROutputSetSubpixelOrder (RROutputPtr output,
return TRUE;
}
-Bool
+_X_EXPORT Bool
RROutputSetPhysicalSize (RROutputPtr output,
int mmWidth,
int mmHeight)
@@ -326,7 +326,7 @@ RROutputSetPhysicalSize (RROutputPtr output,
}
-void
+_X_EXPORT void
RRDeliverOutputEvent(ClientPtr client, WindowPtr pWin, RROutputPtr output)
{
ScreenPtr pScreen = pWin->drawable.pScreen;
@@ -362,7 +362,7 @@ RRDeliverOutputEvent(ClientPtr client, WindowPtr pWin, RROutputPtr output)
/*
* Destroy a Output at shutdown
*/
-void
+_X_EXPORT void
RROutputDestroy (RROutputPtr output)
{
FreeResource (output->id, 0);
@@ -415,7 +415,7 @@ RROutputDestroyResource (pointer value, XID pid)
/*
* Initialize output type
*/
-Bool
+_X_EXPORT Bool
RROutputInit (void)
{
RROutputType = CreateNewResourceType (RROutputDestroyResource);
@@ -427,7 +427,7 @@ RROutputInit (void)
#define OutputInfoExtra (SIZEOF(xRRGetOutputInfoReply) - 32)
-int
+_X_EXPORT int
ProcRRGetOutputInfo (ClientPtr client)
{
REQUEST(xRRGetOutputInfoReq);
diff --git a/randr/rrpointer.c b/randr/rrpointer.c
index 6b934c0c6..35472fca4 100644
--- a/randr/rrpointer.c
+++ b/randr/rrpointer.c
@@ -100,7 +100,7 @@ RRPointerToNearestCrtc (DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y, RRCr
pScrPriv->pointerCrtc = nearest;
}
-void
+_X_EXPORT void
RRPointerMoved (ScreenPtr pScreen, int x, int y)
{
rrScrPriv (pScreen);
@@ -133,7 +133,7 @@ RRPointerMoved (ScreenPtr pScreen, int x, int y)
* When the screen is reconfigured, move all pointers to the nearest
* CRTC
*/
-void
+_X_EXPORT void
RRPointerScreenConfigured (ScreenPtr pScreen)
{
WindowPtr pRoot;
diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index 6ca7cc900..decf6cb37 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -62,7 +62,7 @@ static void RRDeliverPropertyEvent(ScreenPtr pScreen, xEvent *event)
WalkTree(pScreen, DeliverPropertyEvent, event);
}
-void
+_X_EXPORT void
RRDeleteAllOutputProperties (RROutputPtr output)
{
RRPropertyPtr prop, next;
@@ -127,7 +127,7 @@ RRDestroyOutputProperty (RRPropertyPtr prop)
xfree(prop);
}
-void
+_X_EXPORT void
RRDeleteOutputProperty (RROutputPtr output, Atom property)
{
RRPropertyPtr prop, *prev;
@@ -150,7 +150,7 @@ RRDeleteOutputProperty (RROutputPtr output, Atom property)
}
}
-int
+_X_EXPORT int
RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
int format, int mode, unsigned long len,
pointer value, Bool sendevent, Bool pending)
@@ -275,7 +275,7 @@ RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
return(Success);
}
-Bool
+_X_EXPORT Bool
RRPostPendingProperties (RROutputPtr output)
{
RRPropertyValuePtr pending_value;
@@ -317,7 +317,7 @@ RRPostPendingProperties (RROutputPtr output)
return ret;
}
-RRPropertyPtr
+_X_EXPORT RRPropertyPtr
RRQueryOutputProperty (RROutputPtr output, Atom property)
{
RRPropertyPtr prop;
@@ -328,7 +328,7 @@ RRQueryOutputProperty (RROutputPtr output, Atom property)
return NULL;
}
-RRPropertyValuePtr
+_X_EXPORT RRPropertyValuePtr
RRGetOutputProperty (RROutputPtr output, Atom property, Bool pending)
{
RRPropertyPtr prop = RRQueryOutputProperty (output, property);
@@ -349,7 +349,7 @@ RRGetOutputProperty (RROutputPtr output, Atom property, Bool pending)
}
}
-int
+_X_EXPORT int
RRConfigureOutputProperty (RROutputPtr output, Atom property,
Bool pending, Bool range, Bool immutable,
int num_values, INT32 *values)
@@ -406,7 +406,7 @@ RRConfigureOutputProperty (RROutputPtr output, Atom property,
return Success;
}
-int
+_X_EXPORT int
ProcRRListOutputProperties (ClientPtr client)
{
REQUEST(xRRListOutputPropertiesReq);
@@ -454,7 +454,7 @@ ProcRRListOutputProperties (ClientPtr client)
return(client->noClientException);
}
-int
+_X_EXPORT int
ProcRRQueryOutputProperty (ClientPtr client)
{
REQUEST(xRRQueryOutputPropertyReq);
@@ -503,7 +503,7 @@ ProcRRQueryOutputProperty (ClientPtr client)
return(client->noClientException);
}
-int
+_X_EXPORT int
ProcRRConfigureOutputProperty (ClientPtr client)
{
REQUEST(xRRConfigureOutputPropertyReq);
@@ -524,7 +524,7 @@ ProcRRConfigureOutputProperty (ClientPtr client)
(INT32 *) (stuff + 1));
}
-int
+_X_EXPORT int
ProcRRChangeOutputProperty (ClientPtr client)
{
REQUEST(xRRChangeOutputPropertyReq);
@@ -581,7 +581,7 @@ ProcRRChangeOutputProperty (ClientPtr client)
return client->noClientException;
}
-int
+_X_EXPORT int
ProcRRDeleteOutputProperty (ClientPtr client)
{
REQUEST(xRRDeleteOutputPropertyReq);
@@ -604,7 +604,7 @@ ProcRRDeleteOutputProperty (ClientPtr client)
return client->noClientException;
}
-int
+_X_EXPORT int
ProcRRGetOutputProperty (ClientPtr client)
{
REQUEST(xRRGetOutputPropertyReq);
diff --git a/randr/rrscreen.c b/randr/rrscreen.c
index 7a8f2ebc7..e68d47ac8 100644
--- a/randr/rrscreen.c
+++ b/randr/rrscreen.c
@@ -70,7 +70,7 @@ RREditConnectionInfo (ScreenPtr pScreen)
root->mmHeight = pScreen->mmHeight;
}
-void
+_X_EXPORT void
RRSendConfigNotify (ScreenPtr pScreen)
{
WindowPtr pWin = WindowTable[pScreen->myNum];
@@ -91,7 +91,7 @@ RRSendConfigNotify (ScreenPtr pScreen)
DeliverEvents(pWin, &event, 1, NullWindow);
}
-void
+_X_EXPORT void
RRDeliverScreenEvent (ClientPtr client, WindowPtr pWin, ScreenPtr pScreen)
{
rrScrPriv (pScreen);
@@ -135,7 +135,7 @@ RRDeliverScreenEvent (ClientPtr client, WindowPtr pWin, ScreenPtr pScreen)
* The driver is responsible for calling this whenever it has changed
* the size of the screen
*/
-void
+_X_EXPORT void
RRScreenSizeNotify (ScreenPtr pScreen)
{
rrScrPriv(pScreen);
@@ -170,7 +170,7 @@ RRScreenSizeNotify (ScreenPtr pScreen)
/*
* Request that the screen be resized
*/
-Bool
+_X_EXPORT Bool
RRScreenSizeSet (ScreenPtr pScreen,
CARD16 width,
CARD16 height,
@@ -199,7 +199,7 @@ RRScreenSizeSet (ScreenPtr pScreen,
/*
* Retrieve valid screen size range
*/
-int
+_X_EXPORT int
ProcRRGetScreenSizeRange (ClientPtr client)
{
REQUEST(xRRGetScreenSizeRangeReq);
@@ -251,7 +251,7 @@ ProcRRGetScreenSizeRange (ClientPtr client)
return (client->noClientException);
}
-int
+_X_EXPORT int
ProcRRSetScreenSize (ClientPtr client)
{
REQUEST(xRRSetScreenSizeReq);
@@ -463,13 +463,13 @@ rrGetScreenResources(ClientPtr client, Bool query)
return client->noClientException;
}
-int
+_X_EXPORT int
ProcRRGetScreenResources (ClientPtr client)
{
return rrGetScreenResources(client, TRUE);
}
-int
+_X_EXPORT int
ProcRRGetScreenResourcesCurrent (ClientPtr client)
{
return rrGetScreenResources(client, FALSE);
@@ -578,7 +578,7 @@ RR10GetData (ScreenPtr pScreen, RROutputPtr output)
return data;
}
-int
+_X_EXPORT int
ProcRRGetScreenInfo (ClientPtr client)
{
REQUEST(xRRGetScreenInfoReq);
@@ -732,7 +732,7 @@ ProcRRGetScreenInfo (ClientPtr client)
return (client->noClientException);
}
-int
+_X_EXPORT int
ProcRRSetScreenConfig (ClientPtr client)
{
REQUEST(xRRSetScreenConfigReq);
diff --git a/randr/rrsdispatch.c b/randr/rrsdispatch.c
index 5a6dab5bf..1fa74aec8 100644
--- a/randr/rrsdispatch.c
+++ b/randr/rrsdispatch.c
@@ -384,7 +384,7 @@ SProcRRGetCrtcTransform (ClientPtr client)
return BadImplementation;
}
-int (*SProcRandrVector[RRNumberRequests])(ClientPtr) = {
+_X_EXPORT int (*SProcRandrVector[RRNumberRequests])(ClientPtr) = {
SProcRRQueryVersion, /* 0 */
/* we skip 1 to make old clients fail pretty immediately */
NULL, /* 1 SProcRandrOldGetScreenInfo */
diff --git a/randr/rrtransform.c b/randr/rrtransform.c
index a901df4ac..bf45da34d 100644
--- a/randr/rrtransform.c
+++ b/randr/rrtransform.c
@@ -23,7 +23,7 @@
#include "randrstr.h"
#include "rrtransform.h"
-void
+_X_EXPORT void
RRTransformInit (RRTransformPtr transform)
{
pixman_transform_init_identity (&transform->transform);
@@ -34,14 +34,14 @@ RRTransformInit (RRTransformPtr transform)
transform->nparams = 0;
}
-void
+_X_EXPORT void
RRTransformFini (RRTransformPtr transform)
{
if (transform->params)
xfree (transform->params);
}
-Bool
+_X_EXPORT Bool
RRTransformEqual (RRTransformPtr a, RRTransformPtr b)
{
if (a && pixman_transform_is_identity (&a->transform))
@@ -63,7 +63,7 @@ RRTransformEqual (RRTransformPtr a, RRTransformPtr b)
return TRUE;
}
-Bool
+_X_EXPORT Bool
RRTransformSetFilter (RRTransformPtr dst,
PictFilterPtr filter,
xFixed *params,
@@ -92,7 +92,7 @@ RRTransformSetFilter (RRTransformPtr dst,
return TRUE;
}
-Bool
+_X_EXPORT Bool
RRTransformCopy (RRTransformPtr dst, RRTransformPtr src)
{
if (src && pixman_transform_is_identity (&src->transform))
@@ -127,7 +127,7 @@ RRTransformCopy (RRTransformPtr dst, RRTransformPtr src)
*
* Return TRUE if the resulting transform is not a simple translation.
*/
-Bool
+_X_EXPORT Bool
RRTransformCompute (int x,
int y,
int width,
diff --git a/randr/rrxinerama.c b/randr/rrxinerama.c
index 544666ff1..d2c3f298a 100644
--- a/randr/rrxinerama.c
+++ b/randr/rrxinerama.c
@@ -425,7 +425,7 @@ SProcRRXineramaDispatch(ClientPtr client)
return BadRequest;
}
-void
+_X_EXPORT void
RRXineramaExtensionInit(void)
{
#ifdef PANORAMIX