From: Wootak Jung Date: Mon, 22 Aug 2016 06:49:43 +0000 (+0900) Subject: Apply deprecation policy X-Git-Tag: submit/tizen/20160824.041059^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0078b24c8e342a4abc36d79355ca6508e85c64d2;p=platform%2Fcore%2Fapi%2Ftelephony.git Apply deprecation policy Change-Id: Ia4009e83338fa1774ba5d1219f075f46c66c0439 --- diff --git a/include/telephony_call.h b/include/telephony_call.h index 9cb6ce5..6975886 100644 --- a/include/telephony_call.h +++ b/include/telephony_call.h @@ -122,7 +122,7 @@ typedef enum { * @retval #TELEPHONY_ERROR_NOT_SUPPORTED Not supported * @retval #TELEPHONY_ERROR_OPERATION_FAILED Operation failed */ -int telephony_call_get_voice_call_state(telephony_h handle, telephony_call_state_e *call_state); +int telephony_call_get_voice_call_state(telephony_h handle, telephony_call_state_e *call_state) TIZEN_DEPRECATED_API; /** * @deprecated Deprecated Since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use #telephony_call_get_status instead. @@ -151,7 +151,7 @@ int telephony_call_get_voice_call_state(telephony_h handle, telephony_call_state * @retval #TELEPHONY_ERROR_NOT_SUPPORTED Not supported * @retval #TELEPHONY_ERROR_OPERATION_FAILED Operation failed */ -int telephony_call_get_video_call_state(telephony_h handle, telephony_call_state_e *call_state); +int telephony_call_get_video_call_state(telephony_h handle, telephony_call_state_e *call_state) TIZEN_DEPRECATED_API; /** * @brief Gets the current value for the preferred voice call subscription. diff --git a/packaging/capi-telephony.spec b/packaging/capi-telephony.spec index dba8ceb..82797c6 100644 --- a/packaging/capi-telephony.spec +++ b/packaging/capi-telephony.spec @@ -1,6 +1,6 @@ Name: capi-telephony Summary: Telephony Core API -Version: 0.1.64 +Version: 0.1.65 Release: 1 Group: System/Libraries License: Apache-2.0 diff --git a/src/telephony_call.c b/src/telephony_call.c index 8a98a69..6144abf 100644 --- a/src/telephony_call.c +++ b/src/telephony_call.c @@ -135,6 +135,7 @@ int telephony_call_get_voice_call_state(telephony_h handle, telephony_call_state int ret; TapiHandle *tapi_h; + LOGW("DEPRECATION WARNING: telephony_call_get_voice_call_state() is deprecated and will be removed from next release. Use telephony_call_get_status() instead."); CHECK_TELEPHONY_SUPPORTED(TELEPHONY_FEATURE); CHECK_INPUT_PARAMETER(handle); tapi_h = ((telephony_data *)handle)->tapi_h; @@ -164,6 +165,7 @@ int telephony_call_get_video_call_state(telephony_h handle, telephony_call_state int ret; TapiHandle *tapi_h; + LOGW("DEPRECATION WARNING: telephony_call_get_video_call_state() is deprecated and will be removed from next release. Use telephony_call_get_status() instead."); CHECK_TELEPHONY_SUPPORTED(TELEPHONY_FEATURE); CHECK_INPUT_PARAMETER(handle); tapi_h = ((telephony_data *)handle)->tapi_h;