summaryrefslogtreecommitdiffstats
path: root/udp514-journal.h
diff options
context:
space:
mode:
Diffstat (limited to 'udp514-journal.h')
-rw-r--r--udp514-journal.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/udp514-journal.h b/udp514-journal.h
new file mode 100644
index 0000000..2767e1c
--- /dev/null
+++ b/udp514-journal.h
@@ -0,0 +1,33 @@
+/*
+ * (C) 2018 by Christian Hesse <mail@eworm.de>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
+
+#ifndef _UDP514_JOURNAL_H
+#define _UDP514_JOURNAL_H
+
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <time.h>
+
+#include <systemd/sd-journal.h>
+#include <systemd/sd-daemon.h>
+
+#define STR_(x) #x
+#define STR(x) STR_(x)
+
+#define LOCAL_SERVER_PORT 514
+#define LOCAL_SERVER_PORT_STR STR(LOCAL_SERVER_PORT)
+#define BUFFER_SIZE 1024
+
+#endif /* _UDP514_JOURNAL_H */