summaryrefslogtreecommitdiff
path: root/tizen/src/emul_state.h
diff options
context:
space:
mode:
authorSeokYeon Hwang <syeon.hwang@samsung.com>2016-01-04 19:28:26 +0900
committerSeokYeon Hwang <syeon.hwang@samsung.com>2016-01-05 21:15:21 +0900
commit346ee8b1ee5cccd871ba7bc2c0a78c4e98d88748 (patch)
treef47ecdfe195bcb018ea1483cdefa24748bf31fd8 /tizen/src/emul_state.h
parent67a8399cae344e2261475fb054914385624f19a5 (diff)
downloadqemu-346ee8b1ee5cccd871ba7bc2c0a78c4e98d88748.tar.gz
qemu-346ee8b1ee5cccd871ba7bc2c0a78c4e98d88748.tar.bz2
qemu-346ee8b1ee5cccd871ba7bc2c0a78c4e98d88748.zip
emulator: clean-up emulator network initialization
Do port forwarding and base port initialization at once. Some emul_state getters/setters are refined. "sdb.c" is "net_helper.c" now and it use new_debug_channel. Change-Id: I0659b35e231a8f60bd3707a2d04b09213a9cb830 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com> Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
Diffstat (limited to 'tizen/src/emul_state.h')
-rw-r--r--tizen/src/emul_state.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/tizen/src/emul_state.h b/tizen/src/emul_state.h
index 00223b9649..bcdc04e8d9 100644
--- a/tizen/src/emul_state.h
+++ b/tizen/src/emul_state.h
@@ -93,17 +93,12 @@ enum {
typedef struct EmulatorConfigInfo {
int sdl_bpp;
- int vm_base_port;
- int device_serial_number;
- int ecs_port;
char guest_ip[16];
char host_ip[16];
- int spice_port;
const char *skin_path;
const char *file_sharing_path;
- int serial_port;
/* add here */
} EmulatorConfigInfo;
@@ -124,8 +119,6 @@ typedef struct EmulatorConfigState {
/* setter */
void set_emul_win_scale(double scale);
void set_emul_sdl_bpp(int bpp);
-void set_emul_vm_base_port(int port);
-void set_emul_ecs_port(int port);
void set_emul_guest_ip(char *ip);
void set_emul_host_ip(char *ip);
@@ -140,11 +133,6 @@ void set_sdb_connection(bool connected);
/* getter */
double get_emul_win_scale(void);
int get_emul_sdl_bpp(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_emul_spice_port(void);
const char* get_emul_skin_path(void);
bool get_emul_cpu_accel(void);
@@ -194,6 +182,11 @@ bool is_netclient_tap_attached(void);
uint64_t get_ram_size(void);
+void set_vm_base_port(int port);
+int get_vm_base_port(void);
+int get_vm_device_serial_number(void);
+int get_vm_spice_port(void);
+
void set_initial_display_resolution(int width, int height);
int get_display_resolution_width(void);
int get_display_resolution_height(void);