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:
Jonas Ådahl
2024-07-01 15:36:55 +02:00
parent 68dd168e33
commit c22816393c
2 changed files with 68 additions and 0 deletions

View File

@ -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);