![]() |
GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A sysfs backlight driver for a Linux. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | gp_linux_backlight |
| Linux backlight sysfs driver. More... | |
Functions | |
| struct gp_linux_backlight * | gp_linux_backlight_init (void) |
| Initialize linux backlight driver. | |
| void | gp_linux_backlight_exit (struct gp_linux_backlight *self) |
| Destroy Linux backlight driver. | |
| int | gp_linux_backlight_inc (struct gp_linux_backlight *self) |
| Increase backlight intensity. | |
| int | gp_linux_backlight_dec (struct gp_linux_backlight *self) |
| Decrease backlight intensity. | |
| int | gp_linux_backlight_get (struct gp_linux_backlight *self) |
| Returns backlight intensity in percents. | |
A sysfs backlight driver for a Linux.
Definition in file gp_linux_backlight.h.
| int gp_linux_backlight_dec | ( | struct gp_linux_backlight * | self | ) |
Decrease backlight intensity.
| self | A Linux backlight driver.\ |
| void gp_linux_backlight_exit | ( | struct gp_linux_backlight * | self | ) |
Destroy Linux backlight driver.
| self | A Linux backlight driver. |
| int gp_linux_backlight_get | ( | struct gp_linux_backlight * | self | ) |
Returns backlight intensity in percents.
| self | A Linux backlight driver. |
| int gp_linux_backlight_inc | ( | struct gp_linux_backlight * | self | ) |
Increase backlight intensity.
| self | A Linux backlight driver. |
| struct gp_linux_backlight * gp_linux_backlight_init | ( | void | ) |
Initialize linux backlight driver.
Looks up a backlight driver in the /sys/class/backlight/ directory.