aboutsummaryrefslogtreecommitdiffstats
path: root/journal-notify.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-07-26 10:13:13 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-07-26 10:13:13 +0200
commit465ee18154534aedfda28e29130b1f2b8c2e5189 (patch)
tree0b3b333ac69b3670a4621f44af3cf4c47abcbb57 /journal-notify.c
parent128860b5a7fa0bc2b3fe4b607952078c29ef8adc (diff)
downloadjournal-notify-465ee18154534aedfda28e29130b1f2b8c2e5189.tar.gz
journal-notify-465ee18154534aedfda28e29130b1f2b8c2e5189.tar.zst
introduce journal-notify.h
Diffstat (limited to 'journal-notify.c')
-rw-r--r--journal-notify.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/journal-notify.c b/journal-notify.c
index bc7740c..9819f07 100644
--- a/journal-notify.c
+++ b/journal-notify.c
@@ -5,22 +5,11 @@
* of the GNU General Public License, incorporated herein by reference.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <regex.h>
-
-#include <systemd/sd-journal.h>
-
-#include <libnotify/notify.h>
-
-#include "version.h"
+#include "journal-notify.h"
const char * program = NULL;
-#define OPTSTRING "aehi:m:nor:v"
-#define DEFAULTICON "dialog-information"
-
+/*** notify ***/
int notify(const char * summary, const char * body, const char * icon) {
NotifyNotification * notification;
int rc = -1;
@@ -46,6 +35,7 @@ out:
return rc;
}
+/*** main ***/
int main(int argc, char **argv) {
int i, rc = EXIT_FAILURE;
uint8_t verbose = 0;