10 #include "buffer_tree.h"
12 #include "afh_recv.cmdline.h"
17 * The init function of the afh receiver.
19 * \param r Pointer to the receiver struct to initialize.
21 * This initializes all function pointers of \a r.
23 void afh_recv_init(struct receiver *r)
25 struct afh_recv_args_info dummy;
27 afh_recv_cmdline_parser_init(&dummy);
29 r->open = afh_recv_open;
30 r->close = afh_recv_close;
31 r->pre_select = afh_recv_pre_select;
32 r->post_select = afh_recv_post_select;
33 r->parse_config = afh_recv_parse_config;
34 r->free_config = afh_recv_free_config;
36 r->help = (struct ggo_help) {
37 .short_help = afh_recv_args_info_help,
38 .detailed_help = afh_recv_args_info_detailed_help
40 afh_recv_cmdline_parser_free(&dummy);