diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-14 10:17:08 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-14 10:17:08 +0000 |
| commit | 689a4cc741f2dbb2dbefc16ab817438c953b568c (patch) | |
| tree | 8368a8c7485136e3b5e17f654b2603b7c25cc470 /user-notification.h | |
| parent | Merge branch 'url-hint-letters' (diff) | |
| parent | client: -D,--working-directory: check path exists and is a directory (diff) | |
Merge branch 'working-dir-command-line-option'
Closes #347
Diffstat (limited to 'user-notification.h')
| -rw-r--r-- | user-notification.h | 7 |
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); |
