blob: a92f2b2aea20521108bf1964cc4b347f8809ca82 (
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 : jo_n_notify.c /_________/ */
/* Author : Joe | */
/* Date : 04/2020 | */
/* Info : Uses libnotify lib to notify | */
/* / | */
/* \ / */
/* \_____/ */
/* */
/****************************************************************************************/
#include <jo_n_notify.h>
void
jo_n_notify
(const char head[],
const char body[],
NotifyUrgency u,
int32_t t)
{
NotifyNotification *n;
notify_init("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;
}
|