monitor: Add backlight abstraction
This allows higher levels to deal with backlight on a monitor bases, instead of having to deal with the fact that some monitors might have multiple outputs. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3861>
This commit is contained in:
@ -335,3 +335,13 @@ gboolean meta_parse_monitor_mode (const char *string,
|
||||
int *out_height,
|
||||
float *out_refresh_rate,
|
||||
float fallback_refresh_rate);
|
||||
|
||||
gboolean meta_monitor_get_backlight_info (MetaMonitor *monitor,
|
||||
int *backlight_min,
|
||||
int *backlight_max);
|
||||
|
||||
void meta_monitor_set_backlight (MetaMonitor *monitor,
|
||||
int value);
|
||||
|
||||
gboolean meta_monitor_get_backlight (MetaMonitor *monitor,
|
||||
int *value);
|
||||
|
Reference in New Issue
Block a user