From c93853511de172868172dee3d73865d6f2edc3f4 Mon Sep 17 00:00:00 2001 From: "mk5004.lee" Date: Fri, 22 May 2020 14:51:40 +0900 Subject: [PATCH] Update api about private_id - Delete set api Add get api Change-Id: I7dd8064b2d02bf9f228ae2940793d7c25b8c0029 Signed-off-by: mk5004.lee --- notification-ex/api/notification_ex_internal.h | 1 + notification-ex/stub.cc | 20 +++----------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/notification-ex/api/notification_ex_internal.h b/notification-ex/api/notification_ex_internal.h index 7e4209e..eda7d75 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 dd8f1f0..75f6833 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"); -- 2.7.4