From b25188de9e0ea6bbee2a6b82f3c593fa7a50f809 Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Wed, 25 Nov 2015 15:47:39 +0900 Subject: [PATCH 1/1] [ACR-456]Add enumeration for connection type Signed-off-by: hyunuktak Change-Id: I2988024c989f789448b262413e673a60f3a1bd30 --- include/net_connection.h | 1 + packaging/capi-network-connection.spec | 2 +- src/connection.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/net_connection.h b/include/net_connection.h index f658d50..9cbb5b6 100755 --- a/include/net_connection.h +++ b/include/net_connection.h @@ -55,6 +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_e; /** diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec index 68b3c6e..5c94722 100755 --- a/packaging/capi-network-connection.spec +++ b/packaging/capi-network-connection.spec @@ -1,6 +1,6 @@ Name: capi-network-connection Summary: Network Connection library in TIZEN C API -Version: 1.0.74 +Version: 1.0.75 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/connection.c b/src/connection.c index ce5421c..1404e4c 100755 --- a/src/connection.c +++ b/src/connection.c @@ -34,6 +34,8 @@ static int __connection_convert_net_state(int status) return CONNECTION_TYPE_ETHERNET; case VCONFKEY_NETWORK_BLUETOOTH: return CONNECTION_TYPE_BT; + case VCONFKEY_NETWORK_DEFAULT_PROXY: + return CONNECTION_TYPE_PROXY; default: return CONNECTION_TYPE_DISCONNECTED; } -- 2.7.4