X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.h;h=fc617a3e8ac54ac3bc3d48e96398e0635d194a13;hp=0d1c180e0c9562339dc80793604512438d9fd730;hb=5587494468627e20fe622b6055689717262d09ab;hpb=141b0fd36edcad22ee07c65b101e90064d8567b6;ds=sidebyside diff --git a/recv.h b/recv.h index 0d1c180e..fc617a3e 100644 --- a/recv.h +++ b/recv.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2008 Andre Noll + * Copyright (C) 2005-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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);