From: taesub.kim Date: Tue, 5 Jan 2016 08:02:24 +0000 (+0900) Subject: [ACR-456]Add enumeration for connection type #2 X-Git-Tag: accepted/tizen/common/20160302.203300~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=490359ab1d5d464a34e3815d65bfe4d8b1bacca5;hp=0504252065c25a7669904cd749b01ec9d04a09ed;p=platform%2Fcore%2Fapi%2Fconnection.git [ACR-456]Add enumeration for connection type #2 Change-Id: I5b528a18ffa1bc5495da8d7e1db2df9bbea57d97 Signed-off-by: Taesub Kim --- 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; }