From 5cc250715d755f1cc3a646b68ef26a395f48a76d Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Sat, 23 Aug 2014 10:05:37 +0900 Subject: [PATCH] emulator: add get_emul_serial_port func for logging Change-Id: Iead04f220523dd6da1211796bcb0b9044a8f2855 Signed-off-by: GiWoong Kim --- tizen/src/emul_state.c | 6 ++++++ tizen/src/emul_state.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/tizen/src/emul_state.c b/tizen/src/emul_state.c index a492790fdc..b8421ca8f5 100644 --- a/tizen/src/emul_state.c +++ b/tizen/src/emul_state.c @@ -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) { diff --git a/tizen/src/emul_state.h b/tizen/src/emul_state.h index 5f67f70400..9a0e299949 100644 --- a/tizen/src/emul_state.h +++ b/tizen/src/emul_state.h @@ -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); -- 2.34.1