aboutsummaryrefslogtreecommitdiffstats
path: root/android/qemulator.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2010-09-01 09:17:11 -0700
committerVladimir Chtchetkine <vchtchetkine@google.com>2010-09-01 09:44:01 -0700
commitcefa7443eb3d3e4bb134595f756145426d5613e3 (patch)
tree7ced288de1420463b18ce3f2d0ae36efaa46775e /android/qemulator.c
parent2cb19c7efef5f194198aa84d6a9ffbdb4c740455 (diff)
downloadexternal_qemu-cefa7443eb3d3e4bb134595f756145426d5613e3.zip
external_qemu-cefa7443eb3d3e4bb134595f756145426d5613e3.tar.gz
external_qemu-cefa7443eb3d3e4bb134595f756145426d5613e3.tar.bz2
Add android_port initialization in the core.
Also some minor cleanups to the ui <-> core stuff. Change-Id: I7d64ec1aa694c027851b7e262b6e1b80bb6cef08
Diffstat (limited to 'android/qemulator.c')
-rw-r--r--android/qemulator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/android/qemulator.c b/android/qemulator.c
index 4d6c771..32983be 100644
--- a/android/qemulator.c
+++ b/android/qemulator.c
@@ -375,9 +375,9 @@ handle_key_command( void* opaque, SkinKeyCommand command, int down )
{
case SKIN_KEY_COMMAND_TOGGLE_NETWORK:
{
- qemu_net_disable = !qemu_net_disable;
- android_core_set_network_enabled(!qemu_net_disable);
- D( "network is now %s", qemu_net_disable ? "disconnected" : "connected" );
+ android_core_toggle_network();
+ D( "network is now %s", android_core_is_network_disabled() ?
+ "disconnected" : "connected" );
}
break;
@@ -563,7 +563,7 @@ static void qemulator_refresh(QEmulator* emulator)
#endif
/* only save emulator config through clean exit */
qemulator_done(qemulator_get());
- qemu_system_shutdown_request();
+ android_core_system_shutdown_request();
return;
}
}
@@ -597,6 +597,6 @@ android_emulator_set_window_scale( double scale, int is_dpi )
void
android_emulator_set_base_port( int port )
{
- android_base_port = port;
+ /* Base port is already set in the emulator's core. */
qemulator_set_title(qemulator);
}