From 90c6235ce7bdc6f7afbcfe56ea6f2c3d2b128447 Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Thu, 13 Jan 2011 11:24:07 -0800 Subject: 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 --- android/console.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'android/console.c') 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; } -- cgit v1.1