Merge "Update api about private_id" into tizen
[platform/core/api/notification.git] / notification-ex / stub.cc
index ee96857..bb24f2e 100644 (file)
@@ -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");