aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-02-25 12:19:02 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-02-25 12:19:02 +0000
commitb0045cb9b7a76c0f766b91865398dfc62409c88d (patch)
tree5726b282244679f2fdc2138354eb9719f626d71e /legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
parentadd unit tests framework with some examples. (diff)
downloadefl-b0045cb9b7a76c0f766b91865398dfc62409c88d.tar.gz
add lots of logging functions - for trackign x overhead when u cant get
symbols... booo! - disabled of course. SVN revision: 46458
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
index b7583bc06c..3b15dbcaca 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
@@ -54,6 +54,7 @@ EAPI int
ecore_x_dpms_capable_get(void)
{
#ifdef ECORE_XDPMS
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return DPMSCapable(_ecore_x_disp);
#else
return 0;
@@ -72,6 +73,7 @@ ecore_x_dpms_enabled_get(void)
unsigned char state;
unsigned short power_lvl;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSInfo(_ecore_x_disp, &power_lvl, &state);
return state;
#else
@@ -88,6 +90,7 @@ EAPI void
ecore_x_dpms_enabled_set(int enabled)
{
#ifdef ECORE_XDPMS
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (enabled)
DPMSEnable(_ecore_x_disp);
else
@@ -106,6 +109,7 @@ EAPI void
ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, unsigned int *off)
{
#ifdef ECORE_XDPMS
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby,
(unsigned short *)suspend, (unsigned short *)off);
#endif
@@ -122,6 +126,7 @@ EAPI int
ecore_x_dpms_timeouts_set(unsigned int standby, unsigned int suspend, unsigned int off)
{
#ifdef ECORE_XDPMS
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return DPMSSetTimeouts(_ecore_x_disp, standby, suspend, off);
#else
return 0;
@@ -139,6 +144,7 @@ ecore_x_dpms_timeout_standby_get()
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
return standby;
#else
@@ -158,6 +164,7 @@ ecore_x_dpms_timeout_suspend_get()
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
return suspend;
#else
@@ -177,6 +184,7 @@ ecore_x_dpms_timeout_off_get()
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
return off;
#else
@@ -195,6 +203,7 @@ ecore_x_dpms_timeout_standby_set(unsigned int new_timeout)
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, new_timeout, suspend, off);
#endif
@@ -211,6 +220,7 @@ ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout)
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, standby, new_timeout, off);
#endif
@@ -227,6 +237,7 @@ ecore_x_dpms_timeout_off_set(unsigned int new_timeout)
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout);
#endif