summaryrefslogtreecommitdiffstats
path: root/journal-notify.h
diff options
context:
space:
mode:
Diffstat (limited to 'journal-notify.h')
-rw-r--r--journal-notify.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/journal-notify.h b/journal-notify.h
index ee18b7b..0dd2962 100644
--- a/journal-notify.h
+++ b/journal-notify.h
@@ -16,6 +16,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <sys/wait.h>
#include <systemd/sd-journal.h>
@@ -25,6 +26,16 @@
#define DEFAULTICON "dialog-information"
+const char * priorities[] = {
+ "EMERG", /* 0 */
+ "ALERT",
+ "CRIT",
+ "ERR",
+ "WARNING",
+ "NOTICE",
+ "INFO",
+ "DEBUG" /* 7 */};
+
/*** notify ***/
int notify(const char * identifier, const char * message, uint8_t priority,
const char * icon, int timeout);