summaryrefslogtreecommitdiffstats
path: root/daemon/common.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-05-09 23:20:43 +0000
committerLennart Poettering <lennart@poettering.net>2004-05-09 23:20:43 +0000
commit63d51b566ea270b45b5b34b1feab37b8faa28232 (patch)
tree42b190637551ceae31982f2591bec64c7b0b370a /daemon/common.h
parentad9b08e8c6fb69636812a625e341ebbe83460a23 (diff)
main fieryfilter worktrunk@31
git-svn-id: file:///home/lennart/svn/public/fieryfilter/fieryfilter@31 79e6afc9-17da-0310-ae3c-b873bff394f4
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