randrproto.h revision 7a0d67332f33bc21290d63bc7c8150b0cf0a4b21
/*
* Copyright © 2000 Compaq Computer Corporation
* Copyright © 2002 Hewlett-Packard Company
* Copyright © 2006 Intel Corporation
* Copyright © 2008 Red Hat, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* 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.
*
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* 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
*/
/* note that RANDR 1.0 is incompatible with version 0.0, or 0.1 */
/* V1.0 removes depth switching from the protocol */
#ifndef _XRANDRP_H_
#define _XRANDRP_H_
#define RRModeFlags CARD32
#define SubpixelOrder CARD16
/*
* data structures
*/
typedef struct {
} xScreenSizes;
#define sz_xScreenSizes 8
/*
* requests and replies
*/
typedef struct {
#define sz_xRRQueryVersionReq 12
typedef struct {
#define sz_xRRQueryVersionReply 32
typedef struct {
#define sz_xRRGetScreenInfoReq 8
/*
* the xRRScreenInfoReply structure is followed by:
*
* the size information
*/
typedef struct {
#define sz_xRRGetScreenInfoReply 32
typedef struct {
#define sz_xRR1_0SetScreenConfigReq 20
typedef struct {
#define sz_xRRSetScreenConfigReq 24
typedef struct {
#define sz_xRRSetScreenConfigReply 32
typedef struct {
#define sz_xRRSelectInputReq 12
/*
* Additions for version 1.2
*/
typedef struct _xRRModeInfo {
} xRRModeInfo;
#define sz_xRRModeInfo 32
typedef struct {
#define sz_xRRGetScreenSizeRangeReq 8
typedef struct {
#define sz_xRRGetScreenSizeRangeReply 32
typedef struct {
#define sz_xRRSetScreenSizeReq 20
typedef struct {
#define sz_xRRGetScreenResourcesReq 8
typedef struct {
#define sz_xRRGetScreenResourcesReply 32
typedef struct {
#define sz_xRRGetOutputInfoReq 12
typedef struct {
#define sz_xRRGetOutputInfoReply 36
typedef struct {
#define sz_xRRListOutputPropertiesReq 8
typedef struct {
#define sz_xRRListOutputPropertiesReply 32
typedef struct {
#define sz_xRRQueryOutputPropertyReq 12
typedef struct {
#define sz_xRRQueryOutputPropertyReply 32
typedef struct {
#define sz_xRRConfigureOutputPropertyReq 16
typedef struct {
#define sz_xRRChangeOutputPropertyReq 24
typedef struct {
#define sz_xRRDeleteOutputPropertyReq 12
typedef struct {
#ifdef __cplusplus
#else
#endif
#define sz_xRRGetOutputPropertyReq 28
typedef struct {
#define sz_xRRGetOutputPropertyReply 32
typedef struct {
#define sz_xRRCreateModeReq 40
typedef struct {
#define sz_xRRCreateModeReply 32
typedef struct {
#define sz_xRRDestroyModeReq 8
typedef struct {
#define sz_xRRAddOutputModeReq 12
typedef struct {
#define sz_xRRDeleteOutputModeReq 12
typedef struct {
#define sz_xRRGetCrtcInfoReq 12
typedef struct {
#define sz_xRRGetCrtcInfoReply 32
typedef struct {
#define sz_xRRSetCrtcConfigReq 28
typedef struct {
#define sz_xRRSetCrtcConfigReply 32
typedef struct {
#define sz_xRRGetCrtcGammaSizeReq 8
typedef struct {
#define sz_xRRGetCrtcGammaSizeReply 32
typedef struct {
#define sz_xRRGetCrtcGammaReq 8
typedef struct {
#define sz_xRRGetCrtcGammaReply 32
typedef struct {
#define sz_xRRSetCrtcGammaReq 12
/*
* Additions for V1.3
*/
typedef struct {
#define sz_xRRSetCrtcTransformReq 48
typedef struct {
#define sz_xRRGetCrtcTransformReq 8
typedef struct {
#define sz_xRRGetCrtcTransformReply 96
typedef struct {
#define sz_xRRSetOutputPrimaryReq 12
typedef struct {
#define sz_xRRGetOutputPrimaryReq 8
typedef struct {
#define sz_xRRGetOutputPrimaryReply 32
/*
* event
*/
typedef struct {
#define sz_xRRScreenChangeNotifyEvent 32
typedef struct {
#define sz_xRRCrtcChangeNotifyEvent 32
typedef struct {
#define sz_xRROutputChangeNotifyEvent 32
typedef struct {
#define sz_xRROutputPropertyNotifyEvent 32
typedef struct {
#define sz_xRRGetPanningReq 8
typedef struct {
#define sz_xRRGetPanningReply 36
typedef struct {
#define sz_xRRSetPanningReq 36
typedef struct {
#define sz_xRRSetPanningReply 32
#endif /* _XRANDRP_H_ */