aboutsummaryrefslogtreecommitdiffstats
path: root/android/ui-core-protocol.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2010-07-08 10:25:06 -0700
committerVladimir Chtchetkine <vchtchetkine@google.com>2010-07-08 10:25:06 -0700
commit4057561d5414c89f0d9964017e9473b68643e865 (patch)
treeb37fb44445314577ffbb73c7a459fc115eaef060 /android/ui-core-protocol.c
parent71bb14f826775867d16e7d382cfdc48e6ca46ccb (diff)
downloadexternal_qemu-4057561d5414c89f0d9964017e9473b68643e865.zip
external_qemu-4057561d5414c89f0d9964017e9473b68643e865.tar.gz
external_qemu-4057561d5414c89f0d9964017e9473b68643e865.tar.bz2
Removed hw-control dependency from the UI.
qemulator_setup has been setting brighness callback via direct call to hw-control. After the change callback is set via call to ui-core-protocol Change-Id: Ib96887d47cf765f38f4a7ad39f4f39963d9fb90d
Diffstat (limited to 'android/ui-core-protocol.c')
-rw-r--r--android/ui-core-protocol.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/android/ui-core-protocol.c b/android/ui-core-protocol.c
index ec49b7e..e61cd86 100644
--- a/android/ui-core-protocol.c
+++ b/android/ui-core-protocol.c
@@ -20,6 +20,7 @@
*/
#include "android/globals.h"
+#include "android/hw-control.h"
#include "android/ui-core-protocol.h"
int
@@ -27,3 +28,13 @@ android_core_get_hw_lcd_density(void)
{
return android_hw->hw_lcd_density;
}
+
+void
+android_core_set_brightness_change_callback(AndroidHwLightBrightnessCallback callback,
+ void* opaque)
+{
+ AndroidHwControlFuncs funcs;
+
+ funcs.light_brightness = callback;
+ android_hw_control_init( opaque, &funcs );
+}