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>
|
2006-09-17 08:21:37 +02:00
|
|
|
#include <X11/extensions/render.h> /* we share subpixel order information */
|
|
|
|
#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
|
2008-03-06 22:47:44 +01:00
|
|
|
#define RANDR_13_INTERFACE 1 /* requires RANDR_12_INTERFACE */
|
2010-12-04 07:08:06 +01:00
|
|
|
#define RANDR_14_INTERFACE 1 /* requires RANDR_13_INTERFACE */
|
2008-03-17 22:13:09 +01:00
|
|
|
#define RANDR_GET_CRTC_INTERFACE 1
|
2006-07-17 07:21:11 +02:00
|
|
|
|
2010-12-04 07:08:06 +01:00
|
|
|
#define RANDR_INTERFACE_VERSION 0x0104
|
2008-03-10 19:29:07 +01:00
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
typedef XID RRMode;
|
|
|
|
typedef XID RROutput;
|
|
|
|
typedef XID RRCrtc;
|
|
|
|
|
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 RREventBase, RRErrorBase;
|
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 (*ProcRandrVector[RRNumberRequests])(ClientPtr);
|
|
|
|
extern _X_EXPORT int (*SProcRandrVector[RRNumberRequests])(ClientPtr);
|
2006-09-18 08:03:23 +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))
|
2006-11-21 10:15:26 +01:00
|
|
|
typedef struct _rrMode RRModeRec, *RRModePtr;
|
|
|
|
typedef struct _rrPropertyValue RRPropertyValueRec, *RRPropertyValuePtr;
|
|
|
|
typedef struct _rrProperty RRPropertyRec, *RRPropertyPtr;
|
|
|
|
typedef struct _rrCrtc RRCrtcRec, *RRCrtcPtr;
|
2010-12-05 04:22:11 +01:00
|
|
|
typedef struct _rrScreenConfig RRScreenConfigRec, *RRScreenConfigPtr;
|
|
|
|
typedef struct _rrCrtcConfig RRCrtcConfigRec, *RRCrtcConfigPtr;
|
2006-11-21 10:15:26 +01:00
|
|
|
typedef struct _rrOutput RROutputRec, *RROutputPtr;
|
2006-09-17 06:44:42 +02:00
|
|
|
|
|
|
|
struct _rrMode {
|
|
|
|
int refcnt;
|
|
|
|
xRRModeInfo mode;
|
|
|
|
char *name;
|
2007-02-19 08:49:38 +01:00
|
|
|
ScreenPtr userScreen;
|
2006-09-17 06:44:42 +02:00
|
|
|
};
|
|
|
|
|
2006-11-21 10:15:26 +01:00
|
|
|
struct _rrPropertyValue {
|
|
|
|
Atom type; /* ignored by server */
|
|
|
|
short format; /* format of data for swapping - 8,16,32 */
|
|
|
|
long size; /* size of data in (format/8) bytes */
|
|
|
|
pointer data; /* private to client */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _rrProperty {
|
|
|
|
RRPropertyPtr next;
|
|
|
|
ATOM propertyName;
|
|
|
|
Bool is_pending;
|
|
|
|
Bool range;
|
|
|
|
Bool immutable;
|
|
|
|
int num_valid;
|
|
|
|
INT32 *valid_values;
|
|
|
|
RRPropertyValueRec current, pending;
|
|
|
|
};
|
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
struct _rrCrtc {
|
|
|
|
RRCrtc id;
|
2006-07-02 04:46:38 +02:00
|
|
|
ScreenPtr pScreen;
|
2006-09-17 06:44:42 +02:00
|
|
|
RRModePtr mode;
|
2006-07-02 04:46:38 +02:00
|
|
|
int x, y;
|
|
|
|
Rotation rotation;
|
2006-09-17 06:44:42 +02:00
|
|
|
Rotation rotations;
|
|
|
|
Bool changed;
|
2006-09-17 08:21:37 +02:00
|
|
|
int numOutputs;
|
|
|
|
RROutputPtr *outputs;
|
2006-09-20 07:48:54 +02:00
|
|
|
int gammaSize;
|
|
|
|
CARD16 *gammaRed;
|
|
|
|
CARD16 *gammaBlue;
|
|
|
|
CARD16 *gammaGreen;
|
2006-09-17 06:44:42 +02:00
|
|
|
void *devPrivate;
|
2008-03-18 23:35:44 +01:00
|
|
|
Bool transforms;
|
2010-12-03 22:00:46 +01:00
|
|
|
PixmapPtr scanoutPixmap;
|
2008-03-15 08:36:45 +01:00
|
|
|
RRTransformRec client_pending_transform;
|
|
|
|
RRTransformRec client_current_transform;
|
2010-12-04 07:08:06 +01:00
|
|
|
PictTransform client_sprite_position_transform;
|
|
|
|
PictTransform client_sprite_image_transform;
|
|
|
|
struct pict_f_transform client_sprite_f_position_transform;
|
|
|
|
struct pict_f_transform client_sprite_f_image_transform;
|
|
|
|
|
2008-03-14 05:31:12 +01:00
|
|
|
PictTransform transform;
|
2008-03-19 08:46:35 +01:00
|
|
|
struct pict_f_transform f_transform;
|
|
|
|
struct pict_f_transform f_inverse;
|
2010-12-04 07:08:06 +01:00
|
|
|
struct pict_f_transform f_sprite_position; /* crtc from screen */
|
|
|
|
struct pict_f_transform f_sprite_image_inverse; /* image from crtc */
|
2006-09-17 06:44:42 +02:00
|
|
|
};
|
|
|
|
|
2010-12-05 04:22:11 +01:00
|
|
|
struct _rrScreenConfig {
|
|
|
|
CARD16 screen_pixmap_width;
|
|
|
|
CARD16 screen_pixmap_height;
|
|
|
|
CARD16 screen_width;
|
|
|
|
CARD16 screen_height;
|
|
|
|
CARD32 mm_width;
|
|
|
|
CARD32 mm_height;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _rrCrtcConfig {
|
|
|
|
RRCrtcPtr crtc;
|
|
|
|
int x, y;
|
|
|
|
RRModePtr mode;
|
|
|
|
Rotation rotation;
|
|
|
|
int numOutputs;
|
|
|
|
RROutputPtr *outputs;
|
2010-12-06 05:55:46 +01:00
|
|
|
PictTransform sprite_position_transform;
|
|
|
|
PictTransform sprite_image_transform;
|
|
|
|
struct pict_f_transform sprite_position_f_transform;
|
|
|
|
struct pict_f_transform sprite_image_f_transform;
|
2010-12-05 04:22:11 +01:00
|
|
|
PixmapPtr pixmap;
|
|
|
|
int pixmap_x, pixmap_y;
|
|
|
|
};
|
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
struct _rrOutput {
|
|
|
|
RROutput id;
|
|
|
|
ScreenPtr pScreen;
|
|
|
|
char *name;
|
|
|
|
int nameLength;
|
|
|
|
CARD8 connection;
|
|
|
|
CARD8 subpixelOrder;
|
2006-11-01 09:29:46 +01:00
|
|
|
int mmWidth;
|
|
|
|
int mmHeight;
|
2006-09-17 06:44:42 +02:00
|
|
|
RRCrtcPtr crtc;
|
|
|
|
int numCrtcs;
|
|
|
|
RRCrtcPtr *crtcs;
|
|
|
|
int numClones;
|
2006-09-18 08:03:23 +02:00
|
|
|
RROutputPtr *clones;
|
2006-09-17 06:44:42 +02:00
|
|
|
int numModes;
|
2006-10-06 07:31:35 +02:00
|
|
|
int numPreferred;
|
2006-09-17 06:44:42 +02:00
|
|
|
RRModePtr *modes;
|
2007-02-19 08:49:38 +01:00
|
|
|
int numUserModes;
|
|
|
|
RRModePtr *userModes;
|
2006-09-17 06:44:42 +02:00
|
|
|
Bool changed;
|
2006-11-21 10:15:26 +01:00
|
|
|
RRPropertyPtr properties;
|
2007-03-24 07:41:36 +01:00
|
|
|
Bool pendingProperties;
|
2006-09-17 06:44:42 +02:00
|
|
|
void *devPrivate;
|
|
|
|
};
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
#if RANDR_12_INTERFACE
|
2006-09-20 07:48:54 +02:00
|
|
|
typedef Bool (*RRScreenSetSizeProcPtr) (ScreenPtr pScreen,
|
2006-07-02 04:46:38 +02:00
|
|
|
CARD16 width,
|
|
|
|
CARD16 height,
|
2010-12-06 05:57:47 +01:00
|
|
|
CARD16 pixWidth,
|
|
|
|
CARD16 pixHeight,
|
2006-09-17 08:21:37 +02:00
|
|
|
CARD32 mmWidth,
|
|
|
|
CARD32 mmHeight);
|
2006-07-02 04:46:38 +02:00
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
typedef Bool (*RRCrtcSetProcPtr) (ScreenPtr pScreen,
|
|
|
|
RRCrtcPtr crtc,
|
|
|
|
RRModePtr mode,
|
2006-07-02 04:46:38 +02:00
|
|
|
int x,
|
|
|
|
int y,
|
2006-09-17 06:44:42 +02:00
|
|
|
Rotation rotation,
|
2006-09-17 08:21:37 +02:00
|
|
|
int numOutputs,
|
2010-12-03 22:00:46 +01:00
|
|
|
RROutputPtr *outputs,
|
|
|
|
PixmapPtr scanout_pixmap);
|
2006-09-20 07:48:54 +02:00
|
|
|
|
|
|
|
typedef Bool (*RRCrtcSetGammaProcPtr) (ScreenPtr pScreen,
|
|
|
|
RRCrtcPtr crtc);
|
|
|
|
|
2008-12-17 16:56:26 +01:00
|
|
|
typedef Bool (*RRCrtcGetGammaProcPtr) (ScreenPtr pScreen,
|
|
|
|
RRCrtcPtr crtc);
|
|
|
|
|
2006-11-21 10:15:26 +01:00
|
|
|
typedef Bool (*RROutputSetPropertyProcPtr) (ScreenPtr pScreen,
|
|
|
|
RROutputPtr output,
|
|
|
|
Atom property,
|
|
|
|
RRPropertyValuePtr value);
|
2006-10-06 07:31:35 +02:00
|
|
|
|
2007-02-19 08:49:38 +01:00
|
|
|
typedef Bool (*RROutputValidateModeProcPtr) (ScreenPtr pScreen,
|
|
|
|
RROutputPtr output,
|
|
|
|
RRModePtr mode);
|
|
|
|
|
|
|
|
typedef void (*RRModeDestroyProcPtr) (ScreenPtr pScreen,
|
|
|
|
RRModePtr mode);
|
|
|
|
|
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
|
|
|
|
typedef Bool (*RROutputGetPropertyProcPtr) (ScreenPtr pScreen,
|
|
|
|
RROutputPtr output,
|
|
|
|
Atom property);
|
2008-11-28 17:51:20 +01:00
|
|
|
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);
|
|
|
|
|
2008-03-06 22:47:44 +01:00
|
|
|
#endif /* RANDR_13_INTERFACE */
|
|
|
|
|
2006-07-02 04:46:38 +02:00
|
|
|
typedef Bool (*RRGetInfoProcPtr) (ScreenPtr pScreen, Rotation *rotations);
|
|
|
|
typedef Bool (*RRCloseScreenProcPtr) ( int i, ScreenPtr pscreen);
|
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
/* These are for 1.0 compatibility */
|
|
|
|
|
2006-07-17 07:21:11 +02:00
|
|
|
typedef struct _rrRefresh {
|
2006-09-17 06:44:42 +02:00
|
|
|
CARD16 rate;
|
|
|
|
RRModePtr mode;
|
|
|
|
} RRScreenRate, *RRScreenRatePtr;
|
2006-07-17 07:21:11 +02:00
|
|
|
|
|
|
|
typedef struct _rrScreenSize {
|
|
|
|
int id;
|
|
|
|
short width, height;
|
|
|
|
short mmWidth, mmHeight;
|
2006-09-17 06:44:42 +02:00
|
|
|
int nRates;
|
|
|
|
RRScreenRatePtr pRates;
|
|
|
|
} RRScreenSize, *RRScreenSizePtr;
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
#ifdef RANDR_10_INTERFACE
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
typedef Bool (*RRSetConfigProcPtr) (ScreenPtr pScreen,
|
|
|
|
Rotation rotation,
|
|
|
|
int rate,
|
|
|
|
RRScreenSizePtr pSize);
|
|
|
|
|
2006-07-02 04:46:38 +02:00
|
|
|
#endif
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2010-12-03 22:00:46 +01:00
|
|
|
typedef struct {
|
|
|
|
PictFormatPtr format;
|
|
|
|
int maxWidth, maxHeight;
|
|
|
|
int depth;
|
|
|
|
Rotation rotations;
|
|
|
|
} RRScanoutPixmapInfo;
|
|
|
|
|
|
|
|
typedef RRScanoutPixmapInfo *(*RRQueryScanoutPixmapsPtr) (ScreenPtr pScreen,
|
|
|
|
int *num_info);
|
|
|
|
|
|
|
|
typedef PixmapPtr (*RRCreateScanoutPixmapPtr) (ScreenPtr pScreen,
|
|
|
|
int width, int height, int depth,
|
|
|
|
Rotation rotations,
|
|
|
|
PictFormatPtr format);
|
2006-07-02 04:46:38 +02:00
|
|
|
|
2010-12-04 07:08:06 +01:00
|
|
|
typedef void (*RRSetCrtcSpriteTransformPtr) (ScreenPtr pScreen,
|
|
|
|
RRCrtcPtr randr_crtc,
|
|
|
|
struct pict_f_transform *position_transform,
|
|
|
|
struct pict_f_transform *image_transform);
|
|
|
|
|
|
|
|
typedef void (*RRGetCrtcSpriteTransformPtr) (ScreenPtr pScreen,
|
|
|
|
RRCrtcPtr randr_crtc,
|
|
|
|
struct pict_f_transform *position_transform,
|
|
|
|
struct pict_f_transform *image_transform);
|
|
|
|
|
2010-12-05 04:22:11 +01:00
|
|
|
typedef Bool (*RRSetCrtcConfigsPtr) (ScreenPtr screen,
|
|
|
|
RRScreenConfigPtr screen_config,
|
|
|
|
RRCrtcConfigPtr crtc_configs,
|
|
|
|
int num_configs);
|
|
|
|
|
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
|
2006-07-17 07:21:11 +02:00
|
|
|
RRSetConfigProcPtr rrSetConfig;
|
|
|
|
#endif
|
2003-11-14 17:48:57 +01:00
|
|
|
RRGetInfoProcPtr rrGetInfo;
|
2006-09-17 08:21:37 +02:00
|
|
|
#if RANDR_12_INTERFACE
|
2006-09-20 21:05:52 +02:00
|
|
|
RRScreenSetSizeProcPtr rrScreenSetSize;
|
2006-09-17 06:44:42 +02:00
|
|
|
RRCrtcSetProcPtr rrCrtcSet;
|
2006-09-20 07:48:54 +02:00
|
|
|
RRCrtcSetGammaProcPtr rrCrtcSetGamma;
|
2008-12-17 16:56:26 +01:00
|
|
|
RRCrtcGetGammaProcPtr rrCrtcGetGamma;
|
2006-10-06 07:31:35 +02:00
|
|
|
RROutputSetPropertyProcPtr rrOutputSetProperty;
|
2007-02-19 08:49:38 +01:00
|
|
|
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
|
|
|
|
RROutputGetPropertyProcPtr rrOutputGetProperty;
|
2008-11-28 17:51:20 +01:00
|
|
|
RRGetPanningProcPtr rrGetPanning;
|
|
|
|
RRSetPanningProcPtr rrSetPanning;
|
2008-03-06 22:47:44 +01:00
|
|
|
#endif
|
2010-12-03 22:00:46 +01:00
|
|
|
RRQueryScanoutPixmapsPtr rrQueryScanoutPixmaps;
|
|
|
|
RRCreateScanoutPixmapPtr rrCreateScanoutPixmap;
|
2010-12-04 07:08:06 +01:00
|
|
|
RRSetCrtcSpriteTransformPtr rrSetCrtcSpriteTransform;
|
|
|
|
RRGetCrtcSpriteTransformPtr rrGetCrtcSpriteTransform;
|
2010-12-05 04:22:11 +01:00
|
|
|
RRSetCrtcConfigsPtr rrSetCrtcConfigs;
|
2010-12-04 07:08:06 +01:00
|
|
|
|
2006-07-17 07:21:11 +02:00
|
|
|
/*
|
|
|
|
* Private part of the structure; not considered part of the ABI
|
|
|
|
*/
|
2003-11-14 17:48:57 +01:00
|
|
|
TimeStamp lastSetTime; /* last changed by client */
|
|
|
|
TimeStamp lastConfigTime; /* possible configs changed */
|
2006-07-17 07:21:11 +02:00
|
|
|
RRCloseScreenProcPtr CloseScreen;
|
2006-12-13 07:59:03 +01:00
|
|
|
|
2006-10-14 02:34:53 +02:00
|
|
|
Bool changed; /* some config changed */
|
2006-12-13 07:59:03 +01:00
|
|
|
Bool configChanged; /* configuration changed */
|
|
|
|
Bool layoutChanged; /* screen layout changed */
|
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
CARD16 minWidth, minHeight;
|
|
|
|
CARD16 maxWidth, maxHeight;
|
2006-09-17 08:21:37 +02:00
|
|
|
CARD16 width, height; /* last known screen size */
|
2006-12-22 08:50:39 +01:00
|
|
|
CARD16 mmWidth, mmHeight; /* last known screen size */
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
int numOutputs;
|
|
|
|
RROutputPtr *outputs;
|
2008-12-09 16:51:37 +01:00
|
|
|
RROutputPtr primaryOutput;
|
2006-09-17 06:44:42 +02: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 */
|
|
|
|
RRCrtcPtr pointerCrtc;
|
|
|
|
|
2010-12-03 22:00:46 +01:00
|
|
|
RRScanoutPixmapInfo *scanout_info;
|
|
|
|
int n_scanout_info;
|
2006-09-17 08:21:37 +02:00
|
|
|
#ifdef RANDR_10_INTERFACE
|
2003-11-14 17:48:57 +01:00
|
|
|
/*
|
|
|
|
* Configuration information
|
|
|
|
*/
|
|
|
|
Rotation rotations;
|
2006-09-17 06:44:42 +02:00
|
|
|
CARD16 reqWidth, reqHeight;
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2006-09-17 06:44:42 +02:00
|
|
|
int nSizes;
|
|
|
|
RRScreenSizePtr pSizes;
|
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
Rotation rotation;
|
2006-09-17 06:44:42 +02:00
|
|
|
int rate;
|
|
|
|
int size;
|
2006-07-02 04:46:38 +02:00
|
|
|
#endif
|
2010-12-03 22:00:46 +01:00
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
} rrScrPrivRec, *rrScrPrivPtr;
|
|
|
|
|
2010-04-27 02:22:21 +02:00
|
|
|
extern _X_EXPORT DevPrivateKeyRec rrPrivKeyRec;
|
|
|
|
#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 {
|
|
|
|
RREventPtr next;
|
|
|
|
ClientPtr client;
|
|
|
|
WindowPtr window;
|
|
|
|
XID clientResource;
|
|
|
|
int mask;
|
|
|
|
} RREventRec;
|
|
|
|
|
|
|
|
typedef struct _RRTimes {
|
|
|
|
TimeStamp setTime;
|
|
|
|
TimeStamp configTime;
|
|
|
|
} RRTimesRec, *RRTimesPtr;
|
|
|
|
|
|
|
|
typedef struct _RRClient {
|
|
|
|
int major_version;
|
|
|
|
int minor_version;
|
|
|
|
/* RRTimesRec times[0]; */
|
|
|
|
} RRClientRec, *RRClientPtr;
|
|
|
|
|
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 RESTYPE RRClientType, RREventType; /* resource types for event masks */
|
2010-04-27 02:22:21 +02:00
|
|
|
extern _X_EXPORT DevPrivateKeyRec RRClientPrivateKeyRec;
|
|
|
|
#define RRClientPrivateKey (&RRClientPrivateKeyRec)
|
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 RESTYPE RRCrtcType, RRModeType, RROutputType;
|
2006-09-18 08:03:23 +02:00
|
|
|
|
2009-04-29 07:04:37 +02:00
|
|
|
#define VERIFY_RR_OUTPUT(id, ptr, a)\
|
|
|
|
{\
|
|
|
|
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
|
|
|
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)\
|
|
|
|
{\
|
|
|
|
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
|
|
|
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)\
|
|
|
|
{\
|
|
|
|
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
|
|
|
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
|
|
|
|
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)
|
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
/* Initialize the extension */
|
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
|
|
|
RRExtensionInit (void);
|
|
|
|
|
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
|
2006-09-17 06:44:42 +02: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
|
2006-09-17 08:21:37 +02: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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRScreenSizeSet (ScreenPtr pScreen,
|
|
|
|
CARD16 width,
|
|
|
|
CARD16 height,
|
2010-12-06 05:57:47 +01:00
|
|
|
CARD16 pixWidth,
|
|
|
|
CARD16 pixHeight,
|
2006-09-17 08:21:37 +02:00
|
|
|
CARD32 mmWidth,
|
|
|
|
CARD32 mmHeight);
|
2006-09-17 06:44:42 +02:00
|
|
|
|
2010-12-05 04:22:11 +01:00
|
|
|
extern _X_EXPORT void
|
|
|
|
RRScreenCurrentConfig(ScreenPtr screen,
|
|
|
|
RRScreenConfigPtr screen_config);
|
|
|
|
|
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
|
2006-09-21 07:43:05 +02: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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRGetScreenSizeRange (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRSetScreenSize (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRGetScreenResources (ClientPtr client);
|
|
|
|
|
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
|
2008-11-27 00:49:02 +01:00
|
|
|
ProcRRGetScreenResourcesCurrent (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRSetScreenConfig (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRGetScreenInfo (ClientPtr client);
|
|
|
|
|
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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRDeliverScreenEvent (ClientPtr client, WindowPtr pWin, ScreenPtr pScreen);
|
|
|
|
|
|
|
|
/* randr.c */
|
|
|
|
/*
|
|
|
|
* 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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRTellChanged (ScreenPtr pScreen);
|
|
|
|
|
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
|
2009-01-31 04:06:17 +01:00
|
|
|
RRGetInfo (ScreenPtr pScreen, Bool force_query);
|
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 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
|
|
|
|
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
|
2006-09-18 08:03:23 +02:00
|
|
|
RRFirstOutput (ScreenPtr pScreen);
|
|
|
|
|
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 Rotation
|
2006-09-17 08:21:37 +02:00
|
|
|
RRGetRotation (ScreenPtr pScreen);
|
|
|
|
|
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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRVerticalRefresh (xRRModeInfo *mode);
|
|
|
|
|
2010-12-03 22:00:46 +01:00
|
|
|
extern _X_EXPORT RRScanoutPixmapInfo *
|
|
|
|
RRQueryScanoutPixmapInfo(ScreenPtr screen, int *n_info);
|
|
|
|
|
2006-09-17 08:21:37 +02: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
|
2003-11-14 17:48:57 +01:00
|
|
|
RRRegisterSize (ScreenPtr pScreen,
|
|
|
|
short width,
|
|
|
|
short height,
|
|
|
|
short mmWidth,
|
|
|
|
short mmHeight);
|
|
|
|
|
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
|
|
|
|
RRRegisterRate (ScreenPtr pScreen,
|
2003-11-14 17:48:57 +01:00
|
|
|
RRScreenSizePtr pSize,
|
|
|
|
int rate);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
RRSetCurrentConfig (ScreenPtr pScreen,
|
|
|
|
Rotation rotation,
|
|
|
|
int rate,
|
|
|
|
RRScreenSizePtr pSize);
|
|
|
|
|
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 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 Rotation
|
2006-09-17 06:44:42 +02:00
|
|
|
RRGetRotation (ScreenPtr pScreen);
|
|
|
|
|
2006-07-02 04:46:38 +02: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
|
2006-10-14 02:34:53 +02:00
|
|
|
RRCrtcChanged (RRCrtcPtr crtc, Bool layoutChanged);
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/*
|
|
|
|
* Create 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 RRCrtcPtr
|
2007-03-24 07:41:36 +01:00
|
|
|
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
|
2007-03-24 07:41:36 +01:00
|
|
|
RRCrtcSetRotations (RRCrtcPtr crtc, Rotation rotations);
|
|
|
|
|
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
|
2008-03-19 20:15:39 +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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRCrtcNotify (RRCrtcPtr crtc,
|
|
|
|
RRModePtr mode,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
Rotation rotation,
|
2008-03-21 10:39:49 +01:00
|
|
|
RRTransformPtr transform,
|
2006-10-04 06:06:11 +02:00
|
|
|
int numOutputs,
|
2010-12-03 22:00:46 +01:00
|
|
|
RROutputPtr *outputs,
|
|
|
|
PixmapPtr scanoutPixmap);
|
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
|
2006-09-18 08:03:23 +02: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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRCrtcSet (RRCrtcPtr crtc,
|
|
|
|
RRModePtr mode,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
Rotation rotation,
|
|
|
|
int numOutput,
|
2010-12-03 22:00:46 +01:00
|
|
|
RROutputPtr *outputs,
|
|
|
|
PixmapPtr scanout_pixmap);
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
RRCrtcGammaSet (RRCrtcPtr crtc,
|
|
|
|
CARD16 *red,
|
|
|
|
CARD16 *green,
|
|
|
|
CARD16 *blue);
|
|
|
|
|
2008-12-17 16:56:26 +01:00
|
|
|
/*
|
|
|
|
* Request current gamma back from the DDX (if possible).
|
|
|
|
* This includes gamma size.
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern _X_EXPORT Bool
|
|
|
|
RRCrtcGammaGet(RRCrtcPtr crtc);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
RRCrtcGammaNotify (RRCrtcPtr crtc);
|
|
|
|
|
2010-12-03 22:00:46 +01:00
|
|
|
void
|
|
|
|
RRModeGetScanoutSize (RRModePtr mode, struct pixman_f_transform *transform,
|
|
|
|
int *width, int *height);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
RRCrtcGammaSetSize (RRCrtcPtr crtc,
|
|
|
|
int size);
|
|
|
|
|
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
|
2007-01-24 17:29:20 +01:00
|
|
|
RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height);
|
|
|
|
|
2008-03-13 22:26:01 +01:00
|
|
|
/*
|
|
|
|
* Return crtc transform
|
|
|
|
*/
|
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 RRTransformPtr
|
2008-03-15 08:36:45 +01:00
|
|
|
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
|
2008-03-14 05:31:12 +01:00
|
|
|
RRCrtcPendingTransform (RRCrtcPtr crtc);
|
|
|
|
|
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
|
2006-09-17 08:21:37 +02: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
|
2008-03-14 05:31:12 +01:00
|
|
|
RRCrtcTransformSet (RRCrtcPtr crtc,
|
|
|
|
PictTransformPtr transform,
|
2008-03-19 08:46:35 +01:00
|
|
|
struct pict_f_transform *f_transform,
|
|
|
|
struct pict_f_transform *f_inverse,
|
2008-03-15 08:36:45 +01:00
|
|
|
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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRCrtcInit (void);
|
|
|
|
|
2010-09-29 22:51:48 +02:00
|
|
|
/*
|
|
|
|
* Initialize crtc type error value
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRCrtcInitErrorValue (void);
|
|
|
|
|
2010-12-05 04:22:11 +01:00
|
|
|
/*
|
|
|
|
* Free a set of crtc configs and their attached output arrays
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
RRFreeCrtcConfigs(RRCrtcConfigPtr configs, int num_configs);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Convert the current crtc configuration into an RRCrtcConfig
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT Bool
|
|
|
|
RRCrtcCurrentConfig(RRCrtcPtr crtc,
|
|
|
|
RRCrtcConfigPtr crtc_config);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Figure out whether the specific crtc_config can fit
|
|
|
|
* within the screen_config
|
|
|
|
*/
|
|
|
|
Bool
|
|
|
|
RRScreenCoversCrtc(RRScreenConfigPtr screen_config,
|
|
|
|
RRCrtcConfigPtr crtc_config,
|
|
|
|
RRTransformPtr client_transform,
|
|
|
|
XID *errorValue);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set a screen and set of crtc configurations in one operation
|
|
|
|
*/
|
|
|
|
Bool
|
|
|
|
RRSetCrtcConfigs(ScreenPtr screen,
|
|
|
|
RRScreenConfigPtr screen_config,
|
|
|
|
RRCrtcConfigPtr crtc_configs,
|
|
|
|
int num_configs);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRGetCrtcInfo (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRSetCrtcConfig (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRGetCrtcGammaSize (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRGetCrtcGamma (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRSetCrtcGamma (ClientPtr client);
|
|
|
|
|
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
|
2008-03-14 05:31:12 +01:00
|
|
|
ProcRRSetCrtcTransform (ClientPtr client);
|
|
|
|
|
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
|
2008-03-14 05:31:12 +01:00
|
|
|
ProcRRGetCrtcTransform (ClientPtr client);
|
|
|
|
|
2010-12-05 04:22:11 +01:00
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRSetCrtcConfigs (ClientPtr client);
|
|
|
|
|
2008-11-28 17:51:20 +01:00
|
|
|
int
|
|
|
|
ProcRRGetPanning (ClientPtr client);
|
|
|
|
|
|
|
|
int
|
|
|
|
ProcRRSetPanning (ClientPtr client);
|
|
|
|
|
2010-12-04 07:08:06 +01:00
|
|
|
void
|
|
|
|
RRCrtcSpriteTransformSet(RRCrtcPtr crtc,
|
|
|
|
PictTransform *position_transform,
|
|
|
|
PictTransform *image_transform,
|
|
|
|
struct pict_f_transform *f_position_transform,
|
|
|
|
struct pict_f_transform *f_image_transform);
|
|
|
|
|
2010-12-03 22:00:46 +01:00
|
|
|
int
|
|
|
|
ProcRRQueryScanoutPixmaps (ClientPtr client);
|
|
|
|
|
|
|
|
int
|
|
|
|
ProcRRCreateScanoutPixmap (ClientPtr client);
|
|
|
|
|
|
|
|
int
|
|
|
|
ProcRRSetCrtcPixmapConfig (ClientPtr client);
|
|
|
|
|
2010-12-04 07:08:06 +01:00
|
|
|
int
|
|
|
|
ProcRRSetCrtcSpriteTransform (ClientPtr client);
|
|
|
|
|
|
|
|
int
|
|
|
|
ProcRRGetCrtcSpriteTransform (ClientPtr client);
|
|
|
|
|
2010-12-03 22:00:46 +01:00
|
|
|
int
|
|
|
|
ProcRRSetCrtcConfigs (ClientPtr client);
|
|
|
|
|
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
|
2006-09-18 08:03:23 +02:00
|
|
|
RRClientKnowsRates (ClientPtr pClient);
|
|
|
|
|
2006-09-17 08:21:37 +02:00
|
|
|
/* rrmode.c */
|
|
|
|
/*
|
|
|
|
* Find, and if necessary, create 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 RRModePtr
|
2006-11-09 06:36:35 +01:00
|
|
|
RRModeGet (xRRModeInfo *modeInfo,
|
2006-09-20 21:05:52 +02:00
|
|
|
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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRModeDestroy (RRModePtr mode);
|
|
|
|
|
2006-11-09 06:36:35 +01:00
|
|
|
/*
|
|
|
|
* Return a list of modes that are valid for some output in pScreen
|
|
|
|
*/
|
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 RRModePtr *
|
2006-11-09 06:36:35 +01:00
|
|
|
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
|
2006-09-17 08:21:37 +02:00
|
|
|
RRModeInit (void);
|
2010-09-29 22:51:48 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Initialize mode type error value
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RRModeInitErrorValue (void);
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRCreateMode (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRDestroyMode (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRAddOutputMode (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRDeleteOutputMode (ClientPtr client);
|
|
|
|
|
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
|
2006-12-13 07:59:03 +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
|
2007-03-24 07:41:36 +01:00
|
|
|
RROutputCreate (ScreenPtr pScreen,
|
|
|
|
const char *name,
|
2006-09-17 08:21:37 +02:00
|
|
|
int nameLength,
|
|
|
|
void *devPrivate);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
2006-09-17 08:21:37 +02:00
|
|
|
RROutputSetClones (RROutputPtr output,
|
|
|
|
RROutputPtr *clones,
|
|
|
|
int numClones);
|
|
|
|
|
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
|
2006-09-17 08:21:37 +02:00
|
|
|
RROutputSetModes (RROutputPtr output,
|
|
|
|
RRModePtr *modes,
|
2006-10-06 07:31:35 +02:00
|
|
|
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
|
2007-02-19 08:49:38 +01:00
|
|
|
RROutputAddUserMode (RROutputPtr output,
|
|
|
|
RRModePtr 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 int
|
2007-02-19 08:49:38 +01:00
|
|
|
RROutputDeleteUserMode (RROutputPtr output,
|
|
|
|
RRModePtr 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
|
2006-09-17 08:21:37 +02:00
|
|
|
RROutputSetCrtcs (RROutputPtr output,
|
|
|
|
RRCrtcPtr *crtcs,
|
|
|
|
int numCrtcs);
|
|
|
|
|
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
|
2006-09-17 08:21:37 +02:00
|
|
|
RROutputSetConnection (RROutputPtr output,
|
|
|
|
CARD8 connection);
|
|
|
|
|
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
|
2006-09-19 09:46:27 +02:00
|
|
|
RROutputSetSubpixelOrder (RROutputPtr output,
|
|
|
|
int subpixelOrder);
|
|
|
|
|
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
|
2006-11-01 09:29:46 +01:00
|
|
|
RROutputSetPhysicalSize (RROutputPtr output,
|
|
|
|
int mmWidth,
|
|
|
|
int mmHeight);
|
|
|
|
|
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
|
2006-09-18 08:03:23 +02:00
|
|
|
RRDeliverOutputEvent(ClientPtr client, WindowPtr pWin, 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 void
|
2006-09-17 08:21:37 +02:00
|
|
|
RROutputDestroy (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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRGetOutputInfo (ClientPtr client);
|
|
|
|
|
2009-01-05 19:49:57 +01:00
|
|
|
extern _X_EXPORT int
|
2008-12-09 16:51:37 +01:00
|
|
|
ProcRRSetOutputPrimary (ClientPtr client);
|
|
|
|
|
2009-01-05 19:49:57 +01:00
|
|
|
extern _X_EXPORT int
|
2008-12-09 16:51:37 +01:00
|
|
|
ProcRRGetOutputPrimary (ClientPtr client);
|
|
|
|
|
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
|
2006-09-17 08:21:37 +02:00
|
|
|
RROutputInit (void);
|
2010-09-29 22:51:48 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Initialize output type error value
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT void
|
|
|
|
RROutputInitErrorValue (void);
|
2006-09-17 08:21:37 +02:00
|
|
|
|
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
|
2006-10-14 02:34:53 +02:00
|
|
|
RRPointerMoved (ScreenPtr pScreen, int x, int y);
|
|
|
|
|
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
|
2006-10-14 02:34:53 +02:00
|
|
|
RRPointerScreenConfigured (ScreenPtr pScreen);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
RRDeleteAllOutputProperties (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 RRPropertyValuePtr
|
2006-11-21 10:15:26 +01:00
|
|
|
RRGetOutputProperty (RROutputPtr output, Atom property, Bool pending);
|
|
|
|
|
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
|
2006-11-21 10:15:26 +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
|
2006-09-20 07:48:54 +02:00
|
|
|
RRDeleteOutputProperty (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 Bool
|
2007-03-24 07:41:36 +01:00
|
|
|
RRPostPendingProperties (RROutputPtr output);
|
2007-03-23 09:05: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 int
|
2006-09-20 07:48:54 +02:00
|
|
|
RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
|
|
|
|
int format, int mode, unsigned long len,
|
2007-03-23 09:05:55 +01:00
|
|
|
pointer 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
|
2006-11-21 10:15:26 +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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRChangeOutputProperty (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRGetOutputProperty (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRListOutputProperties (ClientPtr client);
|
|
|
|
|
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
|
2006-11-21 10:15:26 +01:00
|
|
|
ProcRRQueryOutputProperty (ClientPtr client);
|
|
|
|
|
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
|
2006-11-21 10:15:26 +01:00
|
|
|
ProcRRConfigureOutputProperty (ClientPtr client);
|
|
|
|
|
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
|
2006-09-20 07:48:54 +02:00
|
|
|
ProcRRDeleteOutputProperty (ClientPtr client);
|
|
|
|
|
2010-12-04 07:08:06 +01:00
|
|
|
/* rrsprite.c */
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRSetCrtcSpriteTransform (ClientPtr client);
|
|
|
|
|
|
|
|
extern _X_EXPORT int
|
|
|
|
ProcRRGetCrtcSpriteTransform (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
|
2006-09-21 07:43:05 +02:00
|
|
|
RRXineramaExtensionInit(void);
|
2009-01-05 16:41:38 +01:00
|
|
|
#endif
|
2006-09-21 07:43:05 +02:00
|
|
|
|
2010-12-05 04:22:11 +01:00
|
|
|
/* mirrcrtc.c */
|
|
|
|
Bool
|
|
|
|
miRRSetScreenConfig(ScreenPtr screen,
|
|
|
|
RRScreenConfigPtr screen_config);
|
|
|
|
|
|
|
|
Bool
|
|
|
|
miRRSetCrtcConfig(RRCrtcConfigPtr crtc_config);
|
|
|
|
|
|
|
|
Bool
|
|
|
|
miRRDisableCrtc(RRCrtcPtr crtc);
|
|
|
|
|
|
|
|
Bool
|
|
|
|
miRRCheckDisableCrtc(RRScreenConfigPtr new_screen_config,
|
|
|
|
RRCrtcConfigPtr old_crtc_config);
|
|
|
|
|
|
|
|
Bool
|
|
|
|
miRRSetCrtcConfigs(ScreenPtr screen,
|
|
|
|
RRScreenConfigPtr screen_config,
|
|
|
|
RRCrtcConfigPtr crtc_configs,
|
|
|
|
int num_configs);
|
|
|
|
|
2003-11-14 17:48:57 +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
|
|
|
|
*/
|