/**
* @internal
+ * @brief Set priv_id of the notification.
+ * @param[in] noti Notification handle
+ * @param[in] priv_id Private ID
+ * @return NOTIFICATION_ERROR_NONE on success, other value on failure
+ * @retval NOTIFICATION_ERROR_NONE Success
+ * @retval NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int notification_set_priv_id(notification_h noti, int priv_id);
+
+/**
+ * @internal
* @brief This function will be deprecated.
* @param[in] type Notification type
* @param[in] group_id Group ID
}
/* LCOV_EXCL_STOP */
+EXPORT_API int notification_set_priv_id(notification_h noti, int priv_id)
+{
+ if (noti == NULL || priv_id <= 0)
+ return NOTIFICATION_ERROR_INVALID_PARAMETER;
+
+ noti->priv_id = priv_id;
+
+ return NOTIFICATION_ERROR_NONE;
+}
+
/* LCOV_EXCL_START */
notification_h notification_load_for_uid(char *pkgname,
int priv_id, uid_t uid)