550ca424376ad2108557ef17159265e4667ad3eb
[paraslash.git] / afh_recv.c
1 #include <regex.h>
2 #include <sys/types.h>
3 #include <stdbool.h>
4
5 #include "para.h"
6 #include "error.h"
7 #include "list.h"
8 #include "sched.h"
9 #include "ggo.h"
10 #include "buffer_tree.h"
11 #include "recv.h"
12 #include "afh_recv.cmdline.h"
13 #include "string.h"
14 #include "fd.h"
15
16 /**
17  * The init function of the afh receiver.
18  *
19  * \param r Pointer to the receiver struct to initialize.
20  *
21  * This initializes all function pointers of \a r.
22  */
23 void afh_recv_init(struct receiver *r)
24 {
25         struct afh_recv_args_info dummy;
26
27         afh_recv_cmdline_parser_init(&dummy);
28 #if 0
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;
35 #endif
36         r->help = (struct ggo_help) {
37                 .short_help = afh_recv_args_info_help,
38                 .detailed_help = afh_recv_args_info_detailed_help
39         };
40         afh_recv_cmdline_parser_free(&dummy);
41 }