1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 5 <title>File Index</title> 6 <link href="doxygen.css" rel="stylesheet" type="text/css"> 7 </head> 8 <body> 9<!-- Generated by Doxygen 1.7.4 --> 10 <div id="navrow1" class="tabs"> 11 <ul class="tablist"> 12 <li><a href="index.html"><span>Main Page</span></a></li> 13 <li><a href="annotated.html"><span>Data Structures</span></a></li> 14 <li class="current"><a href="files.html"><span>Files</span></a></li> 15 </ul> 16 </div> 17 <div id="navrow2" class="tabs2"> 18 <ul class="tablist"> 19 <li><a href="files.html"><span>File List</span></a></li> 20 <li><a href="globals.html"><span>Globals</span></a></li> 21 </ul> 22 </div> 23</div> 24<div id="side-nav" class="ui-resizable side-nav-resizable"> 25 <div id="nav-tree"> 26 <div id="nav-tree-contents"> 27 </div> 28 </div> 29 <div id="splitbar" style="-moz-user-select:none;" 30 class="ui-resizable-handle"> 31 </div> 32</div> 33<script type="text/javascript"> 34 initNavTree('dmxdpms_8c.html',''); 35</script> 36<div id="doc-content"> 37<div class="header"> 38 <div class="summary"> 39<a href="#func-members">Functions</a> | 40<a href="#var-members">Variables</a> </div> 41 <div class="headertitle"> 42<div class="title">dmxdpms.c File Reference</div> </div> 43</div> 44<div class="contents"> 45<div class="textblock"><code>#include "<a class="el" href="dmx_8h_source.html">dmx.h</a>"</code><br/> 46<code>#include "<a class="el" href="dmxdpms_8h_source.html">dmxdpms.h</a>"</code><br/> 47<code>#include "<a class="el" href="dmxlog_8h_source.html">dmxlog.h</a>"</code><br/> 48<code>#include "<a class="el" href="dmxsync_8h_source.html">dmxsync.h</a>"</code><br/> 49<code>#include "windowstr.h"</code><br/> 50<code>#include <X11/extensions/dpms.h></code><br/> 51</div><table class="memberdecls"> 52<tr><td colspan="2"><h2><a name="func-members"></a> 53Functions</h2></td></tr> 54<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#afd14a12acf152c0a881144aff85e584a">_dmxDPMSInit</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen)</td></tr> 55<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#a6c93ecabb9ee83027c79f878e143a472">dmxDPMSInit</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen)</td></tr> 56<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#a54288399c9ed5293b83d7d508ff2465c">dmxDPMSTerm</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen)</td></tr> 57<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#aa996aaa17a07afb7fc613142599505c5">dmxDPMSWakeup</a> (void)</td></tr> 58<tr><td colspan="2"><h2><a name="var-members"></a> 59Variables</h2></td></tr> 60<tr><td class="memItemLeft" align="right" valign="top">static unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#a7bb06fe7454077ecfbfae62ac9cba1e0">dpmsGeneration</a> = 0</td></tr> 61<tr><td class="memItemLeft" align="right" valign="top">static Bool </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#a2d45a784084cd5cdef646499d5298254">dpmsSupported</a> = TRUE</td></tr> 62</table> 63<hr/><a name="details" id="details"></a><h2>Detailed Description</h2> 64<div class="textblock"><p>Provides DPMS support and unifies all DPMS and other screen-saver support in one file. If -dpms is given on the command line, or the Xdmx server is not compiled with DPMS support, then the DPMS extension does not work for clients, but DPMS on the backends is still disables (and restored at Xdmx server shutdown time). </p> 65</div><hr/><h2>Function Documentation</h2> 66<a class="anchor" id="afd14a12acf152c0a881144aff85e584a"></a><!-- doxytag: member="dmxdpms.c::_dmxDPMSInit" ref="afd14a12acf152c0a881144aff85e584a" args="(DMXScreenInfo *dmxScreen)" --> 67<div class="memitem"> 68<div class="memproto"> 69 <table class="memname"> 70 <tr> 71 <td class="memname">static void _dmxDPMSInit </td> 72 <td>(</td> 73 <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> * </td> 74 <td class="paramname"><em>dmxScreen</em></td><td>)</td> 75 <td><code> [static]</code></td> 76 </tr> 77 </table> 78</div> 79<div class="memdoc"> 80 81<p>References <a class="el" href="struct__DMXScreenInfo.html#a756ade62a55a52f163a42db6de54c244">_DMXScreenInfo::beDisplay</a>, <a class="el" href="dmxlog_8c.html#aabe50ca33403c25a9e57a06d1d3a089a">dmxLogOutput()</a>, <a class="el" href="struct__DMXScreenInfo.html#a3f540a0bcac0e813a4b7ad3f34a19277">_DMXScreenInfo::dpmsCapable</a>, <a class="el" href="struct__DMXScreenInfo.html#a3ad975d6c25329c21456c1f880dc68f6">_DMXScreenInfo::dpmsEnabled</a>, <a class="el" href="dmxdpms_8c.html#a7bb06fe7454077ecfbfae62ac9cba1e0">dpmsGeneration</a>, <a class="el" href="struct__DMXScreenInfo.html#a69a70ba630e23bab0141886f2d49eb31">_DMXScreenInfo::dpmsOff</a>, <a class="el" href="struct__DMXScreenInfo.html#abf64e2489557ef84c84c1e36b1fccb83">_DMXScreenInfo::dpmsStandby</a>, <a class="el" href="dmxdpms_8c.html#a2d45a784084cd5cdef646499d5298254">dpmsSupported</a>, and <a class="el" href="struct__DMXScreenInfo.html#a7dab70abf22a5ec34fced3ba2fbd25d0">_DMXScreenInfo::dpmsSuspend</a>.</p> 82 83<p>Referenced by <a class="el" href="dmxdpms_8h.html#a6c93ecabb9ee83027c79f878e143a472">dmxDPMSInit()</a>.</p> 84 85</div> 86</div> 87<a class="anchor" id="a6c93ecabb9ee83027c79f878e143a472"></a><!-- doxytag: member="dmxdpms.c::dmxDPMSInit" ref="a6c93ecabb9ee83027c79f878e143a472" args="(DMXScreenInfo *dmxScreen)" --> 88<div class="memitem"> 89<div class="memproto"> 90 <table class="memname"> 91 <tr> 92 <td class="memname">void dmxDPMSInit </td> 93 <td>(</td> 94 <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> * </td> 95 <td class="paramname"><em>dmxScreen</em></td><td>)</td> 96 <td></td> 97 </tr> 98 </table> 99</div> 100<div class="memdoc"> 101<p>Initialize DPMS support. We save the current settings and turn off DPMS. The settings are restored in <a class="el" href="dmxdpms_8h.html#a54288399c9ed5293b83d7d508ff2465c">dmxDPMSTerm</a>. </p> 102 103<p>References <a class="el" href="dmxdpms_8c.html#afd14a12acf152c0a881144aff85e584a">_dmxDPMSInit()</a>, <a class="el" href="struct__DMXScreenInfo.html#a756ade62a55a52f163a42db6de54c244">_DMXScreenInfo::beDisplay</a>, <a class="el" href="dmxsync_8c.html#ab848762f4d2e30d31b87d3e8e10c5967">dmxSync()</a>, and <a class="el" href="struct__DMXScreenInfo.html#a187aa2158f3a1e7b021cf1ea6f693c2f">_DMXScreenInfo::savedTimeout</a>.</p> 104 105<p>Referenced by <a class="el" href="dmxscrinit_8h.html#a51bde87df35cd264d315d09e33c4f9e3">dmxBEScreenInit()</a>.</p> 106 107</div> 108</div> 109<a class="anchor" id="a54288399c9ed5293b83d7d508ff2465c"></a><!-- doxytag: member="dmxdpms.c::dmxDPMSTerm" ref="a54288399c9ed5293b83d7d508ff2465c" args="(DMXScreenInfo *dmxScreen)" --> 110<div class="memitem"> 111<div class="memproto"> 112 <table class="memname"> 113 <tr> 114 <td class="memname">void dmxDPMSTerm </td> 115 <td>(</td> 116 <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> * </td> 117 <td class="paramname"><em>dmxScreen</em></td><td>)</td> 118 <td></td> 119 </tr> 120 </table> 121</div> 122<div class="memdoc"> 123<p>Terminate DPMS support on <em>dmxScreen</em>. We restore the settings saved in <a class="el" href="dmxdpms_8h.html#a6c93ecabb9ee83027c79f878e143a472">dmxDPMSInit</a>. </p> 124 125<p>References <a class="el" href="struct__DMXScreenInfo.html#a756ade62a55a52f163a42db6de54c244">_DMXScreenInfo::beDisplay</a>, <a class="el" href="dmxsync_8c.html#ab848762f4d2e30d31b87d3e8e10c5967">dmxSync()</a>, <a class="el" href="struct__DMXScreenInfo.html#a3f540a0bcac0e813a4b7ad3f34a19277">_DMXScreenInfo::dpmsCapable</a>, <a class="el" href="struct__DMXScreenInfo.html#a3ad975d6c25329c21456c1f880dc68f6">_DMXScreenInfo::dpmsEnabled</a>, <a class="el" href="struct__DMXScreenInfo.html#a69a70ba630e23bab0141886f2d49eb31">_DMXScreenInfo::dpmsOff</a>, <a class="el" href="struct__DMXScreenInfo.html#abf64e2489557ef84c84c1e36b1fccb83">_DMXScreenInfo::dpmsStandby</a>, <a class="el" href="struct__DMXScreenInfo.html#a7dab70abf22a5ec34fced3ba2fbd25d0">_DMXScreenInfo::dpmsSuspend</a>, and <a class="el" href="struct__DMXScreenInfo.html#a187aa2158f3a1e7b021cf1ea6f693c2f">_DMXScreenInfo::savedTimeout</a>.</p> 126 127<p>Referenced by <a class="el" href="dmxscrinit_8h.html#a95af573befeeedfa4a7d15b574341c36">dmxBECloseScreen()</a>.</p> 128 129</div> 130</div> 131<a class="anchor" id="aa996aaa17a07afb7fc613142599505c5"></a><!-- doxytag: member="dmxdpms.c::dmxDPMSWakeup" ref="aa996aaa17a07afb7fc613142599505c5" args="(void)" --> 132<div class="memitem"> 133<div class="memproto"> 134 <table class="memname"> 135 <tr> 136 <td class="memname">void dmxDPMSWakeup </td> 137 <td>(</td> 138 <td class="paramtype">void </td> 139 <td class="paramname"></td><td>)</td> 140 <td></td> 141 </tr> 142 </table> 143</div> 144<div class="memdoc"> 145<p>Called when activity is detected so that DPMS power-saving mode can be deactivated. </p> 146 147</div> 148</div> 149<hr/><h2>Variable Documentation</h2> 150<a class="anchor" id="a7bb06fe7454077ecfbfae62ac9cba1e0"></a><!-- doxytag: member="dmxdpms.c::dpmsGeneration" ref="a7bb06fe7454077ecfbfae62ac9cba1e0" args="" --> 151<div class="memitem"> 152<div class="memproto"> 153 <table class="memname"> 154 <tr> 155 <td class="memname">unsigned long <a class="el" href="dmxdpms_8c.html#a7bb06fe7454077ecfbfae62ac9cba1e0">dpmsGeneration</a> = 0<code> [static]</code></td> 156 </tr> 157 </table> 158</div> 159<div class="memdoc"> 160 161<p>Referenced by <a class="el" href="dmxdpms_8c.html#afd14a12acf152c0a881144aff85e584a">_dmxDPMSInit()</a>.</p> 162 163</div> 164</div> 165<a class="anchor" id="a2d45a784084cd5cdef646499d5298254"></a><!-- doxytag: member="dmxdpms.c::dpmsSupported" ref="a2d45a784084cd5cdef646499d5298254" args="" --> 166<div class="memitem"> 167<div class="memproto"> 168 <table class="memname"> 169 <tr> 170 <td class="memname">Bool <a class="el" href="dmxdpms_8c.html#a2d45a784084cd5cdef646499d5298254">dpmsSupported</a> = TRUE<code> [static]</code></td> 171 </tr> 172 </table> 173</div> 174<div class="memdoc"> 175 176<p>Referenced by <a class="el" href="dmxdpms_8c.html#afd14a12acf152c0a881144aff85e584a">_dmxDPMSInit()</a>.</p> 177 178</div> 179</div> 180</div> 181</div> 182 <div id="nav-path" class="navpath"> 183 <ul> 184 <li class="navelem"><a class="el" href="dmxdpms_8c.html">dmxdpms.c</a> </li> 185 <hr> 186 <address> 187 <small> 188 Generated June 29, 2004 for <a 189 href="http://dmx.sourceforge.net">Distributed Multihead X</a> by 190 <a href="http://www.doxygen.org/index.html">doxygen</a> 191 1.3.4. 192 </small> 193 </addres> 194 </hr> 195 </body> 196</html> 197