From: mk5004.lee Date: Fri, 22 May 2020 05:51:40 +0000 (+0900) Subject: Update api about private_id X-Git-Tag: submit/tizen/20200609.023619~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F234126%2F2;p=platform%2Fcore%2Fapi%2Fnotification.git Update api about private_id - Delete set api Add get api Change-Id: I7dd8064b2d02bf9f228ae2940793d7c25b8c0029 Signed-off-by: mk5004.lee --- diff --git a/notification-ex/api/notification_ex_internal.h b/notification-ex/api/notification_ex_internal.h index 7e4209e3..eda7d75f 100644 --- a/notification-ex/api/notification_ex_internal.h +++ b/notification-ex/api/notification_ex_internal.h @@ -26,6 +26,7 @@ extern "C" { int noti_ex_item_free_string_list(char** list, int count); int noti_ex_item_group_remove_children(noti_ex_item_h handle); int noti_ex_item_time_set_time(noti_ex_item_h handle, time_t time); +int noti_ex_item_get_private_id(noti_ex_item_h handle, int64_t* private_id); int noti_ex_style_set_geometry(noti_ex_style_h handle, noti_ex_geometry_h geometry); diff --git a/notification-ex/stub.cc b/notification-ex/stub.cc index dd8f1f06..75f68339 100644 --- a/notification-ex/stub.cc +++ b/notification-ex/stub.cc @@ -3621,33 +3621,19 @@ extern "C" EXPORT_API int noti_ex_multi_lang_destroy(noti_ex_multi_lang_h handle } extern "C" EXPORT_API int noti_ex_item_get_private_id( - noti_ex_item_h item, int64_t* private_id) { - if (item == nullptr || private_id == nullptr) { + noti_ex_item_h handle, int64_t* private_id) { + if (handle == nullptr || private_id == nullptr) { LOGE("Invalid parameter"); return NOTI_EX_ERROR_INVALID_PARAMETER; } - Handle* h = static_cast(item); + Handle* h = static_cast(handle); *private_id = static_pointer_cast( h->Get()->GetInfo())->GetPrivateId(); return NOTI_EX_ERROR_NONE; } -extern "C" EXPORT_API int noti_ex_item_set_private_id( - noti_ex_item_h item, int64_t priv_id) { - if (item == nullptr) { - LOGE("Invalid parameter"); - return NOTI_EX_ERROR_INVALID_PARAMETER; - } - - Handle* h = static_cast(item); - static_pointer_cast( - h->Get()->GetInfo())->SetPrivateId(priv_id); - - return NOTI_EX_ERROR_NONE; -} - extern "C" EXPORT_API int noti_ex_item_free_string_list(char** list, int count) { if (list == nullptr) { LOGE("Invalid parameter");