From 1bedde99f5d13478fdd6b0f99a28ce063a09391a Mon Sep 17 00:00:00 2001 From: taesub kim Date: Mon, 17 Apr 2017 16:18:16 +0900 Subject: [PATCH] Modified enumeration of cellular PDN type Change-Id: I2ad2ac07a78232456a1512bde70289cafdfc028d Signed-off-by: Taesub Kim --- include/connection_profile.h | 11 +++++++---- src/connection_profile.c | 10 ++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) 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 @@ -1789,6 +1789,11 @@ EXPORT_API int connection_profile_set_cellular_pdn_type(connection_profile_h pro 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: return CONNECTION_ERROR_INVALID_PARAMETER; @@ -1824,6 +1829,11 @@ EXPORT_API int connection_profile_set_cellular_roam_pdn_type(connection_profile_ 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: return CONNECTION_ERROR_INVALID_PARAMETER; -- 2.7.4