From ea0eca4f717d7f4408273613a566f3550d27085b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 27 Apr 2020 01:02:18 +0200 Subject: Rewrite started --- src/n_notify.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/n_notify.c (limited to 'src/n_notify.c') diff --git a/src/n_notify.c b/src/n_notify.c new file mode 100644 index 0000000..3ed6d40 --- /dev/null +++ b/src/n_notify.c @@ -0,0 +1,31 @@ +/* ************************************************************************************ */ +/* */ +/* File : n_notify.c /_________/ */ +/* Author : Joe | */ +/* Date : 04/2020 | */ +/* Info : Uses libnotify lib to notify | */ +/* / | */ +/* \ / */ +/* \_____/ */ +/* */ +/* ************************************************************************************ */ + +#include + +void +jo_n_notify +(const char head[], + const char body[], + NotifyUrgency u, + int32_t t) +{ + NotifyNotification *n; + + notify_init(JO_LOWBAT); + n = notify_notification_new(head, body, NULL); + notify_notification_set_urgency(n, u); + notify_notification_set_timeout(n, t); + notify_notification_show(n, NULL); + notify_uninit(); + n = NULL; +} -- cgit v1.2.3