From b1e857cf1471d1871a9396696b22fa531da98249 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 23 Nov 2024 22:33:43 +0100 Subject: add projbase to repo --- project-base/src/notification.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 project-base/src/notification.h (limited to 'project-base/src/notification.h') diff --git a/project-base/src/notification.h b/project-base/src/notification.h new file mode 100644 index 0000000..752204d --- /dev/null +++ b/project-base/src/notification.h @@ -0,0 +1,21 @@ +/* +* BSD 2-Clause “Simplified” License +* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com +* All rights reserved. +*/ + +#ifndef INCLUDE_NOTIFICATION +#define INCLUDE_NOTIFICATION + +typedef struct t_notification +{ + char *message; + u16 duration; +} notification; + +array global_notifications; + +void push_notification(char *message); +void update_render_notifications(); + +#endif -- cgit v1.2.3-70-g09d2