aboutsummaryrefslogtreecommitdiffstats
path: root/android/console.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2011-01-13 11:24:07 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2011-01-13 11:24:07 -0800
commit90c6235ce7bdc6f7afbcfe56ea6f2c3d2b128447 (patch)
tree18ca241d0b2b91acbc5b9a0ee1c8b7c79ace2988 /android/console.c
parent3bf6efc0928555529c3df28d291117390b840c16 (diff)
downloadexternal_qemu-90c6235ce7bdc6f7afbcfe56ea6f2c3d2b128447.zip
external_qemu-90c6235ce7bdc6f7afbcfe56ea6f2c3d2b128447.tar.gz
external_qemu-90c6235ce7bdc6f7afbcfe56ea6f2c3d2b128447.tar.bz2
Refining main-ui.c to better separate UI and core related initialization
The main reason for this is to clarify initialization for UI that starts core, and UI that attaches to an existing core. In this CL I did: - Removed -initdata option that seems obsolete (doesn't affect anything in the code) - Passed through -timezone option that doesn't affect anything in the UI, and is needed only in the core. - Removed dependency on AVD info from the core (core needed only virtual device name) Change-Id: Ie631249848a1b5b8d837c0c7b201a40ee7e4a367
Diffstat (limited to 'android/console.c')
-rw-r--r--android/console.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/android/console.c b/android/console.c
index a89d0e1..a44d831 100644
--- a/android/console.c
+++ b/android/console.c
@@ -121,6 +121,9 @@ ControlClient attached_ui_client = NULL;
ControlClient framebuffer_client = NULL;
#endif // CONFIG_STANDALONE_CORE
+/* -android-avdname option value. Defined in vl-android.c */
+extern char* android_op_avd_name;
+
static int
control_global_add_redir( ControlGlobal global,
int host_port,
@@ -2170,7 +2173,7 @@ do_avd_status( ControlClient client, char* args )
static int
do_avd_name( ControlClient client, char* args )
{
- control_write( client, "%s\r\n", avdInfo_getName(android_avdInfo) );
+ control_write( client, "%s\r\n", android_op_avd_name);
return 0;
}