summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/helper.c')
-rw-r--r--apps/plugins/lib/helper.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/plugins/lib/helper.c b/apps/plugins/lib/helper.c
index 691a17f15c..273b066599 100644
--- a/apps/plugins/lib/helper.c
+++ b/apps/plugins/lib/helper.c
@@ -91,3 +91,20 @@ void buttonlight_use_settings(const struct plugin_api* rb)
91 rb->buttonlight_set_timeout(rb->global_settings->buttonlight_timeout); 91 rb->buttonlight_set_timeout(rb->global_settings->buttonlight_timeout);
92} 92}
93#endif /* HAVE_BUTTON_LIGHT */ 93#endif /* HAVE_BUTTON_LIGHT */
94
95#ifdef HAVE_BACKLIGHT_BRIGHTNESS
96void backlight_brightness_set(const struct plugin_api *rb,
97 int brightness)
98{
99 if (!rb)
100 return;
101 rb->backlight_set_brightness(brightness);
102}
103
104void backlight_brightness_use_setting(const struct plugin_api *rb)
105{
106 if (!rb)
107 return;
108 rb->backlight_set_brightness(rb->global_settings->brightness);
109}
110#endif /* HAVE_BACKLIGHT_BRIGHTNESS */