X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.h;h=fc617a3e8ac54ac3bc3d48e96398e0635d194a13;hp=74ccf77d7115b5f77ce36de21522b62f78a456e2;hb=5b9bdbe0a5fe533818259ad75d4785033057f598;hpb=6bdac07456cb5872f824028912d1049883a9c21f diff --git a/recv.h b/recv.h index 74ccf77d..fc617a3e 100644 --- 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);