]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - recv.h
buffer_tree: Add code to splice out a node of the buffer tree.
[paraslash.git] / recv.h
diff --git a/recv.h b/recv.h
index 74ccf77d7115b5f77ce36de21522b62f78a456e2..fc617a3e8ac54ac3bc3d48e96398e0635d194a13 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 *btrn;
 };
 
 /**
@@ -105,6 +107,7 @@ struct receiver {
         */
        void (*post_select)(struct sched *s, struct task *t);
 
+       /** The two help texts of this receiver. */
        struct ggo_help help;
 };
 
@@ -127,7 +130,9 @@ extern struct receiver receivers[];
        UDP_RECEIVER \
        {.name = NULL}};
 
+/** Iterate over all available receivers. */
 #define FOR_EACH_RECEIVER(i) for (i = 0; receivers[i].name; i++)
 
+void recv_init(void);
 void *check_receiver_arg(char *ra, int *receiver_num);
 void print_receiver_helps(int detailed);