}
if (event_type < NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1
- || event_type > NOTIFICATION_EVENT_TYPE_CLICK_ON_THUMBNAIL) {
+ || event_type >= NOTIFICATION_EVENT_TYPE_MAX) {
NOTIFICATION_ERR("NOTIFICATION_ERROR_INVALID_PARAMETER");
err = NOTIFICATION_ERROR_INVALID_PARAMETER;
goto out;
}
if (event_type < NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1
- || event_type > NOTIFICATION_EVENT_TYPE_CLICK_ON_THUMBNAIL) {
+ || event_type >= NOTIFICATION_EVENT_TYPE_MAX) {
NOTIFICATION_ERR("NOTIFICATION_ERROR_INVALID_PARAMETER");
err = NOTIFICATION_ERROR_INVALID_PARAMETER;
goto out;
new_noti->auto_remove = noti->auto_remove;
new_noti->default_button_index = noti->default_button_index;
new_noti->timeout = noti->timeout;
-
+ new_noti->text_input_max_length = noti->text_input_max_length;
new_noti->uid = noti->uid;
new_noti->app_icon_path = NULL;
return ret;
}
+
+EXPORT_API int notification_set_text_input(notification_h noti, int text_input_max_length)
+{
+ if (noti == NULL)
+ return NOTIFICATION_ERROR_INVALID_PARAMETER;
+
+ noti->text_input_max_length = text_input_max_length;
+
+ return NOTIFICATION_ERROR_NONE;
+}