From 490359ab1d5d464a34e3815d65bfe4d8b1bacca5 Mon Sep 17 00:00:00 2001 From: "taesub.kim" Date: Tue, 5 Jan 2016 17:02:24 +0900 Subject: [PATCH] [ACR-456]Add enumeration for connection type #2 Change-Id: I5b528a18ffa1bc5495da8d7e1db2df9bbea57d97 Signed-off-by: Taesub Kim --- doc/net_connection_doc.h | 1 + include/net_connection.h | 2 +- src/connection.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/net_connection_doc.h b/doc/net_connection_doc.h index cb3446a..ee120f5 100755 --- a/doc/net_connection_doc.h +++ b/doc/net_connection_doc.h @@ -52,6 +52,7 @@ * - http://tizen.org/feature/network.wifi\n * - http://tizen.org/feature/network.telephony\n * - http://tizen.org/feature/network.tethering.bluetooth\n + * - http://tizen.org/feature/network.net_proxy\n * * It is recommended to design feature related codes in your application for reliability.\n * diff --git a/include/net_connection.h b/include/net_connection.h index 9cbb5b6..657ae0e 100755 --- a/include/net_connection.h +++ b/include/net_connection.h @@ -55,7 +55,7 @@ typedef enum CONNECTION_TYPE_CELLULAR = 2, /**< Cellular type */ CONNECTION_TYPE_ETHERNET = 3, /**< Ethernet type */ CONNECTION_TYPE_BT = 4, /**< Bluetooth type */ - CONNECTION_TYPE_PROXY, /**< Proxy type (Since 3.0) */ + CONNECTION_TYPE_NET_PROXY, /**< Proxy type for internet connection (Since 3.0) */ } connection_type_e; /** diff --git a/src/connection.c b/src/connection.c index 1ea68af..a6b0290 100755 --- a/src/connection.c +++ b/src/connection.c @@ -35,7 +35,7 @@ static int __connection_convert_net_state(int status) case VCONFKEY_NETWORK_BLUETOOTH: return CONNECTION_TYPE_BT; case VCONFKEY_NETWORK_DEFAULT_PROXY: - return CONNECTION_TYPE_PROXY; + return CONNECTION_TYPE_NET_PROXY; default: return CONNECTION_TYPE_DISCONNECTED; } -- 2.7.4