g13 tux logo   g13

G13 C Library

Functions

int g13_device_get_backlight_rgb (g13_device *device, unsigned *r, unsigned *g, unsigned *b)
 Get the current backlight color as an RGB value.

Function Documentation

int g13_device_get_backlight_rgb ( g13_device device,
unsigned *  r,
unsigned *  g,
unsigned *  b 
)

Get the current backlight color as an RGB value.

Returns:
0 if successful; on error returns -1 and sets errno

On success, the three pointers will contain the current RGB backlight color values.

On failure, *r , *g and *b will not be modified.

References g13_device_get_syspath().

Referenced by G13::Device::backlight(), and g13_device_get_state().


Generated on Wed Mar 24 10:13:19 2010 for g13 by doxygen 1.6.1