deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/*
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * copy of this software and associated documentation files (the "Software"),
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * to deal in the Software without restriction, including without limitation
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * and/or sell copies of the Software, and to permit persons to whom the
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Software is furnished to do so, subject to the following conditions:
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * The above copyright notice and this permission notice shall be included in
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * all copies or substantial portions of the Software.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * CONECTIVA LINUX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * SOFTWARE.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Except as contained in this notice, the name of Conectiva Linux shall
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * not be used in advertising or otherwise to promote the sale, use or other
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * dealings in this Software without prior written authorization from
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Conectiva Linux.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Author: Paulo César Pereira de Andrade <pcpa@conectiva.com.br>
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#ifndef _xf86cfg_vidmode_h
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define _xf86cfg_vidmode_h
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#include "xf86config.h"
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#include <X11/extensions/xf86vmode.h>
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/*
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Types
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncstruct _xf86cfgVidMode {
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync XF86ConfMonitorPtr monitor;
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync int screen;
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync int num_infos;
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync XF86VidModeModeInfo **infos;
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync};
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/*
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Prototypes
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncBool VideoModeInitialize(void);
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncvoid VideoModeConfigureStart(void);
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncvoid VideoModeConfigureEnd(void);
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncvoid VidmodeRestoreAction(Widget, XEvent*, String*, Cardinal*);
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncvoid CancelAddModeAction(Widget, XEvent*, String*, Cardinal*);
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncvoid CancelTestModeAction(Widget, XEvent*, String*, Cardinal*);
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncvoid InitializeVidmodes(void);
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/*
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Initialization
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncextern Widget vtune;
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#endif /* _xf86cfg_vidmode_h */