emulator: add get_emul_serial_port func for logging
authorGiWoong Kim <giwoong.kim@samsung.com>
Sat, 23 Aug 2014 01:05:37 +0000 (10:05 +0900)
committersungmin ha <sungmin82.ha@samsung.com>
Fri, 5 Sep 2014 02:58:27 +0000 (11:58 +0900)
Change-Id: Iead04f220523dd6da1211796bcb0b9044a8f2855
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/emul_state.c
tizen/src/emul_state.h

index 7d45b99720472f4daaa2e9aa1733467ad32ecdbf..6463c4bb83608434fa1407168c86e5ea5af8020c 100644 (file)
@@ -147,6 +147,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)
@@ -169,6 +170,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 62fe4eb77ddbba60c6bafc739f46c1d84ca9acc6..b6c325d4d37751d53574fdfec315c2c3fb5d706a 100644 (file)
@@ -58,6 +58,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 */
@@ -93,6 +96,7 @@ typedef  struct EmulatorConfigInfo {
     int ecs_port;
     char *vm_name;
     /* add here */
+    int serial_port;
 } EmulatorConfigInfo;
 
 typedef struct EmulatorConfigState {
@@ -135,6 +139,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);
 
 int get_emulator_condition(void);
 short get_emul_rotation(void);