emulator: add get_emul_serial_port func for logging 64/26464/1
authorGiWoong Kim <giwoong.kim@samsung.com>
Sat, 23 Aug 2014 01:05:37 +0000 (10:05 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Sat, 23 Aug 2014 02:40:09 +0000 (11:40 +0900)
Change-Id: Iead04f220523dd6da1211796bcb0b9044a8f2855
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/emul_state.c
tizen/src/emul_state.h

index a492790fdca6a0a57a701375fa335e14a3448aab..b8421ca8f5861c6044b876e2d0ada6d568fa22a3 100644 (file)
@@ -190,6 +190,7 @@ void set_emul_vm_base_port(int port)
     _emul_info.vm_base_port = port;
     _emul_info.device_serial_number = port + 1;
     _emul_info.ecs_port = port + 3;
+    _emul_info.serial_port = port + 4;
 }
 
 void set_emul_ecs_port(int port)
@@ -212,6 +213,11 @@ int get_emul_ecs_port(void)
     return _emul_info.ecs_port;
 }
 
+int get_emul_serial_port(void)
+{
+    return _emul_info.serial_port;
+}
+
 /* current emulator condition */
 int get_emulator_condition(void)
 {
index 5f67f70400c358c46e74dd033322b684cceb6b11..9a0e29994935e957de9303e1ab531f07cbb63536 100644 (file)
@@ -59,6 +59,9 @@ enum {
     MOUSE_WHEELUP = 4,
     MOUSE_WHEELDOWN = 5,
     MOUSE_MOVE = 6,
+    MOUSE_DOUBLECLICK = 7,
+    PS2_DOWN = 8,
+    PS2_UP = 9,
 };
 
 /* keep it consistent with emulator-skin definition */
@@ -98,6 +101,7 @@ typedef  struct EmulatorConfigInfo {
     const char *file_sharing_path;
     const char *vm_ram_size;
     /* add here */
+    int serial_port;
 } EmulatorConfigInfo;
 
 typedef struct EmulatorConfigState {
@@ -152,6 +156,7 @@ int get_emul_max_touch_point(void);
 int get_emul_vm_base_port(void);
 int get_device_serial_number(void);
 int get_emul_ecs_port(void);
+int get_emul_serial_port(void);
 char* get_emul_vm_name(void);
 char* get_emul_skin_path(void);
 bool get_emul_gpu_accel(void);