1 /* $Xorg: dpms.h,v 1.3 2000/08/18 04:05:45 coskrey Exp $ */ 2 /***************************************************************** 3 4 Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 5 6 Permission is hereby granted, free of charge, to any person obtaining a copy 7 of this software and associated documentation files (the "Software"), to deal 8 in the Software without restriction, including without limitation the rights 9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 copies of the Software. 11 12 The above copyright notice and this permission notice shall be included in 13 all copies or substantial portions of the Software. 14 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, 19 BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, 20 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 21 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 23 Except as contained in this notice, the name of Digital Equipment Corporation 24 shall not be used in advertising or otherwise to promote the sale, use or other 25 dealings in this Software without prior written authorization from Digital 26 Equipment Corporation. 27 28 ******************************************************************/ 29 /* $XFree86: xc/include/extensions/dpms.h,v 3.4 2000/03/15 16:51:51 tsi Exp $ */ 30 31 #ifndef _X11_EXTENSIONS_DPMS_H 32 #define _X11_EXTENSIONS_DPMS_H 1 33 34 /* 35 * HISTORY 36 */ 37 /* 38 * @(#)RCSfile: dpms.h,v Revision: 1.1.4.2 (DEC) Date: 1995/11/21 19:34:17 39 */ 40 41 42 #define DPMSModeOn 0 43 #define DPMSModeStandby 1 44 #define DPMSModeSuspend 2 45 #define DPMSModeOff 3 46 47 #ifndef DPMS_SERVER 48 49 #include <X11/X.h> 50 #include <X11/Xmd.h> 51 52 _XFUNCPROTOBEGIN 53 54 extern Bool DPMSQueryExtension(Display *, int *, int *); 55 extern Status DPMSGetVersion(Display *, int *, int *); 56 extern Bool DPMSCapable(Display *); 57 extern Status DPMSSetTimeouts(Display *, CARD16, CARD16, CARD16); 58 extern Bool DPMSGetTimeouts(Display *, CARD16 *, CARD16 *, CARD16 *); 59 extern Status DPMSEnable(Display *); 60 extern Status DPMSDisable(Display *); 61 extern Status DPMSForceLevel(Display *, CARD16); 62 extern Status DPMSInfo(Display *, CARD16 *, BOOL *); 63 64 _XFUNCPROTOEND 65 #endif /* !DPMS_SERVER */ 66 #endif /* !_X11_EXTENSIONS_DPMS_H */ 67 68