From: taesub kim Date: Mon, 17 Apr 2017 07:18:16 +0000 (+0900) Subject: Modified enumeration of cellular PDN type X-Git-Tag: submit/tizen/20170424.014832~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bedde99f5d13478fdd6b0f99a28ce063a09391a;p=platform%2Fcore%2Fapi%2Fconnection.git Modified enumeration of cellular PDN type Change-Id: I2ad2ac07a78232456a1512bde70289cafdfc028d Signed-off-by: Taesub Kim --- diff --git a/include/connection_profile.h b/include/connection_profile.h index 411c79c..ee7cead 100755 --- a/include/connection_profile.h +++ b/include/connection_profile.h @@ -93,12 +93,15 @@ typedef enum { /** * @brief Enumeration for cellular pdn type. * @since_tizen 3.0 + * @remarks Use CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 instead of + * CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6. */ typedef enum { - CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN = 0, - CONNECTION_CELLULAR_PDN_TYPE_IPV4 = 1, - CONNECTION_CELLULAR_PDN_TYPE_IPV6 = 2, - CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6 = 3, + CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN = 0, /**> Unknown */ + CONNECTION_CELLULAR_PDN_TYPE_IPV4 = 1, /**> IPv4 */ + CONNECTION_CELLULAR_PDN_TYPE_IPV6 = 2, /**> IPv6 */ + CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6 = 3, /**> IPv4 and IPv6 (Deprecated since 4.0)*/ + CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 = 4, /**> IPv4 and IPv6 (Since 4.0)*/ } connection_cellular_pdn_type_e; diff --git a/src/connection_profile.c b/src/connection_profile.c index 236e9af..7504c52 100755 --- a/src/connection_profile.c +++ b/src/connection_profile.c @@ -1788,6 +1788,11 @@ EXPORT_API int connection_profile_set_cellular_pdn_type(connection_profile_h pro profile_info->ProfileInfo.Pdp.PdnType = NET_PDN_TYPE_IPV6; break; case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6: + profile_info->ProfileInfo.Pdp.PdnType = NET_PDN_TYPE_IPV4_IPV6; + CONNECTION_LOG(CONNECTION_WARN, "DEPRECATION WARNINIG: CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6 " \ + "from next release. Use CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 instead"); + break; + case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6: profile_info->ProfileInfo.Pdp.PdnType = NET_PDN_TYPE_IPV4_IPV6; break; default: @@ -1823,6 +1828,11 @@ EXPORT_API int connection_profile_set_cellular_roam_pdn_type(connection_profile_ profile_info->ProfileInfo.Pdp.RoamPdnType = NET_PDN_TYPE_IPV6; break; case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6: + profile_info->ProfileInfo.Pdp.RoamPdnType = NET_PDN_TYPE_IPV4_IPV6; + CONNECTION_LOG(CONNECTION_WARN, "DEPRECATION WARNINIG: CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6 " \ + "from next release. Use CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 instead"); + break + case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6: profile_info->ProfileInfo.Pdp.RoamPdnType = NET_PDN_TYPE_IPV4_IPV6; break; default: