emul_state: add vm_name
authormunkyu.im <munkyu.im@samsung.com>
Mon, 23 Sep 2013 06:31:30 +0000 (15:31 +0900)
committermunkyu.im <munkyu.im@samsung.com>
Mon, 23 Sep 2013 06:32:01 +0000 (15:32 +0900)
Change-Id: I736201c05fee855420e8e6a610e8a6c513e1591f
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
tizen/src/emul_state.c
tizen/src/emul_state.h
tizen/src/emulator.c

index a3a11214bc257579e5da0fc6db9dd4b95e98175e..aaf8c3edc3e4582d732447d116ba350a661bf792 100644 (file)
@@ -261,3 +261,14 @@ int get_emul_num_lock_state(void)
     return _emul_state.qemu_num_lock;
 }
 
+/* emualtor vm name */
+void set_emul_vm_name(char *vm_name)
+{
+    _emul_info.vm_name = vm_name;
+}
+
+char* get_emul_vm_name(void)
+{
+    return _emul_info.vm_name;
+}
+
index ba7dd7279519dd4bf1557abb1471b456e6c0a1d5..515349b7f84a643ddf6ec18b5e18b3e325b487f0 100644 (file)
@@ -85,6 +85,7 @@ typedef  struct EmulatorConfigInfo {
     int max_touch_point;
     int vm_base_port;
     int device_serial_number;
+    char *vm_name;
     /* add here */
 } EmulatorConfigInfo;
 
@@ -113,6 +114,7 @@ void set_emulator_condition(int state);
 void set_emul_rotation(short rotation_type);
 void set_emul_caps_lock_state(int state);
 void set_emul_num_lock_state(int state);
+void set_emul_vm_name(char *vm_name);
 
 /* getter */
 int get_emul_skin_enable(void);
@@ -133,6 +135,6 @@ int get_host_lock_key_state(int key);
 int get_host_lock_key_state_darwin(int key);
 int get_emul_caps_lock_state(void);
 int get_emul_num_lock_state(void);
-
+char* get_emul_vm_name(void);
 
 #endif /* __EMUL_STATE_H__ */
index ca3020eacf6dccd1031dacb3ecb519c6d473143c..826cb4ccb7567b87f36bd282068f886a44a75a52 100644 (file)
@@ -225,6 +225,7 @@ static void set_image_and_log_path(char *qemu_argv)
         strcpy(tizen_target_path, g_path_get_dirname(path));
     }
 
+    set_emul_vm_name(g_path_get_basename(tizen_target_path));
     strcpy(tizen_target_img_path, path);
     free(path);