Convert receivers to lopsub.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 22 Aug 2016 13:13:40 +0000 (15:13 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Mar 2017 09:02:28 +0000 (11:02 +0200)
commitfc8dfbb416ff07cca08fbf4e13efcaa25e17cc54
tree96816024e2ab1b5e5b56a22110b5f20c46f2cdde
parent4d5282b4e53213c89359e4c60568c37119ab34fb
Convert receivers to lopsub.

This converts the four receivers (afh, http, dccp, udp) to use the
lopsub library instead of gengetopt.

The command line options of the receivers are implemented as
subcommands of the new recv_cmd lopsub suite. Hence the four gengetopt
command line parsers and ->ggo_help of struct receiver can be removed.

This change allows to get rid of the receiver array which was defined
through the DEFINE_RECEIVER_ARRAY macro.  We now store each receiver
structure in the user_data pointer provided by lopsub.

Since this structure is initialized at compile time (and constant since
->ggo_help is gone), ->init() of struct receiver is no longer needed to
initialize the various function pointers. The function is now optional
and does not take an argument any more. At the moment, only the afh
receiver needs ->init() to initialize all supported audio format handlers.

t0005 needs slight adjustment since the section headers of the help text
have changed a bit.
21 files changed:
Makefile.in
Makefile.real
afh_recv.c
audiod.c
configure.ac
dccp_recv.c
error.h
http_recv.c
m4/gengetopt/afh_recv.m4 [deleted file]
m4/gengetopt/dccp_recv.m4 [deleted file]
m4/gengetopt/http_recv.m4 [deleted file]
m4/gengetopt/udp_recv.m4 [deleted file]
m4/lls/include/port.m4 [new file with mode: 0644]
m4/lls/recv_cmd.suite.m4 [new file with mode: 0644]
man_util.bash
play.c
recv.c
recv.h
recv_common.c
t/t0005-man.sh
udp_recv.c