blob: f88f6b5d6ab3fc9e7dfd6f043b21cb53af8d03ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/****************************************************************************************/
/* */
/* File : n_notify.c /_________/ */
/* Author : Joe | */
/* Date : 04/2020 | */
/* Info : Uses libnotify lib to notify | */
/* / | */
/* \ / */
/* \_____/ */
/* */
/****************************************************************************************/
#include "n_notify.h"
void
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;
}
|