summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungKi Lee <mk5004.lee@samsung.com>2020-06-04 02:38:32 +0000
committerGerrit Code Review <gerrit@review>2020-06-04 02:38:32 +0000
commitcd8d3a156090b84f0994a6aefab76b6b4241baa3 (patch)
tree961a750f9605440921a23f41c0b2eeffa9d91ea3
parent27e07ddd53cfe6c02cc97b0dd8180fede49ba9a8 (diff)
parentc93853511de172868172dee3d73865d6f2edc3f4 (diff)
downloadnotification-cd8d3a156090b84f0994a6aefab76b6b4241baa3.tar.gz
notification-cd8d3a156090b84f0994a6aefab76b6b4241baa3.tar.bz2
notification-cd8d3a156090b84f0994a6aefab76b6b4241baa3.zip
Merge "Update api about private_id" into tizen
-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 c2016e0..62cf426 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 ee96857..bb24f2e 100644
--- a/notification-ex/stub.cc
+++ b/notification-ex/stub.cc
@@ -3640,33 +3640,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");