diff options
Diffstat (limited to 'libraries/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c')
-rw-r--r-- | libraries/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c b/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c index 74d5344..23349f4 100644 --- a/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c +++ b/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c | |||
@@ -23,7 +23,7 @@ _ecore_x_dpms_init(void) | |||
23 | #else /* ifdef ECORE_XDPMS */ | 23 | #else /* ifdef ECORE_XDPMS */ |
24 | _dpms_available = EINA_FALSE; | 24 | _dpms_available = EINA_FALSE; |
25 | #endif /* ifdef ECORE_XDPMS */ | 25 | #endif /* ifdef ECORE_XDPMS */ |
26 | } /* _ecore_x_dpms_init */ | 26 | } |
27 | 27 | ||
28 | /** | 28 | /** |
29 | * @defgroup Ecore_X_DPMS_Group X DPMS Extension Functions | 29 | * @defgroup Ecore_X_DPMS_Group X DPMS Extension Functions |
@@ -40,7 +40,7 @@ EAPI Eina_Bool | |||
40 | ecore_x_dpms_query(void) | 40 | ecore_x_dpms_query(void) |
41 | { | 41 | { |
42 | return _dpms_available; | 42 | return _dpms_available; |
43 | } /* ecore_x_dpms_query */ | 43 | } |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * Checks if the X server is capable of DPMS. | 46 | * Checks if the X server is capable of DPMS. |
@@ -56,7 +56,7 @@ ecore_x_dpms_capable_get(void) | |||
56 | #else /* ifdef ECORE_XDPMS */ | 56 | #else /* ifdef ECORE_XDPMS */ |
57 | return EINA_FALSE; | 57 | return EINA_FALSE; |
58 | #endif /* ifdef ECORE_XDPMS */ | 58 | #endif /* ifdef ECORE_XDPMS */ |
59 | } /* ecore_x_dpms_capable_get */ | 59 | } |
60 | 60 | ||
61 | /** | 61 | /** |
62 | * Checks the DPMS state of the display. | 62 | * Checks the DPMS state of the display. |
@@ -76,7 +76,7 @@ ecore_x_dpms_enabled_get(void) | |||
76 | #else /* ifdef ECORE_XDPMS */ | 76 | #else /* ifdef ECORE_XDPMS */ |
77 | return EINA_FALSE; | 77 | return EINA_FALSE; |
78 | #endif /* ifdef ECORE_XDPMS */ | 78 | #endif /* ifdef ECORE_XDPMS */ |
79 | } /* ecore_x_dpms_enabled_get */ | 79 | } |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * Sets the DPMS state of the display. | 82 | * Sets the DPMS state of the display. |
@@ -94,7 +94,7 @@ ecore_x_dpms_enabled_set(int enabled) | |||
94 | DPMSDisable(_ecore_x_disp); | 94 | DPMSDisable(_ecore_x_disp); |
95 | 95 | ||
96 | #endif /* ifdef ECORE_XDPMS */ | 96 | #endif /* ifdef ECORE_XDPMS */ |
97 | } /* ecore_x_dpms_enabled_set */ | 97 | } |
98 | 98 | ||
99 | /** | 99 | /** |
100 | * Gets the timeouts. The values are in unit of seconds. | 100 | * Gets the timeouts. The values are in unit of seconds. |
@@ -113,7 +113,7 @@ ecore_x_dpms_timeouts_get(unsigned int *standby, | |||
113 | DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby, | 113 | DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby, |
114 | (unsigned short *)suspend, (unsigned short *)off); | 114 | (unsigned short *)suspend, (unsigned short *)off); |
115 | #endif /* ifdef ECORE_XDPMS */ | 115 | #endif /* ifdef ECORE_XDPMS */ |
116 | } /* ecore_x_dpms_timeouts_get */ | 116 | } |
117 | 117 | ||
118 | /** | 118 | /** |
119 | * Sets the timeouts. The values are in unit of seconds. | 119 | * Sets the timeouts. The values are in unit of seconds. |
@@ -133,7 +133,7 @@ ecore_x_dpms_timeouts_set(unsigned int standby, | |||
133 | #else /* ifdef ECORE_XDPMS */ | 133 | #else /* ifdef ECORE_XDPMS */ |
134 | return EINA_FALSE; | 134 | return EINA_FALSE; |
135 | #endif /* ifdef ECORE_XDPMS */ | 135 | #endif /* ifdef ECORE_XDPMS */ |
136 | } /* ecore_x_dpms_timeouts_set */ | 136 | } |
137 | 137 | ||
138 | /** | 138 | /** |
139 | * Returns the amount of time of inactivity before standby mode is invoked. | 139 | * Returns the amount of time of inactivity before standby mode is invoked. |
@@ -152,7 +152,7 @@ ecore_x_dpms_timeout_standby_get(void) | |||
152 | #else /* ifdef ECORE_XDPMS */ | 152 | #else /* ifdef ECORE_XDPMS */ |
153 | return 0; | 153 | return 0; |
154 | #endif /* ifdef ECORE_XDPMS */ | 154 | #endif /* ifdef ECORE_XDPMS */ |
155 | } /* ecore_x_dpms_timeout_standby_get */ | 155 | } |
156 | 156 | ||
157 | /** | 157 | /** |
158 | * Returns the amount of time of inactivity before the second level of | 158 | * Returns the amount of time of inactivity before the second level of |
@@ -172,7 +172,7 @@ ecore_x_dpms_timeout_suspend_get(void) | |||
172 | #else /* ifdef ECORE_XDPMS */ | 172 | #else /* ifdef ECORE_XDPMS */ |
173 | return 0; | 173 | return 0; |
174 | #endif /* ifdef ECORE_XDPMS */ | 174 | #endif /* ifdef ECORE_XDPMS */ |
175 | } /* ecore_x_dpms_timeout_suspend_get */ | 175 | } |
176 | 176 | ||
177 | /** | 177 | /** |
178 | * Returns the amount of time of inactivity before the third and final | 178 | * Returns the amount of time of inactivity before the third and final |
@@ -192,11 +192,11 @@ ecore_x_dpms_timeout_off_get(void) | |||
192 | #else /* ifdef ECORE_XDPMS */ | 192 | #else /* ifdef ECORE_XDPMS */ |
193 | return 0; | 193 | return 0; |
194 | #endif /* ifdef ECORE_XDPMS */ | 194 | #endif /* ifdef ECORE_XDPMS */ |
195 | } /* ecore_x_dpms_timeout_off_get */ | 195 | } |
196 | 196 | ||
197 | /** | 197 | /** |
198 | * Sets the standby timeout (in unit of seconds). | 198 | * Sets the standby timeout (in unit of seconds). |
199 | * @param new_standby Amount of time of inactivity before standby mode will be invoked. | 199 | * @param new_timeout Amount of time of inactivity before standby mode will be invoked. |
200 | * @ingroup Ecore_X_DPMS_Group | 200 | * @ingroup Ecore_X_DPMS_Group |
201 | */ | 201 | */ |
202 | EAPI void | 202 | EAPI void |
@@ -209,11 +209,11 @@ ecore_x_dpms_timeout_standby_set(unsigned int new_timeout) | |||
209 | DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); | 209 | DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); |
210 | DPMSSetTimeouts(_ecore_x_disp, new_timeout, suspend, off); | 210 | DPMSSetTimeouts(_ecore_x_disp, new_timeout, suspend, off); |
211 | #endif /* ifdef ECORE_XDPMS */ | 211 | #endif /* ifdef ECORE_XDPMS */ |
212 | } /* ecore_x_dpms_timeout_standby_set */ | 212 | } |
213 | 213 | ||
214 | /** | 214 | /** |
215 | * Sets the suspend timeout (in unit of seconds). | 215 | * Sets the suspend timeout (in unit of seconds). |
216 | * @param suspend Amount of time of inactivity before the screen is placed into suspend mode. | 216 | * @param new_timeout Amount of time of inactivity before the screen is placed into suspend mode. |
217 | * @ingroup Ecore_X_DPMS_Group | 217 | * @ingroup Ecore_X_DPMS_Group |
218 | */ | 218 | */ |
219 | EAPI void | 219 | EAPI void |
@@ -226,11 +226,11 @@ ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout) | |||
226 | DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); | 226 | DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); |
227 | DPMSSetTimeouts(_ecore_x_disp, standby, new_timeout, off); | 227 | DPMSSetTimeouts(_ecore_x_disp, standby, new_timeout, off); |
228 | #endif /* ifdef ECORE_XDPMS */ | 228 | #endif /* ifdef ECORE_XDPMS */ |
229 | } /* ecore_x_dpms_timeout_suspend_set */ | 229 | } |
230 | 230 | ||
231 | /** | 231 | /** |
232 | * Sets the off timeout (in unit of seconds). | 232 | * Sets the off timeout (in unit of seconds). |
233 | * @param off Amount of time of inactivity before the monitor is shut off. | 233 | * @param new_timeout Amount of time of inactivity before the monitor is shut off. |
234 | * @ingroup Ecore_X_DPMS_Group | 234 | * @ingroup Ecore_X_DPMS_Group |
235 | */ | 235 | */ |
236 | EAPI void | 236 | EAPI void |
@@ -243,5 +243,5 @@ ecore_x_dpms_timeout_off_set(unsigned int new_timeout) | |||
243 | DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); | 243 | DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); |
244 | DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout); | 244 | DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout); |
245 | #endif /* ifdef ECORE_XDPMS */ | 245 | #endif /* ifdef ECORE_XDPMS */ |
246 | } /* ecore_x_dpms_timeout_off_set */ | 246 | } |
247 | 247 | ||