From 2a99c5a093737b7905d71ee2df24d3a17b1d83e2 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 12 Feb 2021 09:25:29 +0100 Subject: user-notification: add new function ‘user_notification_add()’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user-notification.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'user-notification.h') 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 #include +#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); -- cgit v1.3