dpms.h revision 4f45da70
1/***************************************************************** 2 3Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 4 5Permission is hereby granted, free of charge, to any person obtaining a copy 6of this software and associated documentation files (the "Software"), to deal 7in the Software without restriction, including without limitation the rights 8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9copies of the Software. 10 11The above copyright notice and this permission notice shall be included in 12all copies or substantial portions of the Software. 13 14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, 18BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, 19WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 20IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 22Except as contained in this notice, the name of Digital Equipment Corporation 23shall not be used in advertising or otherwise to promote the sale, use or other 24dealings in this Software without prior written authorization from Digital 25Equipment Corporation. 26 27******************************************************************/ 28 29#ifndef _X11_EXTENSIONS_DPMS_H 30#define _X11_EXTENSIONS_DPMS_H 1 31 32#include <X11/Xfuncproto.h> 33#include <X11/X.h> 34#include <X11/Xmd.h> 35#include <X11/extensions/dpmsconst.h> 36 37#if !defined(_XKBSRV_H_) && !defined(_XLIB_H_) 38/* XXX: this is a hack to let old xf86-video-* build. Does not belong here. */ 39typedef int Status; 40typedef pointer XPointer; 41typedef struct _XDisplay Display; 42#endif 43 44#ifndef DPMS_SERVER 45_XFUNCPROTOBEGIN 46 47extern Bool DPMSQueryExtension(Display *, int *, int *); 48extern Status DPMSGetVersion(Display *, int *, int *); 49extern Bool DPMSCapable(Display *); 50extern Status DPMSSetTimeouts(Display *, CARD16, CARD16, CARD16); 51extern Bool DPMSGetTimeouts(Display *, CARD16 *, CARD16 *, CARD16 *); 52extern Status DPMSEnable(Display *); 53extern Status DPMSDisable(Display *); 54extern Status DPMSForceLevel(Display *, CARD16); 55extern Status DPMSInfo(Display *, CARD16 *, BOOL *); 56 57_XFUNCPROTOEND 58#endif 59 60#endif /* !_X11_EXTENSIONS_DPMS_H */ 61 62