diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/notification.c | 14 | ||||
-rwxr-xr-x | src/notification_internal.c | 10 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/notification.c b/src/notification.c index eacf907..b1d84fd 100755 --- a/src/notification.c +++ b/src/notification.c @@ -1154,7 +1154,7 @@ EXPORT_API int notification_set_event_handler(notification_h noti, notification_ } 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; @@ -1193,7 +1193,7 @@ EXPORT_API int notification_get_event_handler(notification_h noti, notification_ } 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; @@ -1916,13 +1916,3 @@ EXPORT_API int notification_set_text_input(notification_h noti, int text_input_m 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; -} diff --git a/src/notification_internal.c b/src/notification_internal.c index bfbae65..d1b8344 100755 --- a/src/notification_internal.c +++ b/src/notification_internal.c @@ -1401,3 +1401,13 @@ EXPORT_API int notification_set_hide_timeout(notification_h noti, int timeout) 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; +} |