2003-11-14 17:48:57 +01:00
|
|
|
/*
|
2004-12-04 01:43:13 +01:00
|
|
|
* Copyright © 2000 Compaq Computer Corporation
|
2006-07-02 04:46:38 +02:00
|
|
|
* Copyright © 2002 Hewlett-Packard Company
|
|
|
|
* Copyright © 2006 Intel Corporation
|
2008-12-09 16:51:37 +01:00
|
|
|
* Copyright © 2008 Red Hat, Inc.
|
2003-11-14 17:48:57 +01:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
* documentation for any purpose is hereby granted without fee, provided that
|
2006-07-02 04:46:38 +02:00
|
|
|
* the above copyright notice appear in all copies and that both that copyright
|
|
|
|
* notice and this permission notice appear in supporting documentation, and
|
|
|
|
* that the name of the copyright holders not be used in advertising or
|
|
|
|
* publicity pertaining to distribution of the software without specific,
|
|
|
|
* written prior permission. The copyright holders make no representations
|
|
|
|
* about the suitability of this software for any purpose. It is provided "as
|
|
|
|
* is" without express or implied warranty.
|
2003-11-14 17:48:57 +01:00
|
|
|
*
|
2006-07-02 04:46:38 +02:00
|
|
|
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
2003-11-14 17:48:57 +01:00
|
|
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
2006-07-02 04:46:38 +02:00
|
|
|
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
2003-11-14 17:48:57 +01:00
|
|
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
2006-07-02 04:46:38 +02:00
|
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
|
|
* OF THIS SOFTWARE.
|
|
|
|
*
|
|
|
|
* Author: Jim Gettys, Hewlett-Packard Company, Inc.
|
|
|
|
* Keith Packard, Intel Corporation
|
2003-11-14 17:48:57 +01:00
|
|
|
*/
|
|
|
|
|
2005-07-03 09:02:09 +02:00
|
|
|
#ifdef HAVE_DIX_CONFIG_H
|
|
|
|
#include <dix-config.h>
|
|
|
|
#endif
|
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
#ifndef _RANDRSTR_H_
|
|
|
|
#define _RANDRSTR_H_
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
#include <X11/X.h>
|
|
|
|
#include <X11/Xproto.h>
|
|
|
|
#include "misc.h"
|
|
|
|
#include "os.h"
|
|
|
|
#include "dixstruct.h"
|
|
|
|
#include "resource.h"
|
|
|
|
#include "scrnintstr.h"
|
|
|
|
#include "windowstr.h"
|
|
|
|
#include "pixmapstr.h"
|
|
|
|
#include "extnsionst.h"
|
|
|
|
#include "servermd.h"
|
2008-03-21 10:39:49 +01:00
|
|
|
#include "rrtransform.h"
|
2006-09-17 08:21:37 +02:00
|
|
|
#include <X11/extensions/randr.h>
|
2006-07-02 04:46:38 +02:00
|
|
|
#include <X11/extensions/randrproto.h>
|
2012-03-21 20:55:09 +01:00
|
|
|
#include <X11/extensions/render.h> /* we share subpixel order information */
|
2006-09-17 08:21:37 +02:00
|
|
|
#include "picturestr.h"
|
|
|
|
#include <X11/Xfuncproto.h>
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
/* required for ABI compatibility for now */
|
2006-09-17 08:21:37 +02:00
|
|
|
#define RANDR_10_INTERFACE 1
|
2006-09-20 07:48:54 +02:00
|
|
|
#define RANDR_12_INTERFACE 1
|
2012-03-21 20:55:09 +01:00
|
|
|
#define RANDR_13_INTERFACE 1 /* requires RANDR_12_INTERFACE */
|
2008-03-17 22:13:09 +01:00
|
|
|
#define RANDR_GET_CRTC_INTERFACE 1
|
2006-07-17 07:21:11 +02:00
|
|
|
|
2013-02-05 16:46:06 +01:00
|
|
|
#define RANDR_INTERFACE_VERSION 0x0104
|
2008-03-10 19:29:07 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef XID RRMode;
|
|
|
|
typedef XID RROutput;
|
|
|
|
typedef XID RRCrtc;
|
2012-06-13 15:03:04 +02:00
|
|
|
typedef XID RRProvider;
|
2006-09-17 06:44:42 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT int RREventBase, RRErrorBase;
|
|
|
|
|
|
|
|
extern _X_EXPORT int (*ProcRandrVector[RRNumberRequests]) (ClientPtr);
|
|
|
|
extern _X_EXPORT int (*SProcRandrVector[RRNumberRequests]) (ClientPtr);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
2006-07-17 07:21:11 +02:00
|
|
|
/*
|
|
|
|
* Modeline for a monitor. Name follows directly after this struct
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define RRModeName(pMode) ((char *) (pMode + 1))
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef struct _rrMode RRModeRec, *RRModePtr;
|
|
|
|
typedef struct _rrPropertyValue RRPropertyValueRec, *RRPropertyValuePtr;
|
|
|
|
typedef struct _rrProperty RRPropertyRec, *RRPropertyPtr;
|
|
|
|
typedef struct _rrCrtc RRCrtcRec, *RRCrtcPtr;
|
|
|
|
typedef struct _rrOutput RROutputRec, *RROutputPtr;
|
2012-06-13 15:03:04 +02:00
|
|
|
typedef struct _rrProvider RRProviderRec, *RRProviderPtr;
|
2006-09-17 06:44:42 +02:00
|
|
|
|
|
|
|
struct _rrMode {
|
2012-03-21 20:55:09 +01:00
|
|
|
int refcnt;
|
|
|
|
xRRModeInfo mode;
|
|
|
|
char *name;
|
|
|
|
ScreenPtr userScreen;
|
2006-09-17 06:44:42 +02:00
|
|
|
};
|
|
|
|
|
2006-11-21 10:15:26 +01:00
|
|
|
struct _rrPropertyValue {
|
2012-03-21 20:55:09 +01:00
|
|
|
Atom type; /* ignored by server */
|
|
|
|
short format; /* format of data for swapping - 8,16,32 */
|
|
|
|
long size; /* size of data in (format/8) bytes */
|
2013-12-15 10:05:51 +01:00
|
|
|
void *data; /* private to client */
|
2006-11-21 10:15:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _rrProperty {
|
2012-03-21 20:55:09 +01:00
|
|
|
RRPropertyPtr next;
|
|
|
|
ATOM propertyName;
|
|
|
|
Bool is_pending;
|
|
|
|
Bool range;
|
|
|
|
Bool immutable;
|
|
|
|
int num_valid;
|
|
|
|
INT32 *valid_values;
|
|
|
|
RRPropertyValueRec current, pending;
|
2006-11-21 10:15:26 +01:00
|
|
|
};
|
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
struct _rrCrtc {
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtc id;
|
|
|
|
ScreenPtr pScreen;
|
|
|
|
RRModePtr mode;
|
|
|
|
int x, y;
|
|
|
|
Rotation rotation;
|
|
|
|
Rotation rotations;
|
|
|
|
Bool changed;
|
|
|
|
int numOutputs;
|
|
|
|
RROutputPtr *outputs;
|
|
|
|
int gammaSize;
|
|
|
|
CARD16 *gammaRed;
|
|
|
|
CARD16 *gammaBlue;
|
|
|
|
CARD16 *gammaGreen;
|
|
|
|
void *devPrivate;
|
|
|
|
Bool transforms;
|
|
|
|
RRTransformRec client_pending_transform;
|
|
|
|
RRTransformRec client_current_transform;
|
|
|
|
PictTransform transform;
|
2008-03-19 08:46:35 +01:00
|
|
|
struct pict_f_transform f_transform;
|
|
|
|
struct pict_f_transform f_inverse;
|
2012-06-20 13:37:12 +02:00
|
|
|
|
|
|
|
PixmapPtr scanout_pixmap;
|
2006-09-17 06:44:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _rrOutput {
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutput id;
|
|
|
|
ScreenPtr pScreen;
|
|
|
|
char *name;
|
|
|
|
int nameLength;
|
|
|
|
CARD8 connection;
|
|
|
|
CARD8 subpixelOrder;
|
|
|
|
int mmWidth;
|
|
|
|
int mmHeight;
|
|
|
|
RRCrtcPtr crtc;
|
|
|
|
int numCrtcs;
|
|
|
|
RRCrtcPtr *crtcs;
|
|
|
|
int numClones;
|
|
|
|
RROutputPtr *clones;
|
|
|
|
int numModes;
|
|
|
|
int numPreferred;
|
|
|
|
RRModePtr *modes;
|
|
|
|
int numUserModes;
|
|
|
|
RRModePtr *userModes;
|
|
|
|
Bool changed;
|
|
|
|
RRPropertyPtr properties;
|
|
|
|
Bool pendingProperties;
|
|
|
|
void *devPrivate;
|
2006-09-17 06:44:42 +02:00
|
|
|
};
|
|
|
|
|
2012-06-13 15:03:04 +02:00
|
|
|
struct _rrProvider {
|
|
|
|
RRProvider id;
|
|
|
|
ScreenPtr pScreen;
|
|
|
|
uint32_t capabilities;
|
|
|
|
char *name;
|
|
|
|
int nameLength;
|
|
|
|
RRPropertyPtr properties;
|
|
|
|
Bool pendingProperties;
|
2013-10-30 12:33:49 +01:00
|
|
|
Bool changed;
|
2012-07-05 16:41:38 +02:00
|
|
|
struct _rrProvider *offload_sink;
|
2012-07-05 16:41:22 +02:00
|
|
|
struct _rrProvider *output_source;
|
2012-06-13 15:03:04 +02:00
|
|
|
};
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
#if RANDR_12_INTERFACE
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef Bool (*RRScreenSetSizeProcPtr) (ScreenPtr pScreen,
|
|
|
|
CARD16 width,
|
|
|
|
CARD16 height,
|
|
|
|
CARD32 mmWidth, CARD32 mmHeight);
|
|
|
|
|
|
|
|
typedef Bool (*RRCrtcSetProcPtr) (ScreenPtr pScreen,
|
|
|
|
RRCrtcPtr crtc,
|
|
|
|
RRModePtr mode,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
Rotation rotation,
|
|
|
|
int numOutputs, RROutputPtr * outputs);
|
|
|
|
|
|
|
|
typedef Bool (*RRCrtcSetGammaProcPtr) (ScreenPtr pScreen, RRCrtcPtr crtc);
|
|
|
|
|
|
|
|
typedef Bool (*RRCrtcGetGammaProcPtr) (ScreenPtr pScreen, RRCrtcPtr crtc);
|
|
|
|
|
|
|
|
typedef Bool (*RROutputSetPropertyProcPtr) (ScreenPtr pScreen,
|
|
|
|
RROutputPtr output,
|
|
|
|
Atom property,
|
|
|
|
RRPropertyValuePtr value);
|
|
|
|
|
|
|
|
typedef Bool (*RROutputValidateModeProcPtr) (ScreenPtr pScreen,
|
|
|
|
RROutputPtr output,
|
|
|
|
RRModePtr mode);
|
|
|
|
|
|
|
|
typedef void (*RRModeDestroyProcPtr) (ScreenPtr pScreen, RRModePtr mode);
|
2007-02-19 08:49:38 +01:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
#endif
|
2006-07-02 04:46:38 +02:00
|
|
|
|
2008-03-06 22:47:44 +01:00
|
|
|
#if RANDR_13_INTERFACE
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef Bool (*RROutputGetPropertyProcPtr) (ScreenPtr pScreen,
|
|
|
|
RROutputPtr output, Atom property);
|
|
|
|
typedef Bool (*RRGetPanningProcPtr) (ScreenPtr pScrn,
|
|
|
|
RRCrtcPtr crtc,
|
|
|
|
BoxPtr totalArea,
|
|
|
|
BoxPtr trackingArea, INT16 *border);
|
|
|
|
typedef Bool (*RRSetPanningProcPtr) (ScreenPtr pScrn,
|
|
|
|
RRCrtcPtr crtc,
|
|
|
|
BoxPtr totalArea,
|
|
|
|
BoxPtr trackingArea, INT16 *border);
|
|
|
|
|
|
|
|
#endif /* RANDR_13_INTERFACE */
|
|
|
|
|
2012-06-13 15:03:04 +02:00
|
|
|
typedef Bool (*RRProviderGetPropertyProcPtr) (ScreenPtr pScreen,
|
|
|
|
RRProviderPtr provider, Atom property);
|
|
|
|
typedef Bool (*RRProviderSetPropertyProcPtr) (ScreenPtr pScreen,
|
|
|
|
RRProviderPtr provider,
|
|
|
|
Atom property,
|
|
|
|
RRPropertyValuePtr value);
|
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef Bool (*RRGetInfoProcPtr) (ScreenPtr pScreen, Rotation * rotations);
|
api: rework the X server driver API to avoid global arrays.
This is a squash merge containing all the API changes, as
well as the video ABI bump.
Its been squashed to make bisection easier.
Full patch log below:
commit b202738bbf0c5a1c1172767119c2c71f1e7f8070
Author: Aaron Plattner <aplattner@nvidia.com>
Date: Mon May 14 15:16:11 2012 -0700
xfree86: Bump video ABI to 13.0
The ABI was broken by changes to convert from screen index numbers to ScreenPtr
/ ScrnInfoPtr in various structures and function signatures.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 3d5f7d9f8d408bcad3f83277d255f25d3b0edbf3
Author: Dave Airlie <airlied@redhat.com>
Date: Thu May 24 10:56:57 2012 +0100
xf86: xf86ClearEntityListForScreen should take a pScrn
When adding GPU screens this make life easier.
(also fix comment, as pointed out by Alan)
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit afee8b5ab4501597ecc1ade34124d7ca227ab055
Author: Dave Airlie <airlied@redhat.com>
Date: Thu May 24 07:07:32 2012 +0100
xf86i2c: add pscrn for drivers to use
This just adds a pScrn pointer into the struct for the drivers to use
instead of scrnIndex. Mostly scrnIndex is used for logging, but some
drivers use it to lookup xf86Screens, so let them stash a pScrn instead.
Removing the scrnIndex is a bit more involved and I'm not sure its worth
the effort. Doing i2c in the X server is legacy code as far as I'm concerned.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit ea5092f1f679691d187f1eee9427e6057beec56e
Author: Dave Airlie <airlied@redhat.com>
Date: Wed May 23 19:25:20 2012 +0100
dix/gc: consolidate GC object creation in one place
The standard GC create and scratch GC create were 90% the same really,
and I have a need in the future for creating GC objects without the
other bits, so wanted to avoid a third copy.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 3d91482ea9b4883e64e496f2768168e0ffa21ba1
Author: Dave Airlie <airlied@redhat.com>
Date: Wed May 23 10:24:06 2012 +0100
xf86: add a define to denote the new non-index interfaces are being used
This can be used by drivers to provide compatible APIs.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 37c3ae3e6cd4f3dedc72f371096d6743f8f99df3
Author: Dave Airlie <airlied@redhat.com>
Date: Wed May 23 15:09:12 2012 +0100
dix: make Create/Free scratch pixmaps take a ScreenPtr
While technically an API/ABI change I doubt anyone uses it,
but it helps in splitting screens up.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 75f2062a3fe94f04764ecc7d2ff2fbbeccb9da60
Author: Dave Airlie <airlied@redhat.com>
Date: Wed May 23 14:57:55 2012 +0100
xf86/xv: remove scrnIndexfrom xf86FindXvOptions.
Move this interface to taking an ScrnInfoPtr.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit f80c2374f40ea7b2ee0556e2e76cc07406f3d843
Author: Dave Airlie <airlied@redhat.com>
Date: Wed May 23 14:53:59 2012 +0100
xf86: make xf86DeleteScreen take a ScrnInfoPtr (v2)
stop passing indices into this function.
v2: drop flags argument.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 58824e414f35682435f15bfe6c4b656bd90b9235
Author: Dave Airlie <airlied@redhat.com>
Date: Wed May 23 14:48:09 2012 +0100
xf86: fix xf86IsScreenPrimary interface to take a pScrn (API/ABI)
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 6b4fc1f9d391bcdf7ca288766e49bce60f4635cd
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 14:18:59 2012 +0100
xserver: convert block/wakeup handlers to passing ScreenPtr (ABI/API) (v2)
Instead of passing an index, pass the actual ScreenPtr. This allows
more moving towards not abusing xf86Screens + screenInfo.
v2: drop the blockData/wakeupData args as per ajax's suggestion.,
fix docs.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 790d003de20fb47674420a24dadd92412d78620d
Author: Dave Airlie <airlied@gmail.com>
Date: Wed Apr 11 09:53:14 2012 +0100
xf86/common: remove some more pScrn->pScreen uses
remove some more conversions that appeared after api cleanups.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit aac85e18d1dd093f2cad6bd29375e40bd7af0b8f
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 16:34:53 2012 +0100
ddc: change API to take ScrnInfoPtr (v2)
This removes all xf86Screens usage from ddc code,
it modifies the API for some functions to avoid taking indices.
v2: address Alan's comments about dropping DDC2Init parameter.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit fe3f57b6eaf6860a33876a54f9439f69578f03a5
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 16:31:26 2012 +0100
vbe: don't use index for VBEInterpretPanelID (API)
Remove use of xf86screens from vbe module.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit abf1965f4ed91529036d3fdb470d6a3ce6f29675
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 16:25:11 2012 +0100
int10/vbe: don't use xf86Screens. (ABI) (v3)
Pass the ScrnInfoPtr instead of the index in the int10 struct.
This saves us using it to dereference xf86Screens.
v2: address Alan's comment to fix struct alignment.
v3: squash in all the int10 fixes, test the vm86 code builds,
after comments by Keith.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 23cca612b4fb5efc33683c7624b803b457387e3d
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 15:30:18 2012 +0100
xserver: drop index argument to ScreenInit (ABI/API) (v2)
This drops the index argument, its the same as pScreen->myNum,
and its the last major index abuse I can find.
v2: address Alan's review - update docs, fix xwin/xnest/darwin
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 40d360e2d7e832407f3ed64e3a02c27ecc89a960
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 15:23:01 2012 +0100
xf86: migrate PointerMoved from index to ScrnInfoPtr (ABI/API)
This migrates PointerMoved from an index to ScrnInfoPtr.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit aa60a2f38679d0eeb979a9c2648c9bc771409bf9
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 15:20:46 2012 +0100
xf86: migrate PMEvent to a ScrnInfoPtr (ABI/API)
This migrates the PMEvent from index to ScrnInfoPtr.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit d3f28ef44371ed4a039ffc5dd7eb6408d1269ba2
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 15:18:30 2012 +0100
xf86: migrate SetDGAMode from index to ScrnInfoPtr (ABI/API)
This migrates the SetDGAMode callback from an index to ScrnInfoPtr.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit baf5e4818a74f2b68c3dfdcc56f54322351039a0
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 15:14:11 2012 +0100
xf86: migrate ChangeGamma from index to ScrnInfoPtr (ABI/API) (v2)
This migrates the ChangeGamma interface to avoid passing a index.
v2: fix xf86RandR12.c + xf86cmap.c call
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 51e5f90ada929d6b23176090badbb42fdb3fa550
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 15:11:09 2012 +0100
xf86/exa: migrate index to screen types for EnableDisableFBAccess (ABI/API)
The EXA interface migrates to ScreenPtr,
and the xf86 interface migrated to ScrnInfoPtr.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 94f1f21d17e86f96d4a54292a399160950087675
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 15:02:11 2012 +0100
xf86: migrate ValidMode callback to ScrnInfoPtr (ABI/API)
This migrates the ValidMode to passing a ScrnInfoPtr instead
of an index.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 3f8f18198fed4f39ec805b508a3482e91eea26b2
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 14:59:46 2012 +0100
xf86: migrate SwitchMode to taking ScrnInfoPtr (ABI/API) (v2)
This migrate the SwitchMode interface to take a ScrnInfoPtr
instead of an index.
v2: drop flags.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit d06a038a5c49328ab3a8d969d24f9fcd22c63202
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 14:50:37 2012 +0100
xf86: move AdjustFrame to passing ScrnInfoPtr (ABI/API) (v2)
This converts AdjustFrame code paths to passing a ScrnInfoPtr
instead of an integer index.
v2: drop flags args.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 53d2f8608ffd4090d08e7d5cf2e92fb954959b90
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 14:41:27 2012 +0100
xf86: modify FreeScreen callback to take pScrn instead of index. (ABI/API) (v2)
Another index->pScrn conversion.
v2: drop flags arg.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 60db37c0b247052e0f5c54b1921fe58a3609c2e3
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 14:35:41 2012 +0100
xf86: change EnterVT/LeaveVT to take a ScrnInfoPtr (ABI/API break) (v2)
This modifies the EnterVT/LeaveVT interfaces to take a ScrnInfoPtr
instead of an index into xf86Screens. This allows dropping more
public dereferences of the xf86Screens and screenInfo.
v2: drop flags args as suggested by Keith, fix docs.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
commit 06729dbbc804a20242e6499f446acb5d94023c3c
Author: Dave Airlie <airlied@gmail.com>
Date: Tue Apr 10 14:04:59 2012 +0100
xserver: remove index from CloseScreen (API/ABI breakage)
This drops the index from the CloseScreen callback,
its always been useless really, since the pScreen contains it.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05 14:22:18 +02:00
|
|
|
typedef Bool (*RRCloseScreenProcPtr) (ScreenPtr pscreen);
|
2006-07-02 04:46:38 +02:00
|
|
|
|
2012-07-05 16:41:22 +02:00
|
|
|
typedef Bool (*RRProviderSetOutputSourceProcPtr)(ScreenPtr pScreen,
|
|
|
|
RRProviderPtr provider,
|
|
|
|
RRProviderPtr output_source);
|
|
|
|
|
2012-07-05 16:41:38 +02:00
|
|
|
typedef Bool (*RRProviderSetOffloadSinkProcPtr)(ScreenPtr pScreen,
|
|
|
|
RRProviderPtr provider,
|
|
|
|
RRProviderPtr offload_sink);
|
|
|
|
|
|
|
|
|
2013-01-09 03:58:28 +01:00
|
|
|
typedef void (*RRProviderDestroyProcPtr)(ScreenPtr pScreen,
|
|
|
|
RRProviderPtr provider);
|
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
/* These are for 1.0 compatibility */
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2006-07-17 07:21:11 +02:00
|
|
|
typedef struct _rrRefresh {
|
2012-03-21 20:55:09 +01:00
|
|
|
CARD16 rate;
|
|
|
|
RRModePtr mode;
|
2006-09-17 06:44:42 +02:00
|
|
|
} RRScreenRate, *RRScreenRatePtr;
|
2006-07-17 07:21:11 +02:00
|
|
|
|
|
|
|
typedef struct _rrScreenSize {
|
2012-03-21 20:55:09 +01:00
|
|
|
int id;
|
|
|
|
short width, height;
|
|
|
|
short mmWidth, mmHeight;
|
|
|
|
int nRates;
|
2006-09-17 06:44:42 +02:00
|
|
|
RRScreenRatePtr pRates;
|
|
|
|
} RRScreenSize, *RRScreenSizePtr;
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
#ifdef RANDR_10_INTERFACE
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef Bool (*RRSetConfigProcPtr) (ScreenPtr pScreen,
|
|
|
|
Rotation rotation,
|
|
|
|
int rate, RRScreenSizePtr pSize);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2006-07-02 04:46:38 +02:00
|
|
|
#endif
|
|
|
|
|
2012-06-20 13:37:12 +02:00
|
|
|
typedef Bool (*RRCrtcSetScanoutPixmapProcPtr)(RRCrtcPtr crtc, PixmapPtr pixmap);
|
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
typedef struct _rrScrPriv {
|
2006-07-17 07:21:11 +02:00
|
|
|
/*
|
|
|
|
* 'public' part of the structure; DDXen fill this in
|
|
|
|
* as they initialize
|
|
|
|
*/
|
2006-09-17 08:21:37 +02:00
|
|
|
#if RANDR_10_INTERFACE
|
2012-03-21 20:55:09 +01:00
|
|
|
RRSetConfigProcPtr rrSetConfig;
|
2006-07-17 07:21:11 +02:00
|
|
|
#endif
|
2012-03-21 20:55:09 +01:00
|
|
|
RRGetInfoProcPtr rrGetInfo;
|
2006-09-17 08:21:37 +02:00
|
|
|
#if RANDR_12_INTERFACE
|
2012-03-21 20:55:09 +01:00
|
|
|
RRScreenSetSizeProcPtr rrScreenSetSize;
|
|
|
|
RRCrtcSetProcPtr rrCrtcSet;
|
|
|
|
RRCrtcSetGammaProcPtr rrCrtcSetGamma;
|
|
|
|
RRCrtcGetGammaProcPtr rrCrtcGetGamma;
|
|
|
|
RROutputSetPropertyProcPtr rrOutputSetProperty;
|
|
|
|
RROutputValidateModeProcPtr rrOutputValidateMode;
|
|
|
|
RRModeDestroyProcPtr rrModeDestroy;
|
2006-09-17 08:21:37 +02:00
|
|
|
#endif
|
2008-03-06 22:47:44 +01:00
|
|
|
#if RANDR_13_INTERFACE
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputGetPropertyProcPtr rrOutputGetProperty;
|
|
|
|
RRGetPanningProcPtr rrGetPanning;
|
|
|
|
RRSetPanningProcPtr rrSetPanning;
|
2008-03-06 22:47:44 +01:00
|
|
|
#endif
|
2012-06-20 13:37:12 +02:00
|
|
|
/* TODO #if RANDR_15_INTERFACE */
|
|
|
|
RRCrtcSetScanoutPixmapProcPtr rrCrtcSetScanoutPixmap;
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2012-07-05 16:41:22 +02:00
|
|
|
RRProviderSetOutputSourceProcPtr rrProviderSetOutputSource;
|
2012-07-05 16:41:38 +02:00
|
|
|
RRProviderSetOffloadSinkProcPtr rrProviderSetOffloadSink;
|
2012-06-13 15:03:04 +02:00
|
|
|
RRProviderGetPropertyProcPtr rrProviderGetProperty;
|
|
|
|
RRProviderSetPropertyProcPtr rrProviderSetProperty;
|
2006-07-17 07:21:11 +02:00
|
|
|
/*
|
|
|
|
* Private part of the structure; not considered part of the ABI
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
TimeStamp lastSetTime; /* last changed by client */
|
|
|
|
TimeStamp lastConfigTime; /* possible configs changed */
|
|
|
|
RRCloseScreenProcPtr CloseScreen;
|
2006-12-13 07:59:03 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool changed; /* some config changed */
|
|
|
|
Bool configChanged; /* configuration changed */
|
|
|
|
Bool layoutChanged; /* screen layout changed */
|
2013-10-30 12:33:50 +01:00
|
|
|
Bool resourcesChanged; /* screen resources change */
|
2006-12-13 07:59:03 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
CARD16 minWidth, minHeight;
|
|
|
|
CARD16 maxWidth, maxHeight;
|
|
|
|
CARD16 width, height; /* last known screen size */
|
|
|
|
CARD16 mmWidth, mmHeight; /* last known screen size */
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
int numOutputs;
|
|
|
|
RROutputPtr *outputs;
|
|
|
|
RROutputPtr primaryOutput;
|
2006-09-17 06:44:42 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
int numCrtcs;
|
|
|
|
RRCrtcPtr *crtcs;
|
2006-07-02 04:46:38 +02:00
|
|
|
|
2006-10-14 02:34:53 +02:00
|
|
|
/* Last known pointer position */
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcPtr pointerCrtc;
|
2006-10-14 02:34:53 +02:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
#ifdef RANDR_10_INTERFACE
|
2003-11-14 17:48:57 +01:00
|
|
|
/*
|
|
|
|
* Configuration information
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Rotation rotations;
|
|
|
|
CARD16 reqWidth, reqHeight;
|
|
|
|
|
|
|
|
int nSizes;
|
|
|
|
RRScreenSizePtr pSizes;
|
|
|
|
|
|
|
|
Rotation rotation;
|
|
|
|
int rate;
|
|
|
|
int size;
|
2006-07-02 04:46:38 +02:00
|
|
|
#endif
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool discontiguous;
|
2012-06-13 15:03:04 +02:00
|
|
|
|
|
|
|
RRProviderPtr provider;
|
2013-01-09 03:58:28 +01:00
|
|
|
|
|
|
|
RRProviderDestroyProcPtr rrProviderDestroy;
|
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
} rrScrPrivRec, *rrScrPrivPtr;
|
|
|
|
|
2010-04-27 02:22:21 +02:00
|
|
|
extern _X_EXPORT DevPrivateKeyRec rrPrivKeyRec;
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2010-04-27 02:22:21 +02:00
|
|
|
#define rrPrivKey (&rrPrivKeyRec)
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2007-08-28 15:28:25 +02:00
|
|
|
#define rrGetScrPriv(pScr) ((rrScrPrivPtr)dixLookupPrivate(&(pScr)->devPrivates, rrPrivKey))
|
2003-11-14 17:48:57 +01:00
|
|
|
#define rrScrPriv(pScr) rrScrPrivPtr pScrPriv = rrGetScrPriv(pScr)
|
2007-08-28 15:28:25 +02:00
|
|
|
#define SetRRScreen(s,p) dixSetPrivate(&(s)->devPrivates, rrPrivKey, p)
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2006-09-18 08:03:23 +02:00
|
|
|
/*
|
|
|
|
* each window has a list of clients requesting
|
|
|
|
* RRNotify events. Each client has a resource
|
|
|
|
* for each window it selects RRNotify input for,
|
|
|
|
* this resource is used to delete the RRNotifyRec
|
|
|
|
* entry from the per-window queue.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct _RREvent *RREventPtr;
|
|
|
|
|
|
|
|
typedef struct _RREvent {
|
2012-03-21 20:55:09 +01:00
|
|
|
RREventPtr next;
|
|
|
|
ClientPtr client;
|
|
|
|
WindowPtr window;
|
|
|
|
XID clientResource;
|
|
|
|
int mask;
|
2006-09-18 08:03:23 +02:00
|
|
|
} RREventRec;
|
|
|
|
|
|
|
|
typedef struct _RRTimes {
|
2012-03-21 20:55:09 +01:00
|
|
|
TimeStamp setTime;
|
|
|
|
TimeStamp configTime;
|
2006-09-18 08:03:23 +02:00
|
|
|
} RRTimesRec, *RRTimesPtr;
|
|
|
|
|
|
|
|
typedef struct _RRClient {
|
2012-03-21 20:55:09 +01:00
|
|
|
int major_version;
|
|
|
|
int minor_version;
|
2006-09-18 08:03:23 +02:00
|
|
|
/* RRTimesRec times[0]; */
|
|
|
|
} RRClientRec, *RRClientPtr;
|
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT RESTYPE RRClientType, RREventType; /* resource types for event masks */
|
2010-04-27 02:22:21 +02:00
|
|
|
extern _X_EXPORT DevPrivateKeyRec RRClientPrivateKeyRec;
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2010-04-27 02:22:21 +02:00
|
|
|
#define RRClientPrivateKey (&RRClientPrivateKeyRec)
|
2012-06-13 15:03:04 +02:00
|
|
|
extern _X_EXPORT RESTYPE RRCrtcType, RRModeType, RROutputType, RRProviderType;
|
2006-09-18 08:03:23 +02:00
|
|
|
|
2009-04-29 07:04:37 +02:00
|
|
|
#define VERIFY_RR_OUTPUT(id, ptr, a)\
|
|
|
|
{\
|
2013-12-15 10:05:51 +01:00
|
|
|
int rc = dixLookupResourceByType((void **)&(ptr), id,\
|
2009-04-29 07:04:37 +02:00
|
|
|
RROutputType, client, a);\
|
2009-11-09 17:12:22 +01:00
|
|
|
if (rc != Success) {\
|
|
|
|
client->errorValue = id;\
|
2010-04-25 08:56:36 +02:00
|
|
|
return rc;\
|
2009-11-09 17:12:22 +01:00
|
|
|
}\
|
2009-04-29 07:04:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#define VERIFY_RR_CRTC(id, ptr, a)\
|
|
|
|
{\
|
2013-12-15 10:05:51 +01:00
|
|
|
int rc = dixLookupResourceByType((void **)&(ptr), id,\
|
2009-04-29 07:04:37 +02:00
|
|
|
RRCrtcType, client, a);\
|
2009-11-09 17:12:22 +01:00
|
|
|
if (rc != Success) {\
|
|
|
|
client->errorValue = id;\
|
2010-04-25 08:56:36 +02:00
|
|
|
return rc;\
|
2009-11-09 17:12:22 +01:00
|
|
|
}\
|
2009-04-29 07:04:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#define VERIFY_RR_MODE(id, ptr, a)\
|
|
|
|
{\
|
2013-12-15 10:05:51 +01:00
|
|
|
int rc = dixLookupResourceByType((void **)&(ptr), id,\
|
2009-04-29 07:04:37 +02:00
|
|
|
RRModeType, client, a);\
|
2009-11-09 17:12:22 +01:00
|
|
|
if (rc != Success) {\
|
|
|
|
client->errorValue = id;\
|
2010-04-25 08:56:36 +02:00
|
|
|
return rc;\
|
2009-11-09 17:12:22 +01:00
|
|
|
}\
|
2009-04-29 07:04:37 +02:00
|
|
|
}
|
2006-09-20 07:48:54 +02:00
|
|
|
|
2012-06-13 15:03:04 +02:00
|
|
|
#define VERIFY_RR_PROVIDER(id, ptr, a)\
|
|
|
|
{\
|
2013-12-15 10:05:51 +01:00
|
|
|
int rc = dixLookupResourceByType((void **)&(ptr), id,\
|
2012-06-13 15:03:04 +02:00
|
|
|
RRProviderType, client, a);\
|
|
|
|
if (rc != Success) {\
|
|
|
|
client->errorValue = id;\
|
|
|
|
return rc;\
|
|
|
|
}\
|
|
|
|
}
|
|
|
|
|
2007-08-28 15:28:25 +02:00
|
|
|
#define GetRRClient(pClient) ((RRClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RRClientPrivateKey))
|
2006-09-18 08:03:23 +02:00
|
|
|
#define rrClientPriv(pClient) RRClientPtr pRRClient = GetRRClient(pClient)
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
#ifdef RANDR_12_INTERFACE
|
2006-07-02 04:46:38 +02:00
|
|
|
/*
|
2006-09-17 06:44:42 +02:00
|
|
|
* Set the range of sizes for the screen
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
RRScreenSetSizeRange(ScreenPtr pScreen,
|
|
|
|
CARD16 minWidth,
|
|
|
|
CARD16 minHeight, CARD16 maxWidth, CARD16 maxHeight);
|
2006-09-17 08:21:37 +02:00
|
|
|
#endif
|
2006-09-17 06:44:42 +02:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/* rrscreen.c */
|
2006-09-17 06:44:42 +02:00
|
|
|
/*
|
2006-09-17 08:21:37 +02:00
|
|
|
* Notify the extension that the screen size has been changed.
|
|
|
|
* The driver is responsible for calling this whenever it has changed
|
|
|
|
* the size of the screen
|
2006-09-17 06:44:42 +02:00
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRScreenSizeNotify(ScreenPtr pScreen);
|
2006-07-02 04:46:38 +02:00
|
|
|
|
|
|
|
/*
|
2006-09-17 08:21:37 +02:00
|
|
|
* Request that the screen be resized
|
2006-07-02 04:46:38 +02:00
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
RRScreenSizeSet(ScreenPtr pScreen,
|
|
|
|
CARD16 width, CARD16 height, CARD32 mmWidth, CARD32 mmHeight);
|
2006-09-17 06:44:42 +02:00
|
|
|
|
2006-09-21 07:43:05 +02:00
|
|
|
/*
|
|
|
|
* Send ConfigureNotify event to root window when 'something' happens
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRSendConfigNotify(ScreenPtr pScreen);
|
|
|
|
|
2006-09-20 07:48:54 +02:00
|
|
|
/*
|
|
|
|
* screen dispatch
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetScreenSizeRange(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRSetScreenSize(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetScreenResources(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetScreenResourcesCurrent(ClientPtr client);
|
2008-11-27 00:49:02 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRSetScreenConfig(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetScreenInfo(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
/*
|
2006-09-17 08:21:37 +02:00
|
|
|
* Deliver a ScreenNotify event
|
2006-09-17 06:44:42 +02:00
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRDeliverScreenEvent(ClientPtr client, WindowPtr pWin, ScreenPtr pScreen);
|
|
|
|
|
2013-10-30 12:33:50 +01:00
|
|
|
extern _X_EXPORT void
|
|
|
|
RRResourcesChanged(ScreenPtr pScreen);
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/* randr.c */
|
2013-01-09 05:23:57 +01:00
|
|
|
/* set a screen change on the primary screen */
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRSetChanged(ScreenPtr pScreen);
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Send all pending events
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRTellChanged(ScreenPtr pScreen);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
2006-09-18 08:03:23 +02:00
|
|
|
/*
|
|
|
|
* Poll the driver for changed information
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRGetInfo(ScreenPtr pScreen, Bool force_query);
|
2006-09-18 08:03:23 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT Bool RRInit(void);
|
2006-11-09 08:17:55 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool RRScreenInit(ScreenPtr pScreen);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT RROutputPtr RRFirstOutput(ScreenPtr pScreen);
|
2006-09-18 08:03:23 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT CARD16
|
2012-03-21 20:55:09 +01:00
|
|
|
RRVerticalRefresh(xRRModeInfo * mode);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
#ifdef RANDR_10_INTERFACE
|
2006-07-02 04:46:38 +02:00
|
|
|
/*
|
|
|
|
* This is the old interface, deprecated but left
|
|
|
|
* around for compatibility
|
|
|
|
*/
|
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
/*
|
|
|
|
* Then, register the specific size with the screen
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT RRScreenSizePtr
|
2012-03-21 20:55:09 +01:00
|
|
|
RRRegisterSize(ScreenPtr pScreen,
|
|
|
|
short width, short height, short mmWidth, short mmHeight);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRRegisterRate(ScreenPtr pScreen, RRScreenSizePtr pSize, int rate);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Finally, set the current configuration of the screen
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
RRSetCurrentConfig(ScreenPtr pScreen,
|
|
|
|
Rotation rotation, int rate, RRScreenSizePtr pSize);
|
|
|
|
|
|
|
|
extern _X_EXPORT Rotation RRGetRotation(ScreenPtr pScreen);
|
2006-09-17 06:44:42 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
#endif
|
2006-09-17 08:21:37 +02:00
|
|
|
|
|
|
|
/* rrcrtc.c */
|
2006-10-14 02:34:53 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Notify the CRTC of some change; layoutChanged indicates that
|
|
|
|
* some position or size element changed
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcChanged(RRCrtcPtr crtc, Bool layoutChanged);
|
2006-10-14 02:34:53 +02:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Create a CRTC
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT RRCrtcPtr RRCrtcCreate(ScreenPtr pScreen, void *devPrivate);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
2006-11-09 06:36:35 +01:00
|
|
|
/*
|
2007-03-24 07:41:36 +01:00
|
|
|
* Set the allowed rotations on a CRTC
|
2006-11-09 06:36:35 +01:00
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcSetRotations(RRCrtcPtr crtc, Rotation rotations);
|
2007-03-24 07:41:36 +01:00
|
|
|
|
2008-03-18 23:35:44 +01:00
|
|
|
/*
|
|
|
|
* Set whether transforms are allowed on a CRTC
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcSetTransformSupport(RRCrtcPtr crtc, Bool transforms);
|
2008-03-18 23:35:44 +01:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Notify the extension that the Crtc has been reconfigured,
|
|
|
|
* the driver calls this whenever it has updated the mode
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
RRCrtcNotify(RRCrtcPtr crtc,
|
|
|
|
RRModePtr mode,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
Rotation rotation,
|
|
|
|
RRTransformPtr transform, int numOutputs, RROutputPtr * outputs);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRDeliverCrtcEvent(ClientPtr client, WindowPtr pWin, RRCrtcPtr crtc);
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Request that the Crtc be reconfigured
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
RRCrtcSet(RRCrtcPtr crtc,
|
|
|
|
RRModePtr mode,
|
|
|
|
int x,
|
|
|
|
int y, Rotation rotation, int numOutput, RROutputPtr * outputs);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
2006-09-20 07:48:54 +02:00
|
|
|
/*
|
|
|
|
* Request that the Crtc gamma be changed
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcGammaSet(RRCrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
2008-12-17 16:56:26 +01:00
|
|
|
/*
|
|
|
|
* Request current gamma back from the DDX (if possible).
|
|
|
|
* This includes gamma size.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2008-12-17 16:56:26 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcGammaGet(RRCrtcPtr crtc);
|
2008-12-17 16:56:26 +01:00
|
|
|
|
2006-09-20 07:48:54 +02:00
|
|
|
/*
|
|
|
|
* Notify the extension that the Crtc gamma has been changed
|
|
|
|
* The driver calls this whenever it has changed the gamma values
|
|
|
|
* in the RRCrtcRec
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcGammaNotify(RRCrtcPtr crtc);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Set the size of the gamma table at server startup time
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcGammaSetSize(RRCrtcPtr crtc, int size);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
2007-02-19 08:49:38 +01:00
|
|
|
/*
|
|
|
|
* Return the area of the frame buffer scanned out by the crtc,
|
|
|
|
* taking into account the current mode and rotation
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height);
|
2007-01-24 17:29:20 +01:00
|
|
|
|
2008-03-13 22:26:01 +01:00
|
|
|
/*
|
|
|
|
* Return crtc transform
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT RRTransformPtr RRCrtcGetTransform(RRCrtcPtr crtc);
|
2008-03-13 22:26:01 +01:00
|
|
|
|
2008-03-14 05:31:12 +01:00
|
|
|
/*
|
|
|
|
* Check whether the pending and current transforms are the same
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcPendingTransform(RRCrtcPtr crtc);
|
2008-03-14 05:31:12 +01:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Destroy a Crtc at shutdown
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcDestroy(RRCrtcPtr crtc);
|
2008-03-14 05:31:12 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Set the pending CRTC transformation
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
RRCrtcTransformSet(RRCrtcPtr crtc,
|
|
|
|
PictTransformPtr transform,
|
|
|
|
struct pict_f_transform *f_transform,
|
|
|
|
struct pict_f_transform *f_inverse,
|
|
|
|
char *filter, int filter_len, xFixed * params, int nparams);
|
2008-03-14 05:31:12 +01:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Initialize crtc type
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcInit(void);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
2010-09-29 22:51:48 +02:00
|
|
|
/*
|
|
|
|
* Initialize crtc type error value
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcInitErrorValue(void);
|
2010-09-29 22:51:48 +02:00
|
|
|
|
2012-06-20 13:37:12 +02:00
|
|
|
/*
|
|
|
|
* Detach and free a scanout pixmap
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc);
|
|
|
|
|
2012-06-26 11:00:21 +02:00
|
|
|
extern _X_EXPORT Bool
|
|
|
|
RRReplaceScanoutPixmap(DrawablePtr pDrawable, PixmapPtr pPixmap, Bool enable);
|
|
|
|
|
2006-09-20 07:48:54 +02:00
|
|
|
/*
|
|
|
|
* Crtc dispatch
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetCrtcInfo(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRSetCrtcConfig(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetCrtcGammaSize(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetCrtcGamma(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRSetCrtcGamma(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRSetCrtcTransform(ClientPtr client);
|
2008-03-14 05:31:12 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetCrtcTransform(ClientPtr client);
|
2008-03-14 05:31:12 +01:00
|
|
|
|
2008-11-28 17:51:20 +01:00
|
|
|
int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetPanning(ClientPtr client);
|
2008-11-28 17:51:20 +01:00
|
|
|
|
|
|
|
int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRSetPanning(ClientPtr client);
|
2008-11-28 17:51:20 +01:00
|
|
|
|
2010-11-15 20:29:14 +01:00
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRConstrainCursorHarder(DeviceIntPtr, ScreenPtr, int, int *, int *);
|
2010-11-15 20:29:14 +01:00
|
|
|
|
2006-09-18 08:03:23 +02:00
|
|
|
/* rrdispatch.c */
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRClientKnowsRates(ClientPtr pClient);
|
2006-09-18 08:03:23 +02:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/* rrmode.c */
|
|
|
|
/*
|
|
|
|
* Find, and if necessary, create a mode
|
|
|
|
*/
|
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT RRModePtr RRModeGet(xRRModeInfo * modeInfo, const char *name);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Destroy a mode.
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRModeDestroy(RRModePtr mode);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
2006-11-09 06:36:35 +01:00
|
|
|
/*
|
|
|
|
* Return a list of modes that are valid for some output in pScreen
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT RRModePtr *RRModesForScreen(ScreenPtr pScreen, int *num_ret);
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Initialize mode type
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRModeInit(void);
|
2010-09-29 22:51:48 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Initialize mode type error value
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRModeInitErrorValue(void);
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRCreateMode(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRDestroyMode(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRAddOutputMode(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRDeleteOutputMode(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/* rroutput.c */
|
2006-10-14 02:34:53 +02:00
|
|
|
|
|
|
|
/*
|
2006-12-13 07:59:03 +01:00
|
|
|
* Notify the output of some change. configChanged indicates whether
|
|
|
|
* any external configuration (mode list, clones, connected status)
|
|
|
|
* has changed, or whether the change was strictly internal
|
|
|
|
* (which crtc is in use)
|
2006-10-14 02:34:53 +02:00
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputChanged(RROutputPtr output, Bool configChanged);
|
2006-10-14 02:34:53 +02:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Create an output
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT RROutputPtr
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputCreate(ScreenPtr pScreen,
|
|
|
|
const char *name, int nameLength, void *devPrivate);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Notify extension that output parameters have been changed
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputSetClones(RROutputPtr output, RROutputPtr * clones, int numClones);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
RROutputSetModes(RROutputPtr output,
|
|
|
|
RRModePtr * modes, int numModes, int numPreferred);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputAddUserMode(RROutputPtr output, RRModePtr mode);
|
2007-02-19 08:49:38 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputDeleteUserMode(RROutputPtr output, RRModePtr mode);
|
2007-02-19 08:49:38 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputSetCrtcs(RROutputPtr output, RRCrtcPtr * crtcs, int numCrtcs);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputSetConnection(RROutputPtr output, CARD8 connection);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputSetSubpixelOrder(RROutputPtr output, int subpixelOrder);
|
2006-09-19 09:46:27 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputSetPhysicalSize(RROutputPtr output, int mmWidth, int mmHeight);
|
2006-11-01 09:29:46 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRDeliverOutputEvent(ClientPtr client, WindowPtr pWin, RROutputPtr output);
|
2006-09-18 08:03:23 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputDestroy(RROutputPtr output);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetOutputInfo(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
2009-01-05 19:49:57 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRSetOutputPrimary(ClientPtr client);
|
2008-12-09 16:51:37 +01:00
|
|
|
|
2009-01-05 19:49:57 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetOutputPrimary(ClientPtr client);
|
2008-12-09 16:51:37 +01:00
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Initialize output type
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputInit(void);
|
2010-09-29 22:51:48 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Initialize output type error value
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputInitErrorValue(void);
|
|
|
|
|
2006-10-14 02:34:53 +02:00
|
|
|
/* rrpointer.c */
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRPointerMoved(ScreenPtr pScreen, int x, int y);
|
2006-10-14 02:34:53 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRPointerScreenConfigured(ScreenPtr pScreen);
|
2006-10-14 02:34:53 +02:00
|
|
|
|
2006-09-20 07:48:54 +02:00
|
|
|
/* rrproperty.c */
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRDeleteAllOutputProperties(RROutputPtr output);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT RRPropertyValuePtr
|
2012-03-21 20:55:09 +01:00
|
|
|
RRGetOutputProperty(RROutputPtr output, Atom property, Bool pending);
|
2006-11-21 10:15:26 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT RRPropertyPtr
|
2012-03-21 20:55:09 +01:00
|
|
|
RRQueryOutputProperty(RROutputPtr output, Atom property);
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRDeleteOutputProperty(RROutputPtr output, Atom property);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
RRPostPendingProperties(RROutputPtr output);
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
RRChangeOutputProperty(RROutputPtr output, Atom property, Atom type,
|
|
|
|
int format, int mode, unsigned long len,
|
2013-12-15 10:05:51 +01:00
|
|
|
void *value, Bool sendevent, Bool pending);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
RRConfigureOutputProperty(RROutputPtr output, Atom property,
|
|
|
|
Bool pending, Bool range, Bool immutable,
|
|
|
|
int num_values, INT32 *values);
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRChangeOutputProperty(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRGetOutputProperty(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRListOutputProperties(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRQueryOutputProperty(ClientPtr client);
|
2006-11-21 10:15:26 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRConfigureOutputProperty(ClientPtr client);
|
2006-11-21 10:15:26 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
ProcRRDeleteOutputProperty(ClientPtr client);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
2012-06-13 15:03:04 +02:00
|
|
|
/* rrprovider.c */
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRProviderInitErrorValue(void);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRGetProviders(ClientPtr client);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRGetProviderInfo(ClientPtr client);
|
|
|
|
|
2012-07-05 16:41:22 +02:00
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRSetProviderOutputSource(ClientPtr client);
|
2012-06-13 15:03:04 +02:00
|
|
|
|
2012-07-05 16:41:38 +02:00
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRSetProviderOffloadSink(ClientPtr client);
|
|
|
|
|
2012-06-13 15:03:04 +02:00
|
|
|
extern _X_EXPORT Bool
|
|
|
|
RRProviderInit(void);
|
|
|
|
|
|
|
|
extern _X_EXPORT RRProviderPtr
|
|
|
|
RRProviderCreate(ScreenPtr pScreen, const char *name,
|
|
|
|
int nameLength);
|
|
|
|
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRProviderDestroy (RRProviderPtr provider);
|
|
|
|
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRProviderSetCapabilities(RRProviderPtr provider, uint32_t capabilities);
|
|
|
|
|
|
|
|
extern _X_EXPORT Bool
|
|
|
|
RRProviderLookup(XID id, RRProviderPtr *provider_p);
|
|
|
|
|
2013-10-30 12:33:49 +01:00
|
|
|
extern _X_EXPORT void
|
|
|
|
RRDeliverProviderEvent(ClientPtr client, WindowPtr pWin, RRProviderPtr provider);
|
|
|
|
|
2012-06-13 15:03:04 +02:00
|
|
|
/* rrproviderproperty.c */
|
|
|
|
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRDeleteAllProviderProperties(RRProviderPtr provider);
|
|
|
|
|
|
|
|
extern _X_EXPORT RRPropertyValuePtr
|
|
|
|
RRGetProviderProperty(RRProviderPtr provider, Atom property, Bool pending);
|
|
|
|
|
|
|
|
extern _X_EXPORT RRPropertyPtr
|
|
|
|
RRQueryProviderProperty(RRProviderPtr provider, Atom property);
|
|
|
|
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRDeleteProviderProperty(RRProviderPtr provider, Atom property);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
RRChangeProviderProperty(RRProviderPtr provider, Atom property, Atom type,
|
|
|
|
int format, int mode, unsigned long len,
|
2013-12-15 10:05:51 +01:00
|
|
|
void *value, Bool sendevent, Bool pending);
|
2012-06-13 15:03:04 +02:00
|
|
|
|
2012-10-16 08:19:12 +02:00
|
|
|
extern _X_EXPORT int
|
|
|
|
RRConfigureProviderProperty(RRProviderPtr provider, Atom property,
|
|
|
|
Bool pending, Bool range, Bool immutable,
|
|
|
|
int num_values, INT32 *values);
|
|
|
|
|
|
|
|
extern _X_EXPORT Bool
|
|
|
|
RRPostProviderPendingProperties(RRProviderPtr provider);
|
|
|
|
|
2012-06-13 15:03:04 +02:00
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRGetProviderProperty(ClientPtr client);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRListProviderProperties(ClientPtr client);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRQueryProviderProperty(ClientPtr client);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRConfigureProviderProperty(ClientPtr client);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRChangeProviderProperty(ClientPtr client);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRDeleteProviderProperty(ClientPtr client);
|
2006-09-21 07:43:05 +02:00
|
|
|
/* rrxinerama.c */
|
2009-01-05 16:41:38 +01:00
|
|
|
#ifdef XINERAMA
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
RRXineramaExtensionInit(void);
|
2009-01-05 16:41:38 +01:00
|
|
|
#endif
|
2006-09-21 07:43:05 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
#endif /* _RANDRSTR_H_ */
|
2006-10-14 02:34:53 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
randr extension implementation structure
|
|
|
|
|
|
|
|
Query state:
|
|
|
|
ProcRRGetScreenInfo/ProcRRGetScreenResources
|
|
|
|
RRGetInfo
|
|
|
|
|
|
|
|
• Request configuration from driver, either 1.0 or 1.2 style
|
|
|
|
• These functions only record state changes, all
|
|
|
|
other actions are pended until RRTellChanged is called
|
|
|
|
|
|
|
|
->rrGetInfo
|
|
|
|
1.0:
|
|
|
|
RRRegisterSize
|
|
|
|
RRRegisterRate
|
|
|
|
RRSetCurrentConfig
|
|
|
|
1.2:
|
|
|
|
RRScreenSetSizeRange
|
|
|
|
RROutputSetCrtcs
|
|
|
|
RRModeGet
|
|
|
|
RROutputSetModes
|
|
|
|
RROutputSetConnection
|
|
|
|
RROutputSetSubpixelOrder
|
|
|
|
RROutputSetClones
|
|
|
|
RRCrtcNotify
|
|
|
|
|
|
|
|
• Must delay scanning configuration until after ->rrGetInfo returns
|
|
|
|
because some drivers will call SetCurrentConfig in the middle
|
|
|
|
of the ->rrGetInfo operation.
|
|
|
|
|
|
|
|
1.0:
|
|
|
|
|
|
|
|
• Scan old configuration, mirror to new structures
|
|
|
|
|
|
|
|
RRScanOldConfig
|
|
|
|
RRCrtcCreate
|
|
|
|
RROutputCreate
|
|
|
|
RROutputSetCrtcs
|
|
|
|
RROutputSetConnection
|
|
|
|
RROutputSetSubpixelOrder
|
|
|
|
RROldModeAdd • This adds modes one-at-a-time
|
|
|
|
RRModeGet
|
|
|
|
RRCrtcNotify
|
|
|
|
|
|
|
|
• send events, reset pointer if necessary
|
|
|
|
|
|
|
|
RRTellChanged
|
|
|
|
WalkTree (sending events)
|
|
|
|
|
|
|
|
• when layout has changed:
|
|
|
|
RRPointerScreenConfigured
|
|
|
|
RRSendConfigNotify
|
|
|
|
|
|
|
|
Asynchronous state setting (1.2 only)
|
|
|
|
When setting state asynchronously, the driver invokes the
|
|
|
|
->rrGetInfo function and then calls RRTellChanged to flush
|
|
|
|
the changes to the clients and reset pointer if necessary
|
|
|
|
|
|
|
|
Set state
|
|
|
|
|
|
|
|
ProcRRSetScreenConfig
|
|
|
|
RRCrtcSet
|
|
|
|
1.2:
|
|
|
|
->rrCrtcSet
|
|
|
|
RRCrtcNotify
|
|
|
|
1.0:
|
|
|
|
->rrSetConfig
|
|
|
|
RRCrtcNotify
|
|
|
|
RRTellChanged
|
|
|
|
*/
|