net: remove get/set host ip
authorMunkyu Im <munkyu.im@samsung.com>
Tue, 12 May 2015 07:09:27 +0000 (16:09 +0900)
committerMunkyu Im <munkyu.im@samsung.com>
Tue, 12 May 2015 07:11:18 +0000 (16:11 +0900)
not necessary now.

Change-Id: I2cd96566f7183948d54db5e2f43c0fc6c8ce85ed
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
tizen/src/emul_state.c
tizen/src/emul_state.h
tizen/src/emulator_common.h

index 94534b31ee9d0fbb4eb96c0a8823e4d525b5650d..0bbc9ebcf94feb97064404e34e68b82e4b452c44 100644 (file)
@@ -195,36 +195,6 @@ char* get_emul_guest_ip(void)
     return _emul_info.guest_ip;
 }
 
-void set_emul_host_ip(char *kernel_cmdline)
-{
-#ifdef SUPPORT_LEGACY_ARGS
-    char *buf = strstr(kernel_cmdline, HOST_IP_PREFIX);
-#else
-    char *buf = get_variable("host_ip");
-#endif
-    if (buf) {
-        char buf_host_ip[MAXLEN] = {0,};
-        int len = strlen(HOST_IP_PREFIX);
-        int i, j;
-        int max_len = strlen(buf);
-        for(i = len, j = 0; i < max_len; i++) {
-            if (buf[i] == ' ' || buf[i] == '\0')
-                break;
-            buf_host_ip[j++] = buf[i];
-        }
-
-        buf_host_ip[j] = '\0';
-        LOG_INFO("host_ip information=%s\n", buf_host_ip);
-        strncpy(_emul_info.host_ip, buf_host_ip, sizeof(_emul_info.host_ip));
-    }
-}
-
-char* get_emul_host_ip(void)
-{
-    LOG_INFO("host ip: %s\n", _emul_info.guest_ip);
-    return _emul_info.host_ip;
-}
-
 /* maximum number of touch point */
 void set_emul_max_touch_point(int cnt)
 {
index 5b0e7fd2adff292ba7c32d4e14cb90baa7b1864b..6923ed1633793209857560dffb94365ee11e8584 100644 (file)
@@ -104,7 +104,6 @@ typedef  struct EmulatorConfigInfo {
 
     bool tap_enable;
     char guest_ip[16];
-    char host_ip[16];
 
     int spice_port;
     char *vm_name;
@@ -153,7 +152,6 @@ void set_emul_max_touch_point(int cnt);
 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);
 void set_emul_vm_name(char *vm_name);
 void set_emul_skin_path(char *path);
 void set_emul_gpu_accel(bool enable);
@@ -204,7 +202,6 @@ 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_guest_ip(void);
-char* get_emul_host_ip(void);
 bool is_emul_tap_enable(void);
 char* get_emul_http_proxy_addr(void);
 char* get_emul_http_proxy_port(void);
index 34142b2df5ff08d252df9ac65e9596afddd00576..a29efff56f502111133750c65be5c0edb27fecec 100644 (file)
@@ -60,7 +60,6 @@
 #define JAVA_MAX_COMMAND_LENGTH 1024
 #define MAXLEN  512
 #define HTTP_PROXY_PREFIX "http_proxy="
-#define HOST_IP_PREFIX "host_ip="
 
 
 #define JAR_SKINFILE "emulator-skin.jar"