summaryrefslogtreecommitdiff
path: root/src/notification_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notification_internal.c')
-rwxr-xr-xsrc/notification_internal.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/notification_internal.c b/src/notification_internal.c
index 67e93ee..b61b657 100755
--- a/src/notification_internal.c
+++ b/src/notification_internal.c
@@ -1512,7 +1512,7 @@ EXPORT_API int notification_get_hide_timeout(notification_h noti, int *timeout)
if (noti == NULL || timeout == NULL)
return NOTIFICATION_ERROR_INVALID_PARAMETER;
- *timeout = noti->timeout;
+ *timeout = noti->hide_timeout;
return NOTIFICATION_ERROR_NONE;
}
@@ -1522,7 +1522,27 @@ EXPORT_API int notification_set_hide_timeout(notification_h noti, int timeout)
if (noti == NULL || timeout < 0)
return NOTIFICATION_ERROR_INVALID_PARAMETER;
- noti->timeout = timeout;
+ noti->hide_timeout = timeout;
+
+ return NOTIFICATION_ERROR_NONE;
+}
+
+EXPORT_API int notification_get_delete_timeout(notification_h noti, int *timeout)
+{
+ if (noti == NULL || timeout == NULL)
+ return NOTIFICATION_ERROR_INVALID_PARAMETER;
+
+ *timeout = noti->delete_timeout;
+
+ return NOTIFICATION_ERROR_NONE;
+}
+
+EXPORT_API int notification_set_delete_timeout(notification_h noti, int timeout)
+{
+ if (noti == NULL || timeout < 0)
+ return NOTIFICATION_ERROR_INVALID_PARAMETER;
+
+ noti->delete_timeout = timeout;
return NOTIFICATION_ERROR_NONE;
}