dpms.h revision 2d7aecc9
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/X.h>
33#include <X11/Xmd.h>
34#include <X11/extensions/dpmsconst.h>
35
36#ifndef DPMS_SERVER
37_XFUNCPROTOBEGIN
38
39extern Bool DPMSQueryExtension(Display *, int *, int *);
40extern Status DPMSGetVersion(Display *, int *, int *);
41extern Bool DPMSCapable(Display *);
42extern Status DPMSSetTimeouts(Display *, CARD16, CARD16, CARD16);
43extern Bool DPMSGetTimeouts(Display *, CARD16 *, CARD16 *, CARD16 *);
44extern Status DPMSEnable(Display *);
45extern Status DPMSDisable(Display *);
46extern Status DPMSForceLevel(Display *, CARD16);
47extern Status DPMSInfo(Display *, CARD16 *, BOOL *);
48
49_XFUNCPROTOEND
50#endif
51
52#endif /* !_X11_EXTENSIONS_DPMS_H */
53
54