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