Add a struct buffer_tree pointer to struct receiver_node.
authorAndre Noll <maan@systemlinux.org>
Mon, 28 Dec 2009 20:51:11 +0000 (21:51 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 28 Dec 2009 20:51:11 +0000 (21:51 +0100)
recv.c
recv.h

diff --git a/recv.c b/recv.c
index 9d6f028..d2af644 100644 (file)
--- a/recv.c
+++ b/recv.c
@@ -9,6 +9,7 @@
 #include <regex.h>
 #include <sys/types.h>
 #include <dirent.h>
+#include <stdbool.h>
 
 #include "para.h"
 #include "list.h"
@@ -20,6 +21,7 @@
 #include "string.h"
 #include "error.h"
 #include "stdout.h"
+#include "buffer_tree.h"
 
 /** The gengetopt args info struct. */
 static struct recv_args_info conf;
diff --git a/recv.h b/recv.h
index dc49ef9..101df82 100644 (file)
--- a/recv.h
+++ b/recv.h
@@ -24,6 +24,8 @@ struct receiver_node {
        void *conf;
        /** The task associated with this instance. */
        struct task task;
+       /** The receiver node is always the root of the buffer tree. */
+       struct btr_node *btr_root;
 };
 
 /**