X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.h;h=3f13f108a98696e8b50ef53988bcb7f69d5d82c8;hp=74ccf77d7115b5f77ce36de21522b62f78a456e2;hb=6d92af64de5e78ded1a7cb27a88d7e10c9f576a8;hpb=6bdac07456cb5872f824028912d1049883a9c21f diff --git a/recv.h b/recv.h index 74ccf77d..3f13f108 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; }; /** @@ -54,6 +56,7 @@ struct receiver { * \a argc and \a argv. */ void *(*parse_config)(int argc, char **argv); + void (*free_config)(void *conf); /** * Open one instance of the receiver. * @@ -105,6 +108,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 +131,10 @@ 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); +int generic_recv_pre_select(struct sched *s, struct task *t);