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