1706f2543Smrg/* 2706f2543Smrg * Copyright © 2006 Keith Packard 3706f2543Smrg * 4706f2543Smrg * Permission to use, copy, modify, distribute, and sell this software and its 5706f2543Smrg * documentation for any purpose is hereby granted without fee, provided that 6706f2543Smrg * the above copyright notice appear in all copies and that both that copyright 7706f2543Smrg * notice and this permission notice appear in supporting documentation, and 8706f2543Smrg * that the name of the copyright holders not be used in advertising or 9706f2543Smrg * publicity pertaining to distribution of the software without specific, 10706f2543Smrg * written prior permission. The copyright holders make no representations 11706f2543Smrg * about the suitability of this software for any purpose. It is provided "as 12706f2543Smrg * is" without express or implied warranty. 13706f2543Smrg * 14706f2543Smrg * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15706f2543Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16706f2543Smrg * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17706f2543Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18706f2543Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19706f2543Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 20706f2543Smrg * OF THIS SOFTWARE. 21706f2543Smrg */ 22706f2543Smrg 23706f2543Smrg#ifndef _XF86_RANDR_H_ 24706f2543Smrg#define _XF86_RANDR_H_ 25706f2543Smrg#include <randrstr.h> 26706f2543Smrg#include <X11/extensions/render.h> 27706f2543Smrg#if XF86_MODES_RENAME 28706f2543Smrg#include "xf86Rename.h" 29706f2543Smrg#endif 30706f2543Smrg 31706f2543Smrgextern _X_EXPORT Bool xf86RandR12CreateScreenResources (ScreenPtr pScreen); 32706f2543Smrgextern _X_EXPORT Bool xf86RandR12Init(ScreenPtr pScreen); 33706f2543Smrgextern _X_EXPORT void xf86RandR12CloseScreen(ScreenPtr pScreen); 34706f2543Smrgextern _X_EXPORT void xf86RandR12SetRotations (ScreenPtr pScreen, Rotation rotation); 35706f2543Smrgextern _X_EXPORT void xf86RandR12SetTransformSupport (ScreenPtr pScreen, Bool transforms); 36706f2543Smrgextern _X_EXPORT Bool xf86RandR12SetConfig(ScreenPtr pScreen, Rotation rotation, int rate, 37706f2543Smrg RRScreenSizePtr pSize); 38706f2543Smrgextern _X_EXPORT Rotation xf86RandR12GetRotation(ScreenPtr pScreen); 39706f2543Smrgextern _X_EXPORT void xf86RandR12GetOriginalVirtualSize(ScrnInfoPtr pScrn, int *x, int *y); 40706f2543Smrgextern _X_EXPORT Bool xf86RandR12PreInit (ScrnInfoPtr pScrn); 41706f2543Smrgextern _X_EXPORT void xf86RandR12TellChanged (ScreenPtr pScreen); 42706f2543Smrg 43706f2543Smrg#endif /* _XF86_RANDR_H_ */ 44