summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormk5004.lee <mk5004.lee@samsung.com>2020-05-22 14:51:40 +0900
committermk5004.lee <mk5004.lee@samsung.com>2020-05-22 15:07:32 +0900
commitc93853511de172868172dee3d73865d6f2edc3f4 (patch)
tree19f94c776eb09def355d5edf13f1272d7b4191e3
parente34aa5f6064f6983c7e2ca40e73d0ced09ce907a (diff)
downloadnotification-c93853511de172868172dee3d73865d6f2edc3f4.tar.gz
notification-c93853511de172868172dee3d73865d6f2edc3f4.tar.bz2
notification-c93853511de172868172dee3d73865d6f2edc3f4.zip
Update api about private_id
- Delete set api Add get api Change-Id: I7dd8064b2d02bf9f228ae2940793d7c25b8c0029 Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
-rw-r--r--notification-ex/api/notification_ex_internal.h1
-rw-r--r--notification-ex/stub.cc20
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<Handle*>(item);
+ Handle* h = static_cast<Handle*>(handle);
*private_id = static_pointer_cast<IItemInfoInternal>(
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<Handle*>(item);
- static_pointer_cast<IItemInfoInternal>(
- 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");