return;
}
- noti_err = app_control_set_app_id(app_contorl, appid);
+ noti_err = app_control_set_app_id(app_control, appid);
if (noti_err != APP_CONTROL_ERROR_NONE) {
return;
}
- noti_err = app_control_set_operation(app_contorl, APP_CONTROL_OPERATION_DEFAULT);
+ noti_err = app_control_set_operation(app_control, APP_CONTROL_OPERATION_DEFAULT);
if (noti_err != APP_CONTROL_ERROR_NONE) {
return;
}
}
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;
return NOTIFICATION_ERROR_NONE;
}
-
-EXPORT_API int notification_get_text_input_max_length(notification_h noti, int *text_input_max_length)
-{
- if (noti == NULL || text_input_max_length == NULL)
- return NOTIFICATION_ERROR_INVALID_PARAMETER;
-
- *text_input_max_length = noti->text_input_max_length;
-
- return NOTIFICATION_ERROR_NONE;
-}
return NOTIFICATION_ERROR_NONE;
}
+
+EXPORT_API int notification_get_text_input_max_length(notification_h noti, int *text_input_max_length)
+{
+ if (noti == NULL || text_input_max_length == NULL)
+ return NOTIFICATION_ERROR_INVALID_PARAMETER;
+
+ *text_input_max_length = noti->text_input_max_length;
+
+ return NOTIFICATION_ERROR_NONE;
+}