diff options
author | Christian Hesse <mail@eworm.de> | 2015-05-19 15:57:22 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-05-19 15:57:22 +0200 |
commit | d187bd3b4805dcb3f9e1d6143ac1cd0531009868 (patch) | |
tree | f6ab52824b9f7543fc88452f408a51795fce9fcd /journal-notify.h | |
parent | 2e86d643dcae1edafa72c9ed1bca02bc85f6148d (diff) | |
download | journal-notify-d187bd3b4805dcb3f9e1d6143ac1cd0531009868.tar.gz journal-notify-d187bd3b4805dcb3f9e1d6143ac1cd0531009868.tar.zst |
add support for executing external commands
close #1
Diffstat (limited to 'journal-notify.h')
-rw-r--r-- | journal-notify.h | 11 |
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); |