X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_recv.c;h=c73088f83939e153d94e3eb4dcead35d04a1ff05;hp=d0bc53542137ac06cce22b75fcbe17d649041b9b;hb=40de1dd2fdbb054444d585aa70e2d50166a66e07;hpb=335730538150250f32c0df0b184fb494e2bb0df3 diff --git a/dccp_recv.c b/dccp_recv.c index d0bc5354..c73088f8 100644 --- a/dccp_recv.c +++ b/dccp_recv.c @@ -18,6 +18,7 @@ #include "error.h" #include "list.h" #include "sched.h" +#include "ggo.h" #include "recv.h" #include "string.h" #include "net.h" @@ -143,10 +144,17 @@ static void dccp_recv_post_select(struct sched *s, struct task *t) */ void dccp_recv_init(struct receiver *r) { + struct dccp_recv_args_info dummy; + + dccp_recv_cmdline_parser_init(&dummy); r->shutdown = dccp_shutdown; r->open = dccp_recv_open; r->close = dccp_recv_close; r->pre_select = dccp_recv_pre_select; r->post_select = dccp_recv_post_select; r->parse_config = dccp_recv_parse_config; + r->help = (struct ggo_help) { + .short_help = dccp_recv_args_info_help, + .detailed_help = dccp_recv_args_info_detailed_help + }; }