summaryrefslogtreecommitdiffstats
path: root/daemon/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/common.h')
-rw-r--r--daemon/common.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/daemon/common.h b/daemon/common.h
new file mode 100644
index 0000000..4a8e6b1
--- /dev/null
+++ b/daemon/common.h
@@ -0,0 +1,23 @@
+#ifndef foocommonhfoo
+#define foocommonhfoo
+
+#include <sys/types.h>
+#include <glib.h>
+#include <libipq/libipq.h>
+
+#define SOCKET_PATH "/tmp/fieryfilter"
+
+typedef enum message_code {
+ MSG_PACKET = 0,
+ MSG_VERDICT = 1,
+ MSG_SET_DEFAULT_VERDICT = 2
+} message_code_t;
+
+typedef struct message {
+ message_code_t code;
+ pid_t pid;
+ guint32 length;
+} message_t;
+
+
+#endif