diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-07-08 10:25:06 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-07-08 10:25:06 -0700 |
commit | 4057561d5414c89f0d9964017e9473b68643e865 (patch) | |
tree | b37fb44445314577ffbb73c7a459fc115eaef060 /android/ui-core-protocol.c | |
parent | 71bb14f826775867d16e7d382cfdc48e6ca46ccb (diff) | |
download | external_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.c | 11 |
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 ); +} |