aboutsummaryrefslogtreecommitdiff
path: root/user-notification.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-12 08:25:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-12 20:42:53 +0000
commit2a99c5a093737b7905d71ee2df24d3a17b1d83e2 (patch)
tree5f8c7f505ab1fd98714e3fb543127351b4a03289 /user-notification.h
parentMerge branch 'releases/1.6' (diff)
user-notification: add new function ‘user_notification_add()’
Diffstat (limited to 'user-notification.h')
-rw-r--r--user-notification.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/user-notification.h b/user-notification.h
index f184871e..507c1791 100644
--- a/user-notification.h
+++ b/user-notification.h
@@ -1,7 +1,10 @@
#pragma once
+#include <stdbool.h>
#include <tllist.h>
+#include "macros.h"
+
enum user_notification_kind {
USER_NOTIFICATION_DEPRECATED,
USER_NOTIFICATION_WARNING,
@@ -22,3 +25,7 @@ user_notifications_free(user_notifications_t *notifications)
free(it->item.text);
tll_free(*notifications);
}
+
+bool user_notification_add(user_notifications_t *notifications,
+ enum user_notification_kind kind,
+ const char *fmt, ...) PRINTF(3);