/* $XFree86: xc/include/extensions/xf86vmode.h,v 3.31 2002/12/22 00:46:50 dawes Exp $ */
/*
Copyright 1995 Kaleb S. KEITHLEY
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of Kaleb S. KEITHLEY
shall not be used in advertising or otherwise to promote the sale, use
or other dealings in this Software without prior written authorization
from Kaleb S. KEITHLEY
*/
/* $Xorg: xf86vmode.h,v 1.3 2000/08/18 04:05:46 coskrey Exp $ */
/* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
#ifndef _XF86VIDMODE_H_
#define _XF86VIDMODE_H_
#include <X11/Xfuncproto.h>
#define X_XF86VidModeQueryVersion 0
/* new for version 2.x of this extension */
#ifdef XF86VIDMODE_EVENTS
#define XF86VidModeNotify 0
#define XF86VidModeNonEvent 0
#else
#define XF86VidModeNumberEvents 0
#endif
#define XF86VidModeBadClock 0
#ifndef _XF86VIDMODE_SERVER_
typedef struct {
unsigned short hdisplay;
unsigned short hsyncstart;
unsigned short hsyncend;
unsigned short htotal;
unsigned short hskew;
unsigned short vdisplay;
unsigned short vsyncstart;
unsigned short vsyncend;
unsigned short vtotal;
unsigned int flags;
int privsize;
#if defined(__cplusplus) || defined(c_plusplus)
/* private is a C++ reserved word */
#else
#endif
typedef struct {
unsigned int dotclock;
unsigned short hdisplay;
unsigned short hsyncstart;
unsigned short hsyncend;
unsigned short htotal;
unsigned short hskew;
unsigned short vdisplay;
unsigned short vsyncstart;
unsigned short vsyncend;
unsigned short vtotal;
unsigned int flags;
int privsize;
#if defined(__cplusplus) || defined(c_plusplus)
/* private is a C++ reserved word */
#else
#endif
typedef struct {
float hi;
float lo;
typedef struct {
char* vendor;
char* model;
float EMPTY;
unsigned char nhsync;
unsigned char nvsync;
typedef struct {
typedef struct {
Display* /* dpy */,
int* /* majorVersion */,
int* /* minorVersion */
);
Display* /* dpy */,
int* /* event_base */,
int* /* error_base */
);
Display* /* dpy */
);
Display* /* dpy */,
int /* screen */,
int* /* dotclock */,
XF86VidModeModeLine* /* modeline */
);
Display* /* dpy */,
int /* screen */,
int* /* modecount */,
XF86VidModeModeInfo*** /* modelinesPtr */
);
Display* /* dpy */,
int /* screen */,
XF86VidModeModeInfo* /* new modeline */,
XF86VidModeModeInfo* /* after modeline */
);
Display* /* dpy */,
int /* screen */,
XF86VidModeModeInfo* /* modeline */
);
Display* /* dpy */,
int /* screen */,
XF86VidModeModeLine* /* modeline */
);
Display* /* dpy */,
int /* screen */,
XF86VidModeModeInfo* /* modeline */
);
Display* /* dpy */,
int /* screen */,
int /* zoom */
);
Display* /* dpy */,
int /* screen */,
XF86VidModeModeInfo* /* modeline */
);
Display* /* dpy */,
int /* screen */,
int /* lock */
);
Display* /* dpy */,
int /* screen */,
XF86VidModeMonitor* /* monitor */
);
Display* /* dpy */,
int /* screen */,
int* /* x return */,
int* /* y return */
);
Display* /* dpy */,
int /* screen */,
int /* x */,
int /* y */
);
Display* /* dpy */,
int /* screen */,
int* /* flags return */,
int* /* number of clocks return */,
int* /* max dot clock return */,
int** /* clocks return */
);
Display* /* dpy */,
int /* screen */,
XF86VidModeGamma* /* Gamma */
);
Display* /* dpy */,
int /* screen */,
XF86VidModeGamma* /* Gamma */
);
Display* /* dpy */,
int /* screen */,
int /* size */,
unsigned short* /* red array */,
unsigned short* /* green array */,
unsigned short* /* blue array */
);
Display* /* dpy */,
int /* screen */,
int /* size */,
unsigned short* /* red array */,
unsigned short* /* green array */,
unsigned short* /* blue array */
);
Display* /* dpy */,
int /* screen */,
int* /* size */
);
Display* /* dpy */,
int /* screen */,
int* /* permissions */
);
#endif
#endif