summaryrefslogtreecommitdiff
path: root/src/notification.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-03-16 17:14:57 +0100
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-03-16 17:14:57 +0100
commitf55a69f8cc9f8ede29183494c0b36a41c914f737 (patch)
tree815d1d26164db3498731b530dd4961bb44f76dc8 /src/notification.h
parenta6f78aad38333e216ced74e6c51f3449c17dd7b7 (diff)
notifications
Diffstat (limited to 'src/notification.h')
-rw-r--r--src/notification.h21
1 files changed, 21 insertions, 0 deletions
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