From f55a69f8cc9f8ede29183494c0b36a41c914f737 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 16 Mar 2020 17:14:57 +0100 Subject: notifications --- src/notification.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/notification.h (limited to 'src/notification.h') diff --git a/src/notification.h b/src/notification.h new file mode 100644 index 0000000..752204d --- /dev/null +++ b/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