diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-17 16:32:09 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-17 16:32:09 +0200 |
commit | 4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50 (patch) | |
tree | c7c5a4ba58b7463659f6660fa56b76fc72fd57a6 /src/jo_n_notify.c | |
parent | espeak tests (diff) | |
download | lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.tar.gz lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.tar.bz2 lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.tar.xz lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.tar.zst lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.zip |
Using libespeak and libnotify
Diffstat (limited to 'src/jo_n_notify.c')
-rw-r--r-- | src/jo_n_notify.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/jo_n_notify.c b/src/jo_n_notify.c new file mode 100644 index 0000000..7abb827 --- /dev/null +++ b/src/jo_n_notify.c @@ -0,0 +1,32 @@ +/****************************************************************************************/ +/* */ +/* 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; +} |