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/qemulator.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/qemulator.c')
-rw-r--r-- | android/qemulator.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/android/qemulator.c b/android/qemulator.c index 15cd668..06b07f7 100644 --- a/android/qemulator.c +++ b/android/qemulator.c @@ -10,7 +10,6 @@ ** GNU General Public License for more details. */ -#include "android/hw-control.h" #include "android/utils/debug.h" #include "android/utils/bufprint.h" #include "android/globals.h" @@ -83,12 +82,8 @@ qemulator_setup( QEmulator* emulator ) } /* initialize hardware control support */ - { - AndroidHwControlFuncs funcs; - - funcs.light_brightness = qemulator_light_brightness; - android_hw_control_init( emulator, &funcs ); - } + android_core_set_brightness_change_callback(qemulator_light_brightness, + emulator); } static void |