]> git.tuebingen.mpg.de Git - paraslash.git/commit
Convert writers to lopsub.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 10 Apr 2016 20:50:17 +0000 (22:50 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Mar 2017 09:02:28 +0000 (11:02 +0200)
commit870fcd0379ab096184f42481541d668694da7c83
tree6999577c6f21d893e8890951a3f6f8a6ed37169e
parentfb26e35b38544d4bb90fb80c6b4f68d9a76842c8
Convert writers to lopsub.

Similar to the previous commits for receivers and filters, this
commit replaces the five gengetopt parsers for the alsa, ao, file,
oss, osx writers by a lopsub suite and links para_write with -llopsub.

This allows to get rid of the WRITER_ENUM and the writers array as a
reference to each writer structure are stored in the lopsub user_data
pointer. Moreover, ->init(), ->parse_config(), ->free_config()
and ->ggo_help() of struct writer are not needed any more and can
be removed.

The patch also removes write_common.h and moves the few prototypes
write.h.

Now that receivers, filters and writers have all been converted, we
may also stop to include ggo.h from audiod_command.c and play.c.

As for the receivers and filters, t0005 needs slight adjustments due
to the new section header in the man page.
23 files changed:
Makefile.in
Makefile.real
alsa_write.c
ao_write.c
audiod.c
audiod_command.c
configure.ac
file_write.c
m4/gengetopt/alsa_write.m4 [deleted file]
m4/gengetopt/ao_write.m4 [deleted file]
m4/gengetopt/file_write.m4 [deleted file]
m4/gengetopt/oss_write.m4 [deleted file]
m4/gengetopt/osx_write.m4 [deleted file]
m4/lls/write_cmd.suite.m4 [new file with mode: 0644]
man_util.bash
oss_write.c
osx_write.c
play.c
t/t0005-man.sh
write.c
write.h
write_common.c
write_common.h [deleted file]