105b261ecSmrg/*
205b261ecSmrg * Copyright © 2006 Keith Packard
305b261ecSmrg *
405b261ecSmrg * Permission to use, copy, modify, distribute, and sell this software and its
505b261ecSmrg * documentation for any purpose is hereby granted without fee, provided that
605b261ecSmrg * the above copyright notice appear in all copies and that both that copyright
705b261ecSmrg * notice and this permission notice appear in supporting documentation, and
805b261ecSmrg * that the name of the copyright holders not be used in advertising or
905b261ecSmrg * publicity pertaining to distribution of the software without specific,
1005b261ecSmrg * written prior permission.  The copyright holders make no representations
1105b261ecSmrg * about the suitability of this software for any purpose.  It is provided "as
1205b261ecSmrg * is" without express or implied warranty.
1305b261ecSmrg *
1405b261ecSmrg * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1505b261ecSmrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1605b261ecSmrg * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1705b261ecSmrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1805b261ecSmrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1905b261ecSmrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
2005b261ecSmrg * OF THIS SOFTWARE.
2105b261ecSmrg */
2205b261ecSmrg
2305b261ecSmrg#ifndef _XF86_RANDR_H_
2405b261ecSmrg#define _XF86_RANDR_H_
2505b261ecSmrg#include <randrstr.h>
2605b261ecSmrg#include <X11/extensions/render.h>
2705b261ecSmrg
2835c4bbdfSmrgextern _X_EXPORT Bool xf86RandR12CreateScreenResources(ScreenPtr pScreen);
296747b715Smrgextern _X_EXPORT Bool xf86RandR12Init(ScreenPtr pScreen);
306747b715Smrgextern _X_EXPORT void xf86RandR12CloseScreen(ScreenPtr pScreen);
3135c4bbdfSmrgextern _X_EXPORT void xf86RandR12SetRotations(ScreenPtr pScreen,
3235c4bbdfSmrg                                              Rotation rotation);
3335c4bbdfSmrgextern _X_EXPORT void xf86RandR12SetTransformSupport(ScreenPtr pScreen,
3435c4bbdfSmrg                                                     Bool transforms);
3535c4bbdfSmrgextern _X_EXPORT Bool xf86RandR12SetConfig(ScreenPtr pScreen, Rotation rotation,
3635c4bbdfSmrg                                           int rate, RRScreenSizePtr pSize);
376747b715Smrgextern _X_EXPORT Rotation xf86RandR12GetRotation(ScreenPtr pScreen);
3835c4bbdfSmrgextern _X_EXPORT void xf86RandR12GetOriginalVirtualSize(ScrnInfoPtr pScrn,
3935c4bbdfSmrg                                                        int *x, int *y);
4035c4bbdfSmrgextern _X_EXPORT Bool xf86RandR12PreInit(ScrnInfoPtr pScrn);
4135c4bbdfSmrgextern _X_EXPORT void xf86RandR12TellChanged(ScreenPtr pScreen);
4205b261ecSmrg
431b5d61b8Smrgextern void xf86RandR12LoadPalette(ScrnInfoPtr pScrn, int numColors,
441b5d61b8Smrg                                   int *indices, LOCO *colors,
451b5d61b8Smrg                                   VisualPtr pVisual);
461b5d61b8Smrgextern Bool xf86RandR12InitGamma(ScrnInfoPtr pScrn, unsigned gammaSize);
471b5d61b8Smrg
4835c4bbdfSmrg#endif                          /* _XF86_RANDR_H_ */
49